open folders
This commit is contained in:
11
home_page.py
11
home_page.py
@@ -45,15 +45,16 @@ class HomePage(Vertical):
|
||||
#bindings {
|
||||
Horizontal {
|
||||
max-width: 50;
|
||||
|
||||
width: 50%;
|
||||
margin-top: 1;
|
||||
height: 1;
|
||||
|
||||
.bind-name {
|
||||
width: 85%;
|
||||
width: 75%;
|
||||
}
|
||||
.bind-keys {
|
||||
width: 15%;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
Static {
|
||||
@@ -94,9 +95,13 @@ class HomePage(Vertical):
|
||||
yield Static(f"[@click=app.new]{binds["new"]}[/]", classes="bind-keys")
|
||||
|
||||
with Horizontal():
|
||||
yield Static("[b] Open file[/]", classes="bind-name")
|
||||
yield Static("[b] Open file[/]", classes="bind-name")
|
||||
yield Static(f"[@click=app.open]{binds["open"]}[/]", classes="bind-keys")
|
||||
|
||||
with Horizontal():
|
||||
yield Static("[b] Open Folder[/]", classes="bind-name")
|
||||
yield Static(f"[@click=app.open_folder]{binds["open-folder"]}[/]", classes="bind-keys")
|
||||
|
||||
with Horizontal():
|
||||
yield Static("[b] Settings[/]", classes="bind-name")
|
||||
yield Static(f"[@click=app.settings]{binds["settings"]}[/]", classes="bind-keys")
|
||||
|
||||
Reference in New Issue
Block a user