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

Merge remote-tracking branch 'alexherbo2/previous-match'

This commit is contained in:
Maxime Coste 2014-07-05 12:36:35 +01:00
commit a61db7ef5e
2 changed files with 4 additions and 2 deletions

View File

@ -142,7 +142,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

@ -1332,8 +1332,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> },