|
|
@ -1,12 +1,12 @@ |
|
|
|
import operations from '../operations'; |
|
|
|
import operations from '../operations'; |
|
|
|
|
|
|
|
|
|
|
|
const defaultKeymap = { |
|
|
|
const defaultKeymap = { |
|
|
|
':': { type: operations.COMMAND_OPEN }, |
|
|
|
':': { type: operations.COMMAND_SHOW }, |
|
|
|
'o': { type: operations.COMMAND_TABS_OPEN, alter: false }, |
|
|
|
'o': { type: operations.COMMAND_SHOW_OPEN, alter: false }, |
|
|
|
'O': { type: operations.COMMAND_TABS_OPEN, alter: true }, |
|
|
|
'O': { type: operations.COMMAND_SHOW_OPEN, alter: true }, |
|
|
|
't': { type: operations.COMMAND_TABS_NEW, alter: false }, |
|
|
|
't': { type: operations.COMMAND_SHOW_TABOPEN, alter: false }, |
|
|
|
'T': { type: operations.COMMAND_TABS_NEW, alter: true }, |
|
|
|
'T': { type: operations.COMMAND_SHOW_TABOPEN, alter: true }, |
|
|
|
'b': { type: operations.COMMAND_BUFFER }, |
|
|
|
'b': { type: operations.COMMAND_SHOW_BUFFER }, |
|
|
|
'k': { type: operations.SCROLL_LINES, count: -1 }, |
|
|
|
'k': { type: operations.SCROLL_LINES, count: -1 }, |
|
|
|
'j': { type: operations.SCROLL_LINES, count: 1 }, |
|
|
|
'j': { type: operations.SCROLL_LINES, count: 1 }, |
|
|
|
'<C-E>': { 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 }, |
|
|
|
'<C-F>': { type: operations.SCROLL_PAGES, count: 1 }, |
|
|
|
'gg': { type: operations.SCROLL_TOP }, |
|
|
|
'gg': { type: operations.SCROLL_TOP }, |
|
|
|
'G': { type: operations.SCROLL_BOTTOM }, |
|
|
|
'G': { type: operations.SCROLL_BOTTOM }, |
|
|
|
'0': { type: operations.SCROLL_LEFT }, |
|
|
|
'0': { type: operations.SCROLL_HOME }, |
|
|
|
'$': { type: operations.SCROLL_RIGHT }, |
|
|
|
'$': { type: operations.SCROLL_END }, |
|
|
|
'd': { type: operations.TABS_CLOSE }, |
|
|
|
'd': { type: operations.TAB_CLOSE }, |
|
|
|
'u': { type: operations.TABS_REOPEN }, |
|
|
|
'u': { type: operations.TAB_REOPEN }, |
|
|
|
'h': { type: operations.TABS_PREV, count: 1 }, |
|
|
|
'h': { type: operations.TAB_PREV, count: 1 }, |
|
|
|
'l': { type: operations.TABS_NEXT, count: 1 }, |
|
|
|
'l': { type: operations.TAB_NEXT, count: 1 }, |
|
|
|
'r': { type: operations.TABS_RELOAD, cache: false }, |
|
|
|
'r': { type: operations.TAB_RELOAD, cache: false }, |
|
|
|
'R': { type: operations.TABS_RELOAD, cache: true }, |
|
|
|
'R': { type: operations.TAB_RELOAD, cache: true }, |
|
|
|
'zi': { type: operations.ZOOM_IN }, |
|
|
|
'zi': { type: operations.ZOOM_IN }, |
|
|
|
'zo': { type: operations.ZOOM_OUT }, |
|
|
|
'zo': { type: operations.ZOOM_OUT }, |
|
|
|
'zz': { type: operations.ZOOM_NEUTRAL }, |
|
|
|
'zz': { type: operations.ZOOM_NEUTRAL }, |
|
|
|