-
-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
803d32e
commit 0337c40
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from visidata import GuideSheet, vd | ||
|
||
class MenuGuide(GuideSheet): | ||
guide_text = '''# The VisiData Menu System | ||
VisiData's menu is at the [:black on 68]top of the screen[/]. It contains a collection of VisiData commands organised within submenu trees. | ||
It can be navigated both as a standard, clickable GUI menu, and via keystrokes. | ||
To navigate via keystrokes, `Alt+H` will open the **Help** menu, and from there `arrow` keys can be used to move between submenus. | ||
Additionally, each top-level menu name has a single letter underlined. `Alt+<underlined letter>` will open that menu. For example, `Alt+F` will open the **File** menu. | ||
» indicates a submenu, which can be traversed with the `right arrow` or a mouse-click. The leaf node of every menu tree is a command. | ||
When the cursor is on a command, the menu throws up its helpbox. This contains the description of the command, the keyboard shortcut if available, and its command longname. Clicking on the command in the menu, or pressing `Enter`, will execute the actual command. | ||
`⎘` indicates that the command will push a sheet onto sheet stack. `…` indicates that input will be required for the command. | ||
Sheet-specific commands will only appear in the menu when that specific sheet type is loaded. The entire menu-tree for sheet-specific commands will appear in the menu [:black on 34 green]highlighted green[/]. | ||
## Options (must reload to take effect) | ||
- {help.options.disp_menu_fmt} | ||
- {help.options.disp_menu} | ||
''' | ||
|
||
vd.addGuide('MenuGuide', MenuGuide) |