added 'i' and 'a' bindings for editing

This commit is contained in:
nadrad 2022-09-15 20:07:35 +02:00
parent db3ed4a577
commit 547b86eb39
2 changed files with 12 additions and 6 deletions

10
h-m-m
View file

@ -2493,6 +2493,9 @@ function monitor_key_presses(&$mm)
switch ($in)
{
case 'a': edit_node($mm); break;
case 'A': edit_node($mm, true); break;
case 'b': expand_all($mm); break;
case 'c': { center_active_node($mm); display($mm); } break;
@ -2513,8 +2516,8 @@ function monitor_key_presses(&$mm)
case 'h': change_active_node($mm, move_left); break;
case 'i': collapse_other_branches($mm); break;
case 'I': collapse_inner($mm); break;
case 'i': edit_node($mm); break;
case 'I': edit_node($mm, true); break;
case 'j': change_active_node($mm, move_down); break;
case 'J': move_active_node_down($mm); break;
@ -2539,6 +2542,9 @@ function monitor_key_presses(&$mm)
case 'q': quit($mm); break;
case 'Q': exit; break;
case 'r': collapse_other_branches($mm); break;
case 'R': collapse_inner($mm); break;
case 's': save($mm); break;
case 'S': save($mm, true); break;

View file

@ -19,8 +19,8 @@ Adding, removing, and editing nodes:
* `p` - pastes as descendants of the active node
* `P` - pastes as siblings of the active node
* `ctrl+p` - appends the clipboard text at the end of the active node's title
* `e` - edits the active node
* `E` - edits the active node, ignoring the existing text
* `e`, `i`, or `a` - edits the active node
* `E`, `I`, or `A` - edits the active node, ignoring the existing text
Relative navigating and moving:
@ -51,8 +51,8 @@ Collapsing and expanding:
* `1` to `9` - collapse the nth level and expand those before
* `f` - focuses by collapsing all, but the ancestors and descendants of the active node
* `F` - locks focus as the active node changes (try it with the center lock)
* `i` - collapses all the first level items except for the one that contains the active node
* `I` - collapses the children of the active node
* `r` - collapses all the first level items except for the one that contains the active node
* `R` - collapses the children of the active node
Search: