more key bindings for search

This commit is contained in:
nadrad 2022-09-16 14:58:07 +02:00
parent 9e0fd42e8f
commit dd0880e755
2 changed files with 5 additions and 1 deletions

4
h-m-m
View file

@ -125,6 +125,7 @@ const insert_child = 1;
const ctrl_p = "\020";
const ctrl_c = "\003";
const ctrl_r = "\022";
const ctrl_f = "\006";
const arr_down = "\033\133\102";
const arr_right = "\033\133\103";
@ -2659,7 +2660,10 @@ function monitor_key_presses(&$mm)
case '~': go_to_root($mm); break;
case ' ': toggle($mm); break;
case '/': search($mm); break;
case '?': search($mm); break;
case ctrl_f: search($mm); break;
case "\n": insert_node($mm, insert_sibling); break;
case "\t": insert_node($mm, insert_child); break;

View file

@ -58,7 +58,7 @@ Collapsing and expanding:
Search:
* `/` - searches for a phrase
* `/`, `?`, or `ctrl+f` - searches for a phrase
* `n` - goes to the next search result
* `N` - goes to the previous search result