-
Notifications
You must be signed in to change notification settings - Fork 23
Keymap
Ammar Abou Zor edited this page Sep 1, 2024
·
7 revisions
All keybindings can be accessed within the app by pressing the ? key. Below are the keybindings for different sections of the application.
| Key | Command | Description |
|---|---|---|
| Tab, \ | cycle_focus_forward | Move focus to the next control |
| Backtab, <Ctrl-h> | Cycle_focus_backward | Move focus to the previous control |
| ? | Show_help | Show keybindings overview |
| q | Exit | Exit the program |
| Enter, <Ctrl-m> | Edit_journal_content | Start editing current journal entry content in built_in editor |
| s , <Ctrl-s> | Save | Save changes on journal content |
| <Ctrl-r> | Reload_all | Reload all entries |
| y, <Ctrl-y> | Edit_in_external_editor | Edit current journal content in external editor |
| <Ctrl-f> | Toggle_full_screen_mode | Maximize the currently selected view |
| u | Undo | Undo the latest change on journals |
| <Shift-u> | Redo | Redo the latest change on journals |
This keybindings are valid while the journals list is in focus
| Key | Command | Description |
|---|---|---|
| Up, k | Select_prev_journal | Select previous entry |
| Down, j | Select_next_journal | Select next entry |
| n | Create_new_journal | Open dialog to add a new journal entry |
| e | Edit_new_journal | Open entry dialog to edit the current journal entry |
| d, delete | Delete_journal | Delete current journal entry if any |
| f | Open_filter | Open filter popup for journals |
| a, <Shift-f> | Fuzzy_find | Open fuzzy find popup for journals |
| x | Reset_filter | Reset the applied filter on journals |
| v | Enter_multi_select | Enter multi select mode for journals when journals list is in focus |
| > | Export_journal_content | Export current journal content |
| v | Toggle_editor_visual_mode | Toggle Editor Visual(Select) Mode when editor is in focus |
| o | Open_sort_options | Open sort popup to set the sorting options of the journals |
| Home | Go_to_top | Go to the top entry in the journals' list |
| End | Go_to_bottom | Go to the bottom entry in the journals' list |
| Page-Up | Page_up_journals | Go one page up in the journals' list |
| Page-Down | Page_down_journals | Go one page down in the journals' list |
The Editor in the TUI-Journal app has two modes:
- Normal Mode: Use VIM keybindings to navigate the text and enter Edit Mode (i, I, a, A, o, O) besides the global keybindings.
- Edit Mode: Utilize Emacs keybindings to edit and navigate the text.
- Visual-Mode: Like the visual mode in VIM to select, delete and yank text with extra vim keybindings (d, y, c)
| Key | Command | Description |
|---|---|---|
| <Ctrl-v> | Copy_to_OS_clipboard | Copy selection to operation system clipboard while in editor visual mode |
| <Ctrl-x> | Cut_to_OS_clipboard | Cut selection to operation system clipboard while in editor visual mode |
| <Ctrl-p> | Paste_OS_clipboard_Content | Paste the operation system clipboard content to in the editor |
| Key | Command | Description |
|---|---|---|
| Esc, q, v, <Ctrl-c> | Leave_multi_select | Leave multi selection mode for journals and return to normal mode |
| Space, Entrer, <Ctrl-m> | Toggle_selected | Toggle select for the current journal |
| a | Select_all_journals | Select all journals |
| x | Clear_selection | Clear journals selection |
| i | Invert_selection | Invert journals selection |
| Delete, d | Delete_selection | Delete selected journals |
| > | Export_selection | Export selected journals to a transfer JSON file |