diff options
author | chocolateboy <chocolate@cpan.org> | 2019-07-31 15:01:06 +0100 |
---|---|---|
committer | chocolateboy <chocolate@cpan.org> | 2019-07-31 15:02:21 +0100 |
commit | 9a3e8f323797e693c6a5b2d09b1c1b753c8ee5ba (patch) | |
tree | eb434c46e86b16836d06aaf9943fe28b7a2fe8b8 | |
parent | 6605d3ea99c364a8f5f9d98a33e3ac89afb035f7 (diff) |
tabs.close.right: rename `gd` -> `x$`
-rw-r--r-- | e2e/settings.js | 2 | ||||
-rw-r--r-- | e2e/tab.test.js | 4 | ||||
-rw-r--r-- | src/shared/SettingData.ts | 2 | ||||
-rw-r--r-- | src/shared/Settings.ts | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/e2e/settings.js b/e2e/settings.js index e3e9787..b69e3e7 100644 --- a/e2e/settings.js +++ b/e2e/settings.js @@ -25,7 +25,7 @@ module.exports = { "$": { "type": "scroll.end" }, "d": { "type": "tabs.close" }, "D": { "type": "tabs.close", "selectLeft": true }, - "gd": { "type": "tabs.close.right" }, + "x$": { "type": "tabs.close.right" }, "!d": { "type": "tabs.close.force" }, "u": { "type": "tabs.reopen" }, "K": { "type": "tabs.prev", "count": 1 }, diff --git a/e2e/tab.test.js b/e2e/tab.test.js index aaaa5d7..c82890e 100644 --- a/e2e/tab.test.js +++ b/e2e/tab.test.js @@ -77,10 +77,10 @@ describe("tab test", () => { assert(current[2].url === tabs[2].url); }); - it('deletes all tabs to the right by gD', async () => { + it('deletes all tabs to the right by x$', async () => { await browser.tabs.update(tabs[1].id, { active: true }); let body = await session.findElementByCSS('body'); - await body.sendKeys('g', Key.Shift, 'D'); + await body.sendKeys('x', '$'); let current = await browser.tabs.query({ windowId: win.id }); assert(current.length === 2); diff --git a/src/shared/SettingData.ts b/src/shared/SettingData.ts index 94d1e21..e6434a2 100644 --- a/src/shared/SettingData.ts +++ b/src/shared/SettingData.ts @@ -354,7 +354,7 @@ export const DefaultSettingData: SettingData = SettingData.valueOf({ "$": { "type": "scroll.end" }, "d": { "type": "tabs.close" }, "D": { "type": "tabs.close", "selectLeft": true }, - "gd": { "type": "tabs.close.right" }, + "x$": { "type": "tabs.close.right" }, "!d": { "type": "tabs.close.force" }, "u": { "type": "tabs.reopen" }, "K": { "type": "tabs.prev" }, diff --git a/src/shared/Settings.ts b/src/shared/Settings.ts index c51cbc5..19101c1 100644 --- a/src/shared/Settings.ts +++ b/src/shared/Settings.ts @@ -147,7 +147,7 @@ export const DefaultSetting: Settings = { '$': { 'type': 'scroll.end' }, 'd': { 'type': 'tabs.close' }, 'D': { 'type': 'tabs.close', 'selectLeft': true }, - 'gd': { 'type': 'tabs.close.right' }, + 'x$': { 'type': 'tabs.close.right' }, '!d': { 'type': 'tabs.close.force' }, 'u': { 'type': 'tabs.reopen' }, 'K': { 'type': 'tabs.prev' }, |