Skip to content

Commit

Permalink
Merge pull request #5 from unanimousarc/master
Browse files Browse the repository at this point in the history
Added ^f and ^b keybindings (vim-like) for page forward and backwards
  • Loading branch information
theabraham committed Nov 1, 2014
2 parents 1b5334f + 04a1891 commit 4a6a614
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions route.c
Expand Up @@ -174,7 +174,11 @@ bool route(int ch)
case '^': goto_line_beg(); break;
case '$': goto_line_end(); break;
case 'd': goto_half_next(); break;
case CTRL('d'): goto_half_next(); break;
case CTRL('f'): goto_half_next(); break;
case 'u': goto_half_prev(); break;
case CTRL('u'): goto_half_prev(); break;
case CTRL('b'): goto_half_prev(); break;
case '?': view.help = !view.help; break;
default: break;
}
Expand Down
1 change: 1 addition & 0 deletions view.c
Expand Up @@ -22,6 +22,7 @@

const char *controls = "h j k l move up, down, left, right\n"
"^u ^d page up, page down\n"
"^b ^f page backwards, page forwards\n"
"g G first, last line\n"
"^ $ start, end of line\n"
"R replace mode\n"
Expand Down

0 comments on commit 4a6a614

Please sign in to comment.