Skip to content

Commit

Permalink
Added vim-like search history nav with ^P and ^N
Browse files Browse the repository at this point in the history
  • Loading branch information
tagniam committed Apr 4, 2017
1 parent a6aa073 commit dbd4d12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions search_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ void search_mode_ch(uchar ch)
case 0x0B:
cmdline_clear_end();
break;
case 0x10: // ^P
search_mode_key(KEY_UP);
return;
case 0xE: // ^N
search_mode_key(KEY_DOWN);
return;
case 0x15:
cmdline_backspace_to_bol();
break;
Expand Down

0 comments on commit dbd4d12

Please sign in to comment.