/* http://mntnoe.com/2010/02/keybindings-in-gtk-applications/ */ binding "gtk-binding-menu" { bind "j" { "move-current" (next) } bind "k" { "move-current" (prev) } bind "h" { "move-current" (parent) } bind "l" { "move-current" (child) } } class "GtkMenuShell" binding "gtk-binding-menu" binding "gtk-binding-tree-view" { bind "j" { "move-cursor" (display-lines, 1) } bind "j" { "move-cursor" (display-lines, 1) } bind "k" { "move-cursor" (display-lines, -1) } bind "k" { "move-cursor" (display-lines, -1) } bind "h" { "move-cursor" (logical-positions, -1) } bind "h" { "move-cursor" (logical-positions, -1) } bind "l" { "move-cursor" (logical-positions, 1) } bind "l" { "move-cursor" (logical-positions, 1) } bind "o" { "move-cursor" (pages, 1) } bind "o" { "move-cursor" (pages, 1) } bind "u" { "move-cursor" (pages, -1) } bind "u" { "move-cursor" (pages, -1) } bind "g" { "move-cursor" (buffer-ends, -1) } bind "g" { "move-cursor" (buffer-ends, -1) } bind "y" { "move-cursor" (buffer-ends, 1) } bind "y" { "move-cursor" (buffer-ends, 1) } bind "p" { "select-cursor-parent" () } bind "i" { "expand-collapse-cursor-row" (0,0,0) } bind "semicolon" { "expand-collapse-cursor-row" (0,1,0) } bind "semicolon" { "expand-collapse-cursor-row" (0,1,1) } bind "slash" { "start-interactive-search" () } } class "GtkTreeView" binding "gtk-binding-tree-view"