Compare commits
No commits in common. "72bf8d000a9369be4950139fc77ab18e6bd5e93c" and "ab14c37aa7cf6a6e54abfa331e4d731971ef9d46" have entirely different histories.
72bf8d000a
...
ab14c37aa7
2 changed files with 7 additions and 21 deletions
|
@ -38,8 +38,6 @@ riverctl map normal $mod+Shift C close
|
|||
|
||||
# Open terminal
|
||||
riverctl map normal $mod Return spawn "$term"
|
||||
# Open floating terminal
|
||||
riverctl map normal $mod+Control Return spawn "$term start --class float"
|
||||
|
||||
# Open run menu
|
||||
riverctl map normal $mod Space spawn "bemenu-run"
|
||||
|
|
|
@ -57,37 +57,25 @@ local keys = {
|
|||
timeout_milliseconds = 2000,
|
||||
replace_current = true
|
||||
}
|
||||
}, { key = 'f', mods = 'LEADER', action = act.QuickSelect }, {
|
||||
key = 'F',
|
||||
mods = 'LEADER',
|
||||
action = wezterm.action.QuickSelectArgs {
|
||||
patterns = { "https?://\\S+" },
|
||||
action = wezterm.action_callback(
|
||||
function(window, pane)
|
||||
local url = window:get_selection_text_for_pane(pane)
|
||||
wezterm.log_info("opening: " .. url)
|
||||
wezterm.open_with(url)
|
||||
end)
|
||||
}
|
||||
}, {
|
||||
}, { key = 'F', mods = 'LEADER', action = act.QuickSelect }, {
|
||||
key = '/',
|
||||
mods = 'LEADER',
|
||||
action = act.Search('CurrentSelectionOrEmptyString')
|
||||
}, {
|
||||
key = 'b',
|
||||
key = 'f',
|
||||
mods = 'LEADER',
|
||||
action = act.ActivateKeyTable {
|
||||
name = 'scroll_mode',
|
||||
one_shot = false,
|
||||
replace_current = true,
|
||||
timeout_milliseconds = 15000
|
||||
timeout_milliseconds = 15000,
|
||||
}
|
||||
}, { key = 'e', mods = 'LEADER', action = act.EmitEvent 'edit-scrollback' },
|
||||
{
|
||||
}, { key = 'e', mods = 'LEADER', action = act.EmitEvent 'edit-scrollback' }, {
|
||||
key = 'l',
|
||||
mods = 'LEADER',
|
||||
action = act.EmitEvent 'ActivatePaneDirection-Right'
|
||||
}, { key = 'a', mods = 'CTRL|ALT', action = act.EmitEvent 'toggle-leader' }
|
||||
},
|
||||
{ key = 'a', mods = 'CTRL|ALT', action = act.EmitEvent 'toggle-leader' }
|
||||
|
||||
}
|
||||
-- Leader + number to activate that tab
|
||||
|
@ -122,6 +110,6 @@ local key_tables = {
|
|||
{ key = 'g', mods = 'CTRL', action = act.ScrollToTop },
|
||||
{ key = 'G', mods = 'CTRL', action = act.ScrollToBottom },
|
||||
{ key = 'Escape', action = 'PopKeyTable' }
|
||||
}
|
||||
},
|
||||
}
|
||||
return { keys = keys, key_tables = key_tables }
|
||||
|
|
Loading…
Reference in a new issue