mirror of
https://github.com/nadrad/h-m-m.git
synced 2026-03-13 20:25:45 +01:00
more key bindings for search
This commit is contained in:
parent
9e0fd42e8f
commit
dd0880e755
2 changed files with 5 additions and 1 deletions
4
h-m-m
4
h-m-m
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue