release: 0.2.6 add advanced navigation and contextual open actions
This commit is contained in:
@@ -50,6 +50,24 @@ def test_toggle_hidden_directories(tmp_path: Path) -> None:
|
||||
assert [entry.name for entry in navigator.visible_entries] == ["..", "visible"]
|
||||
|
||||
|
||||
def test_toggle_files_includes_files_in_visible_entries(tmp_path: Path) -> None:
|
||||
root = tmp_path / "root"
|
||||
root.mkdir()
|
||||
(root / "folder").mkdir()
|
||||
(root / "notes.txt").write_text("hello", encoding="utf-8")
|
||||
|
||||
navigator = Navigator(root)
|
||||
assert [entry.name for entry in navigator.visible_entries] == ["..", "folder"]
|
||||
|
||||
navigator.toggle_files()
|
||||
assert navigator.show_files is True
|
||||
assert [entry.name for entry in navigator.visible_entries] == [
|
||||
"..",
|
||||
"folder",
|
||||
"notes.txt",
|
||||
]
|
||||
|
||||
|
||||
def test_expand_selected_directory_reveals_nested_entries(tmp_path: Path) -> None:
|
||||
current = tmp_path / "workspace"
|
||||
current.mkdir()
|
||||
|
||||
Reference in New Issue
Block a user