diff --git a/rc/appearance.lua b/rc/appearance.lua index 68ed00b..cbcae57 100644 --- a/rc/appearance.lua +++ b/rc/appearance.lua @@ -27,12 +27,16 @@ local gtk2 = io.open(os.getenv("HOME") .. "/.gtkrc-2.0", "w") gtk2:write(gtk) gtk2:write([[ gtk-key-theme-name="Emacs" -binding "does-not-intercept-ctrl-w" { +binding "vbe-text-entry-bindings" { + unbind "b" + unbind "b" + unbind "f" + unbind "f" unbind "w" bind "BackSpace" { "delete-from-cursor" (word-ends, -1) } } -class "GtkEntry" binding "does-not-intercept-ctrl-w" -class "GtkTextView" binding "does-not-intercept-ctrl-w" +class "GtkEntry" binding "vbe-text-entry-bindings" +class "GtkTextView" binding "vbe-text-entry-bindings" ]]) gtk2:close() @@ -50,11 +54,6 @@ gtk3:write([[ @binding-set custom-text-entry { - bind "b" { "move-cursor" (logical-positions, -1, 0) }; - bind "b" { "move-cursor" (logical-positions, -1, 1) }; - bind "f" { "move-cursor" (logical-positions, 1, 0) }; - bind "f" { "move-cursor" (logical-positions, 1, 1) }; - bind "b" { "move-cursor" (words, -1, 0) }; bind "b" { "move-cursor" (words, -1, 1) }; bind "f" { "move-cursor" (words, 1, 0) }; @@ -65,7 +64,6 @@ gtk3:write([[ bind "e" { "move-cursor" (paragraph-ends, 1, 0) }; bind "e" { "move-cursor" (paragraph-ends, 1, 1) }; - /* bind "w" { "cut-clipboard" () }; */ bind "y" { "paste-clipboard" () }; bind "d" { "delete-from-cursor" (chars, 1) };