refactor(nix): remove unused WezTerm fullscreen handling logic
- Deleted the `action_unless_fullscreen` function and its related keybindings, as they were commented out and no longer in use. - Simplifies and cleans up the WezTerm configuration for better maintainability.
This commit is contained in:
parent
267be620cf
commit
abca87c67b
1 changed files with 0 additions and 17 deletions
|
|
@ -80,23 +80,6 @@
|
||||||
config.enable_kitty_keyboard = true
|
config.enable_kitty_keyboard = true
|
||||||
config.enable_scroll_bar = true
|
config.enable_scroll_bar = true
|
||||||
|
|
||||||
local function action_unless_fullscreen(action, key)
|
|
||||||
return wezterm.action_callback(function(win, pane)
|
|
||||||
if pane:is_alt_screen_active() then
|
|
||||||
-- a program is full screen, passthrough the key
|
|
||||||
win:perform_action(act.SendKey { key = key, mods = 'NONE' }, pane)
|
|
||||||
else
|
|
||||||
-- do the action
|
|
||||||
win:perform_action(action, pane)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- config.keys = {
|
|
||||||
-- { key = 'PageUp', mods = 'NONE', action = action_unless_fullscreen(act.ScrollByPage(-0.5), 'PageUp') },
|
|
||||||
-- { key = 'PageDown', mods = 'NONE', action = action_unless_fullscreen(act.ScrollByPage(0.5), 'PageDown') },
|
|
||||||
-- }
|
|
||||||
|
|
||||||
config.term = 'wezterm'
|
config.term = 'wezterm'
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue