~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for keybindings
[tig]
/
tigrc
diff --git
a/tigrc
b/tigrc
index
95e6987
..
fa08c5b
100644
(file)
--- a/
tigrc
+++ b/
tigrc
@@
-1,6
+1,7
@@
#
# Base configuration
#
#
# Base configuration
#
+# Syntax: set <option> = <value>
set show-rev-graph = yes # Show revision graph?
set line-number-interval = 5 # Interval between line numbers
set show-rev-graph = yes # Show revision graph?
set line-number-interval = 5 # Interval between line numbers
@@
-8,8
+9,23
@@
set tab-size = 8 # Number of spaces pr tab
set encoding = UTF-8 # Commit encoding
#
set encoding = UTF-8 # Commit encoding
#
+# Key configuration
+#
+# Syntax: bind <keymap> <key> <request>
+
+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
+
+#
# Color configuration
#
# Color configuration
#
+# Syntax: color <line> <color> <color> [<attribute>]
# Diff colors
color diff-header yellow default
# Diff colors
color diff-header yellow default