Add support for keybindings
authorJonas Fonseca <fonseca@diku.dk>
Thu, 8 Jun 2006 00:03:16 +0000 (02:03 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Thu, 8 Jun 2006 00:03:16 +0000 (02:03 +0200)
commit04e2b7b214944044250edfea5634cbf919473cf4
tree286f59a0706b8e8964fd174b8e05ef21856d3b7a
parent93a97d864dc8d4fa2ae51a4cb2d742e4ae9d2320
Add support for keybindings

The syntax is

bind <keymap> <key> <request>

Keybindings are resolved by first looking in the keymap of the active view,
then in the generic keymap, and finally in the built-in default keybindings.

Examples to put in ~/.tigrc:

bind main w scroll-line-up
bind main s scroll-line-down
bind diff a previous
bind diff d next
bind diff b move-first-line
bind generic g view-next
tig.c
tigrc