contacts --sort takes place and hash; the Archived list gets the PLACE column
The CLI sorts on the same ring as the Contacts screen (name, heard, packets, place, hash). The ring moved to ui/widgets.py so the CLI loads no TUI code, and ordered_contacts sorts by place (no place last) and by key. The Archived list reads NAME · ARCHIVED · PLACE · KEY, sorts by place, cuts no value and pans with ←→, like the Contacts list. The place fill and its live refresh moved from ContactsScreen into ContactListScreen, so any list that declares the PLACE lane gets them from places=. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2df3dd2c39
commit
d08513aa69
10 files changed
+299
-113
No files matched your search
@@ -342,6 +342,13 @@ def test_a_global_option_taking_a_value_moves_with_its_value(run) -> None: # no
|
||||
assert run("contacts", "--sort", "name", "--json").exit_code == exitcodes.OK
|
||||
|
||||
|
||||
@pytest.mark.parametrize("order", ["place", "hash"])
|
||||
def test_contacts_sorts_by_each_column_of_the_screen(run, order) -> None: # noqa: ANN001
|
||||
"""``--sort`` accepts each sort column of the Contacts screen, the place and the hash too."""
|
||||
result = run("contacts", "--sort", order, "--json")
|
||||
assert result.exit_code == exitcodes.OK, result.output
|
||||
|
||||
|
||||
def test_lifting_a_global_never_steals_a_subcommands_own_help(run) -> None: # noqa: ANN001
|
||||
"""``contacts --help`` must stay the help of ``contacts``, not the help of the app.
|
||||
|
||||
|
||||
Reference in new issue
Block a user