From 58e9f43a7d74a1a9072de77e785208ad78b0de6d Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Sun, 8 Oct 2023 19:31:43 -0500 Subject: [PATCH] update controls --- README.md | 52 ++++++++++++++++++++++++++----------------------- src/get_args.py | 2 +- 2 files changed, 29 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 4231a6a..513fd31 100644 --- a/README.md +++ b/README.md @@ -64,30 +64,34 @@ Options: ## Controls -| Keys (arranged alphabetically) | Description | -| ---------------------------------------------- | ----------------------------------- | -| - | Insert blank line | -| / | Search for a sequence | -| Alt+k/j | Move todo up and down | -| Ctrl+x, k | Toggle `toggle` and `entry` modes | -| Delete | Toggle between `Todo` and `Note` | -| Enter | Toggle a todo as completed | -| Shift+k/j | Select/deselect multiple todos | -| Shift+o | Add a todo on current line | -| Tab/Shift+Tab | Indent/unindent selected todo | -| b | Make selected todo bigger (magnify) | -| c | Change selected todo color | -| d | Remove selected todo | -| g/Shift+g | Jump to top/bottom of todos | -| h | Show a list of controls | -| i | Edit an existing todo | -| k/j | Move cursor up and down | -| o | Add a new todo | -| p | New todo from clipboard | -| q, Ctrl+c | Quit | -| s | Sort top-level todos various ways | -| u | Undo change | -| y | Copy todo to clipboard | +| Keys (arranged alphabetically) | Description | +| ------------------------------------------------------------------------ | ----------------------------------- | +| - | Insert blank line | +| / | Search for a sequence | +| Alt+g/Alt+Shift+g | Select all todos above/below | +| Alt+k/j | Move todo up and down | +| Ctrl+a | Select all todos | +| Ctrl+r | Redo change | +| Ctrl+x, k | Toggle `toggle` and `entry` modes | +| Delete | Toggle between `Todo` and `Note` | +| Enter | Toggle a todo as completed | +| Numbers | Move a number of lines | +| Shift+k/j | Select/deselect multiple todos | +| Shift+o | Add a todo on current line | +| Tab/Shift+Tab | Indent/unindent selected todo | +| b | Make selected todo bigger (magnify) | +| c | Change selected todo color | +| d | Remove selected todo | +| g/Shift+g | Jump to top/bottom of todos | +| h | Show a list of controls | +| i | Edit an existing todo | +| k/j | Move cursor up and down | +| o | Add a new todo | +| p | New todo from clipboard | +| q, Ctrl+c, Esc | Quit | +| s | Sort top-level todos various ways | +| u | Undo change | +| y | Copy todo to clipboard | ## Contributing diff --git a/src/get_args.py b/src/get_args.py index 1877a6e..5a0e7ba 100644 --- a/src/get_args.py +++ b/src/get_args.py @@ -11,7 +11,7 @@ BULLETS = False CHECKBOX = "" CONTROLS_BEGIN_INDEX = 67 -CONTROLS_END_INDEX = 91 +CONTROLS_END_INDEX = 95 DEFAULT_TODO = "todo.txt" ENUMERATE = False FILENAME = Path(DEFAULT_TODO)