Commits

Eric Roshan Eisner  committed 39f8449

terminator: new config that notably defines ctrl-backspace

  • Participants
  • Parent commits c7fb971

Comments (0)

Files changed (2)

File .config/terminator/config

+[global_config]
+  focus = mouse
+[keybindings]
+  kill_word = <Control>BackSpace
+  go_up = <Control><Alt>Up
+  go_down = <Control><Alt>Down
+  go_right = <Control><Alt>Right
+  go_left = <Control><Alt>Left
+[profiles]
+  [[default]]
+    scrollbar_position = hidden
+    scroll_on_output = False
+    foreground_color = "#ffffff"

File .config/terminator/plugins/killword.py

+# On a Ctrl-Backspace, we want to emulate Alt-Backspace, which is almost
+# always ESC DEL ("\x1b\x7f").
+
+from terminatorlib.terminal import Terminal
+
+# This file doesn't actually define a plugin, but putting it here lets it
+# monkey patch on startup.
+available = AVAILABLE = []
+
+def key_kill_word(self):
+    self.vte.feed_child('\x1b\x7f')
+
+setattr(Terminal, 'key_kill_word', key_kill_word)