Overrides for Deepin Terminal

Some overrides necessary for Deepin Terminal. 

- Tab nav
- Zoom/font size controls
- Tab close shortcut remap to avoid closing all other tabs instead of current tab
This commit is contained in:
RedBearAK
2022-05-19 04:03:30 -08:00
committed by GitHub
parent 35981fc77f
commit e82de02e00

View File

@@ -733,6 +733,15 @@ define_keymap(re.compile("Io.elementary.terminal|kitty", re.IGNORECASE),{
}, "Elementary Terminal tab switching")
define_keymap(re.compile("deepin-terminal", re.IGNORECASE),{
K("RC-w"): K("M-w"), # Close only current tab, instead of all other tabs
K("RC-j"): None, # Block Cmd+J from remapping to vertical split (Ctrl+Shift+J)
K("RC-Shift-Left_Brace"): K("C-Tab"), # Tab nav: Go to prior tab (left)
K("RC-Shift-Right_Brace"): K("C-Shift-Tab"), # Tab nav: Go to next tab (right)
K("RC-minus"): K("C-minus"), # Decrease font size/zoom out
K("RC-equal"): K("C-equal"), # Increase font size/zoom in
},"Deepin Terminal fixes")
define_keymap(re.compile(termStr, re.IGNORECASE),{
K("LC-RC-f"): K("M-F10"), # Toggle window maximized state
# K("RC-Grave"): K("Super-Tab"), # xfce4 Switch within app group