aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 21:24:01 +0900
committerGitHub <noreply@github.com>2017-10-09 21:24:01 +0900
commitb580ef8170a31f7cbef3103d1017f89a6f105319 (patch)
treeaaba38ee6a4a7443a5b60b189444f4e02d4c248f /src/shared
parent447466808f484d4baa6b285f2dbcaf1920db5498 (diff)
parentcf36bf192ccbc6ffd175e4dd397b4a9140b7f28b (diff)
Merge pull request #28 from ueokande/horizonal-scroll
Horizonal scroll
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/default-settings.js10
-rw-r--r--src/shared/operations.js3
2 files changed, 8 insertions, 5 deletions
diff --git a/src/shared/default-settings.js b/src/shared/default-settings.js
index f287b7a..ceacb50 100644
--- a/src/shared/default-settings.js
+++ b/src/shared/default-settings.js
@@ -11,8 +11,10 @@ export default {
"w": { "type": "command.show.winopen", "alter": false },
"W": { "type": "command.show.winopen", "alter": true },
"b": { "type": "command.show.buffer" },
- "k": { "type": "scroll.lines", "count": -1 },
- "j": { "type": "scroll.lines", "count": 1 },
+ "k": { "type": "scroll.vertically", "count": -1 },
+ "j": { "type": "scroll.vertically", "count": 1 },
+ "h": { "type": "scroll.horizonally", "count": -1 },
+ "l": { "type": "scroll.horizonally", "count": 1 },
"<C-E>": { "type": "scroll.lines", "count": -1 },
"<C-Y>": { "type": "scroll.lines", "count": 1 },
"<C-U>": { "type": "scroll.pages", "count": -0.5 },
@@ -24,8 +26,8 @@ export default {
"$": { "type": "scroll.end" },
"d": { "type": "tabs.close" },
"u": { "type": "tabs.reopen" },
- "h": { "type": "tabs.prev", "count": 1 },
- "l": { "type": "tabs.next", "count": 1 },
+ "K": { "type": "tabs.prev", "count": 1 },
+ "J": { "type": "tabs.next", "count": 1 },
"r": { "type": "tabs.reload", "cache": false },
"R": { "type": "tabs.reload", "cache": true },
"zi": { "type": "zoom.in" },
diff --git a/src/shared/operations.js b/src/shared/operations.js
index ca62716..0d2a381 100644
--- a/src/shared/operations.js
+++ b/src/shared/operations.js
@@ -7,7 +7,8 @@ export default {
COMMAND_SHOW_BUFFER: 'command.show.buffer',
// Scrolls
- SCROLL_LINES: 'scroll.lines',
+ SCROLL_VERTICALLY: 'scroll.vertically',
+ SCROLL_HORIZONALLY: 'scroll.horizonally',
SCROLL_PAGES: 'scroll.pages',
SCROLL_TOP: 'scroll.top',
SCROLL_BOTTOM: 'scroll.bottom',