diff options
author | chocolateboy <chocolate@cpan.org> | 2019-07-28 05:35:07 +0100 |
---|---|---|
committer | chocolateboy <chocolate@cpan.org> | 2019-07-28 20:34:53 +0100 |
commit | 6605d3ea99c364a8f5f9d98a33e3ac89afb035f7 (patch) | |
tree | 341b3d4f6a7916e62ce1d96bdd440c6295c45a8c /src/shared/Settings.ts | |
parent | 3db11041c5b75c30b584893937876b6471e67cf2 (diff) |
Add an option to close the current tab and select the tab to the left
Add an option to tabs.close to close the current tab
and select the tab to the left.
Bound to `D` by default, which replaces the tabs.close.right
command, which is rarely-used. [1]
The old `D` behavior has been moved to `gd`.
+ update the README and fix some lint errors
[1] https://tinyurl.com/y4mj7hjy
Diffstat (limited to 'src/shared/Settings.ts')
-rw-r--r-- | src/shared/Settings.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/Settings.ts b/src/shared/Settings.ts index 0bef342..c51cbc5 100644 --- a/src/shared/Settings.ts +++ b/src/shared/Settings.ts @@ -146,7 +146,8 @@ export const DefaultSetting: Settings = { 'G': { 'type': 'scroll.bottom' }, '$': { 'type': 'scroll.end' }, 'd': { 'type': 'tabs.close' }, - 'D': { 'type': 'tabs.close.right' }, + 'D': { 'type': 'tabs.close', 'selectLeft': true }, + 'gd': { 'type': 'tabs.close.right' }, '!d': { 'type': 'tabs.close.force' }, 'u': { 'type': 'tabs.reopen' }, 'K': { 'type': 'tabs.prev' }, |