mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 11:17:15 +03:00
fix invalid lua config
Signed-off-by: ye.sijun <junnplus@gmail.com>
This commit is contained in:
parent
57bfc508f7
commit
57059992f5
@ -12,8 +12,10 @@ panes, respectively:
|
||||
local wezterm = require 'wezterm';
|
||||
|
||||
return {
|
||||
keys = {
|
||||
{key="a", mods="ALT", action=wezterm.action{ActivatePaneByIndex=0}},
|
||||
{key="b", mods="ALT", action=wezterm.action{ActivatePaneByIndex=1}},
|
||||
{key="c", mods="ALT", action=wezterm.action{ActivatePaneByIndex=2}},
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -12,9 +12,9 @@ return {
|
||||
keys = {
|
||||
-- Clears only the scrollback and leaves the viewport intact.
|
||||
-- This is the default behavior.
|
||||
{key="K", mods="CTRL|SHIFT", action=wezterm.action{ClearScrollback="ScrollbackOnly"}}
|
||||
{key="K", mods="CTRL|SHIFT", action=wezterm.action{ClearScrollback="ScrollbackOnly"}},
|
||||
-- Clears the scrollback and viewport leaving the prompt line the new first line.
|
||||
{key="K", mods="CTRL|SHIFT", action=wezterm.action{ClearScrollback="ScrollbackAndViewport"}}
|
||||
{key="K", mods="CTRL|SHIFT", action=wezterm.action{ClearScrollback="ScrollbackAndViewport"}},
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -10,8 +10,7 @@ then kills the process associated with that pane.
|
||||
```lua
|
||||
return {
|
||||
keys = {
|
||||
{key="w", mods="CMD",
|
||||
action=wezterm.action{CloseCurrentPane={confirm=true}}
|
||||
{key="w", mods="CMD", action=wezterm.action{CloseCurrentPane={confirm=true}}},
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -19,8 +19,7 @@ a boolean `confirm` parameter:
|
||||
```lua
|
||||
return {
|
||||
keys = {
|
||||
{key="w", mods="CMD",
|
||||
action=wezterm.action{CloseCurrentTab={confirm=true}}
|
||||
{key="w", mods="CMD", action=wezterm.action{CloseCurrentTab={confirm=true}}},
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user