Reliable letter-based default keybinds + kitty keyboard protocol
alt+tab is grabbed by desktop WMs and alt+arrows are re-encoded or swallowed by several terminals, leaking plain arrow keys into the focused window. Primary defaults are now letter chords which every terminal delivers via ESC-prefix: alt+w (switcher), alt+h/alt+l (snap), alt+m (maximize). The alt+tab/arrow variants stay as extra bindings, and standalone/client now enable the kitty keyboard protocol (DISAMBIGUATE_ESCAPE_CODES) when the terminal supports it so even those are delivered unambiguously (Konsole 23.08+, kitty, foot, wezterm, ghostty). 34/34 integration checks. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
31
config.toml
31
config.toml
@@ -44,37 +44,54 @@ scope = "global"
|
||||
label = "Ny terminal"
|
||||
action = { type = "spawn_terminal" }
|
||||
|
||||
# Fönsterväxlare (Alt+Tab-overlay i MRU-ordning).
|
||||
# OBS: vissa terminaler/skrivbord fångar alt+tab själva — alt+w är reserv.
|
||||
# Fönsterväxlare (MRU-ordning). alt+w är primär — alt+tab fångas ofta
|
||||
# av skrivbordsmiljön och alt+pilar av vissa terminaler; bokstavs-binds
|
||||
# fungerar överallt. (I terminaler med kitty keyboard-protokoll
|
||||
# levereras även alt+tab/pilar korrekt.)
|
||||
[[keybind]]
|
||||
key = "alt+tab"
|
||||
key = "alt+w"
|
||||
scope = "global"
|
||||
label = "Fönsterväxlare"
|
||||
action = { type = "window_switcher" }
|
||||
|
||||
[[keybind]]
|
||||
key = "alt+w"
|
||||
key = "alt+tab"
|
||||
scope = "global"
|
||||
action = { type = "window_switcher" }
|
||||
|
||||
# Fäst fokuserat fönster som vänster/höger halvskärm
|
||||
[[keybind]]
|
||||
key = "alt+left"
|
||||
key = "alt+h"
|
||||
scope = "global"
|
||||
label = "Fäst vänster"
|
||||
action = { type = "snap_left" }
|
||||
|
||||
[[keybind]]
|
||||
key = "alt+right"
|
||||
key = "alt+left"
|
||||
scope = "global"
|
||||
action = { type = "snap_left" }
|
||||
|
||||
[[keybind]]
|
||||
key = "alt+l"
|
||||
scope = "global"
|
||||
label = "Fäst höger"
|
||||
action = { type = "snap_right" }
|
||||
|
||||
[[keybind]]
|
||||
key = "alt+right"
|
||||
scope = "global"
|
||||
action = { type = "snap_right" }
|
||||
|
||||
# Maximera/återställ fokuserat fönster (även dubbelklick på titelraden)
|
||||
[[keybind]]
|
||||
key = "alt+m"
|
||||
scope = "global"
|
||||
label = "Maximera/återställ"
|
||||
action = { type = "maximize" }
|
||||
|
||||
[[keybind]]
|
||||
key = "alt+up"
|
||||
scope = "global"
|
||||
label = "Maximera/återställ"
|
||||
action = { type = "maximize" }
|
||||
|
||||
# Copy-mode: bläddra/söka i fokuserat fönsters historik med tangentbordet
|
||||
|
||||
Reference in New Issue
Block a user