1
1
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:
ye.sijun 2022-02-25 14:04:46 +08:00 committed by Wez Furlong
parent 57bfc508f7
commit 57059992f5
4 changed files with 6 additions and 6 deletions

View File

@ -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}},
}
}
```

View File

@ -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"}},
}
}
```

View File

@ -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}}},
}
}
```

View File

@ -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}}},
}
}
```