mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
add shortcut keys for Alt+left arrow to go left and Alt+right arrow to right; replace alt with option for macOS
This commit is contained in:
parent
be650dfbbe
commit
37cafbfae3
1 changed files with 22 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
local wezterm = require 'wezterm'
|
||||
local act = wezterm.action
|
||||
|
||||
return {
|
||||
-- never play a bell sound
|
||||
|
@ -22,14 +23,29 @@ return {
|
|||
|
||||
-- key mappings
|
||||
keys = {
|
||||
-- This will create a new split and run your default program inside it
|
||||
{
|
||||
key = 's',
|
||||
mods = 'CTRL',
|
||||
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
|
||||
},
|
||||
-- This will create a new split and run your default program inside its
|
||||
{
|
||||
key = 's',
|
||||
mods = 'CTRL',
|
||||
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
|
||||
},
|
||||
-- Make Option-Left equivalent to Alt-b which many line editors interpret as backward-word
|
||||
{
|
||||
key = 'LeftArrow',
|
||||
mods = 'OPT',
|
||||
action = act.SendString '\x1bb'
|
||||
},
|
||||
-- Make Option-Right equivalent to Alt-f; forward-word
|
||||
{
|
||||
key = 'RightArrow',
|
||||
mods = 'OPT',
|
||||
action = act.SendString '\x1bf'
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
-- default terminal colors
|
||||
colors = {
|
||||
background = '#232336',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue