diff --git a/h-m-m b/h-m-m index c763aec..6df92b5 100755 --- a/h-m-m +++ b/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; diff --git a/readme.md b/readme.md index cfd174a..11d7de8 100644 --- a/readme.md +++ b/readme.md @@ -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