content operations
This commit is contained in:
parent
b6e5153c1f
commit
a61f37ad61
8 changed files with 62 additions and 58 deletions
|
@ -6,7 +6,7 @@ import commandReducer from '../reducers/command';
|
|||
import inputReducers from '../reducers/input';
|
||||
import * as store from '../store'
|
||||
|
||||
const emptyReducer = (state, action) => state;
|
||||
const emptyReducer = (state) => state;
|
||||
const emptyStore = store.createStore(emptyReducer, (e) => {
|
||||
console.error('Vim-Vixen:', e);
|
||||
});
|
||||
|
|
|
@ -6,18 +6,18 @@ const defaultKeymap = {
|
|||
'o': { type: actions.CMD_TABS_OPEN, alter: false },
|
||||
'O': { type: actions.CMD_TABS_OPEN, alter: true },
|
||||
'b': { type: actions.CMD_BUFFER },
|
||||
'k': { type: actions.SCROLL_LINES, count: -1 },
|
||||
'j': { type: actions.SCROLL_LINES, count: 1 },
|
||||
'<C-E>': { type: actions.SCROLL_LINES, count: -1 },
|
||||
'<C-Y>': { type: actions.SCROLL_LINES, count: 1 },
|
||||
'<C-U>': { type: actions.SCROLL_PAGES, count: -0.5 },
|
||||
'<C-D>': { type: actions.SCROLL_PAGES, count: 0.5 },
|
||||
'<C-B>': { type: actions.SCROLL_PAGES, count: -1 },
|
||||
'<C-F>': { type: actions.SCROLL_PAGES, count: 1 },
|
||||
'gg': { type: actions.SCROLL_TOP },
|
||||
'G': { type: actions.SCROLL_BOTTOM },
|
||||
'0': { type: actions.SCROLL_LEFT },
|
||||
'$': { type: actions.SCROLL_RIGHT },
|
||||
'k': { type: operations.SCROLL_LINES, count: -1 },
|
||||
'j': { type: operations.SCROLL_LINES, count: 1 },
|
||||
'<C-E>': { type: operations.SCROLL_LINES, count: -1 },
|
||||
'<C-Y>': { type: operations.SCROLL_LINES, count: 1 },
|
||||
'<C-U>': { type: operations.SCROLL_PAGES, count: -0.5 },
|
||||
'<C-D>': { type: operations.SCROLL_PAGES, count: 0.5 },
|
||||
'<C-B>': { type: operations.SCROLL_PAGES, count: -1 },
|
||||
'<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 },
|
||||
|
@ -27,10 +27,10 @@ const defaultKeymap = {
|
|||
'zi': { type: operations.ZOOM_IN },
|
||||
'zo': { type: operations.ZOOM_OUT },
|
||||
'zz': { type: operations.ZOOM_NEUTRAL },
|
||||
'f': { type: actions.FOLLOW_START, newTab: false },
|
||||
'F': { type: actions.FOLLOW_START, newTab: true },
|
||||
'H': { type: actions.HISTORY_PREV },
|
||||
'L': { type: actions.HISTORY_NEXT },
|
||||
'f': { type: operations.FOLLOW_START, newTab: false },
|
||||
'F': { type: operations.FOLLOW_START, newTab: true },
|
||||
'H': { type: operations.HISTORY_PREV },
|
||||
'L': { type: operations.HISTORY_NEXT },
|
||||
}
|
||||
|
||||
const asKeymapChars = (keys) => {
|
||||
|
|
Reference in a new issue