clean operation definitions

This commit is contained in:
Shin'ya Ueoka 2017-09-25 21:22:28 +09:00
parent c2a5a41cb6
commit 4edb0331a1
4 changed files with 44 additions and 37 deletions

View file

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