diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-25 21:22:28 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-25 21:45:03 +0900 |
commit | 4edb0331a1f0e80f754c34ce6686873c13506022 (patch) | |
tree | 22d98476a50995baa2533a1e89b447670b5aa67c /src/background | |
parent | c2a5a41cb6bc7780db580e6325e25b6a81729851 (diff) |
clean operation definitions
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/keys.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/background/keys.js b/src/background/keys.js index e4a8b19..5459706 100644 --- a/src/background/keys.js +++ b/src/background/keys.js @@ -1,12 +1,12 @@ import operations from '../operations'; const defaultKeymap = { - ':': { type: operations.COMMAND_OPEN }, - 'o': { type: operations.COMMAND_TABS_OPEN, alter: false }, - 'O': { type: operations.COMMAND_TABS_OPEN, alter: true }, - 't': { type: operations.COMMAND_TABS_NEW, alter: false }, - 'T': { type: operations.COMMAND_TABS_NEW, alter: true }, - 'b': { type: operations.COMMAND_BUFFER }, + ':': { type: operations.COMMAND_SHOW }, + 'o': { type: operations.COMMAND_SHOW_OPEN, alter: false }, + 'O': { type: operations.COMMAND_SHOW_OPEN, alter: true }, + 't': { type: operations.COMMAND_SHOW_TABOPEN, alter: false }, + 'T': { type: operations.COMMAND_SHOW_TABOPEN, alter: true }, + 'b': { type: operations.COMMAND_SHOW_BUFFER }, 'k': { type: operations.SCROLL_LINES, count: -1 }, 'j': { type: operations.SCROLL_LINES, count: 1 }, '<C-E>': { type: operations.SCROLL_LINES, count: -1 }, @@ -17,14 +17,14 @@ const defaultKeymap = { '<C-F>': { type: operations.SCROLL_PAGES, count: 1 }, 'gg': { type: operations.SCROLL_TOP }, 'G': { type: operations.SCROLL_BOTTOM }, - '0': { type: operations.SCROLL_LEFT }, - '$': { type: operations.SCROLL_RIGHT }, - 'd': { type: operations.TABS_CLOSE }, - 'u': { type: operations.TABS_REOPEN }, - 'h': { type: operations.TABS_PREV, count: 1 }, - 'l': { type: operations.TABS_NEXT, count: 1 }, - 'r': { type: operations.TABS_RELOAD, cache: false }, - 'R': { type: operations.TABS_RELOAD, cache: true }, + '0': { type: operations.SCROLL_HOME }, + '$': { type: operations.SCROLL_END }, + 'd': { type: operations.TAB_CLOSE }, + 'u': { type: operations.TAB_REOPEN }, + 'h': { type: operations.TAB_PREV, count: 1 }, + 'l': { type: operations.TAB_NEXT, count: 1 }, + 'r': { type: operations.TAB_RELOAD, cache: false }, + 'R': { type: operations.TAB_RELOAD, cache: true }, 'zi': { type: operations.ZOOM_IN }, 'zo': { type: operations.ZOOM_OUT }, 'zz': { type: operations.ZOOM_NEUTRAL }, |