add sidebar and start adding functionality
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user