fix invalid lua config

Signed-off-by: ye.sijun <junnplus@gmail.com>
This commit is contained in:
ye.sijun authored and Wez Furlong committed 2022-02-25 08:20:33 -08:00
1 parent 57bfc508f7
commit 57059992f5
4 files changed
+6 -6

No files matched your search

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