add sidebar and start adding functionality

This commit is contained in:
2026-07-28 15:05:57 +10:00
parent de7e3b9070
commit 44aa152295
7 changed files with 169 additions and 34 deletions

View File

@@ -12,7 +12,6 @@ class CustomDirectoryTree(DirectoryTree):
DEFAULT_CSS = """
CustomDirectoryTree {
dock: left;
width: 30;
}
"""
@@ -132,3 +131,5 @@ class CustomDirectoryTree(DirectoryTree):
event.screen_offset
), lambda result: self.context_menu_chosen(file_name, result))
async def on_directory_tree_file_selected(self, event: DirectoryTree.FileSelected):
await self.app.open_file(event.path)