1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 08:51:46 +03:00

add alt-n commands to (replace|append) previous match

Note: alt-n command were used to replace main selection with next match
      (preserving the others)
This commit is contained in:
Alex Leferry 2 2014-07-03 15:22:02 +02:00
parent e51223e8e5
commit 581dc59fb8
2 changed files with 4 additions and 2 deletions

View File

@ -145,7 +145,8 @@ Basic Movement
* _?_: search (extend to next match)
* _n_: select next match
* _N_: add a new selection with next match
* _alt-n_: replace main selection with next match (preserving the others)
* _alt-n_: select previous match
* _alt-N_: add a new selection with previous match
* _pageup_: scroll up
* _pagedown_: scroll down

View File

@ -1319,8 +1319,9 @@ KeyMap keymap =
{ alt('/'), search<SelectMode::Replace, Backward> },
{ alt('?'), search<SelectMode::Extend, Backward> },
{ 'n', search_next<SelectMode::Replace, Forward> },
{ alt('n'), search_next<SelectMode::ReplaceMain, Forward> },
{ 'N', search_next<SelectMode::Append, Forward> },
{ alt('n'), search_next<SelectMode::Replace, Backward> },
{ alt('N'), search_next<SelectMode::Append, Backward> },
{ '*', use_selection_as_search_pattern<true> },
{ alt('*'), use_selection_as_search_pattern<false> },