Skip to content

Commit

Permalink
Control-{f|b} keybinding for forwards and backwards.
Browse files Browse the repository at this point in the history
Emacs like keybindings for when Tofi is displayed horizontally.
  • Loading branch information
struan-robertson authored and philj56 committed Dec 30, 2024
1 parent ae13917 commit 77625f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode)
|| key == KEY_LEFT
|| (key == KEY_TAB && shift)
|| (key == KEY_H && alt)
|| ((key == KEY_K || key == KEY_P) && (ctrl || alt))) {
|| ((key == KEY_K || key == KEY_P || key == KEY_B) && (ctrl || alt))) {
select_previous_result(tofi);
} else if (key == KEY_DOWN
|| key == KEY_RIGHT
|| key == KEY_TAB
|| (key == KEY_L && alt)
|| ((key == KEY_J || key == KEY_N) && (ctrl || alt))) {
|| ((key == KEY_J || key == KEY_N || key == KEY_F) && (ctrl || alt))) {
select_next_result(tofi);
} else if (key == KEY_HOME) {
reset_selection(tofi);
Expand Down

0 comments on commit 77625f2

Please sign in to comment.