Skip to content

Commit ac8c76b

Browse files
committed
vim colemak mode snapsot
1 parent 41a727d commit ac8c76b

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

src/ts/core/features/index.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@ import {Dictionary} from 'lodash'
22

33
import {Feature, prepareSettings, Settings, Shortcut} from '../settings'
44

5-
import {config as incDec} from './inc-dec-value'
6-
import {config as srs} from '../srs/srs'
5+
// import {config as incDec} from './inc-dec-value'
6+
// import {config as srs} from '../srs/srs'
77
import {config as blockManipulation} from './block-manipulation'
88
import {config as vimMode} from './vim-mode'
9-
import {config as spatialMode} from './spatial-mode'
10-
import {config as estimate} from './estimates'
9+
// import {config as spatialMode} from './spatial-mode'
10+
// import {config as estimate} from './estimates'
1111
import {config as navigation} from './navigation'
12-
import {config as livePreview} from './livePreview'
12+
// import {config as livePreview} from './livePreview'
1313
import {config as dateTitle} from './day-title'
14-
import {config as fuzzyDate} from './fuzzy_date'
15-
import {config as randomPage} from './random-page'
14+
// import {config as fuzzyDate} from './fuzzy_date'
15+
// import {config as randomPage} from './random-page'
1616
import {filterAsync, mapAsync} from '../common/async'
1717
import {Handler} from 'src/core/react-hotkeys/key-handler'
1818
import {KeySequenceString} from 'src/core/react-hotkeys/key-sequence'
19-
import {combineReducers, createStore, Store} from 'redux';
20-
import {IAppState} from 'src/background/store';
21-
import settings from 'src/background/store/settings/reducer';
22-
import {getStateFromStorage, saveStateToStorage} from 'src/core/common/storage';
19+
import {combineReducers, createStore, Store} from 'redux'
20+
import {IAppState} from 'src/background/store'
21+
import settings from 'src/background/store/settings/reducer'
22+
import {getStateFromStorage, saveStateToStorage} from 'src/core/common/storage'
2323

2424
export const Features = {
2525
all: prepareSettings([
26-
incDec, // prettier
27-
srs,
26+
// incDec, // prettier
27+
// srs,
2828
blockManipulation,
2929
vimMode,
30-
spatialMode,
31-
estimate,
30+
// spatialMode,
31+
// estimate,
3232
navigation,
3333
dateTitle,
34-
fuzzyDate,
35-
livePreview,
36-
randomPage,
34+
// fuzzyDate,
35+
// livePreview,
36+
// randomPage,
3737
]),
3838

3939
isActive: Settings.isActive,

src/ts/core/features/vim-mode/commands/block-manipulation-commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ const moveBlockDown = async () => {
1313
}
1414

1515
export const BlockManipulationCommands = [
16-
nimap('command+shift+k', 'Move Block Up', moveBlockUp),
17-
nimap('command+shift+j', 'Move Block Down', moveBlockDown),
16+
nimap('command+shift+h', 'Move Block Up', moveBlockUp),
17+
nimap('command+shift+k', 'Move Block Down', moveBlockDown),
1818
]

src/ts/core/features/vim-mode/commands/navigation-commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {VimRoamPanel} from 'src/core/features/vim-mode/roam/roam-vim-panel'
33
import {closePageReferenceView, expandLastBreadcrumb, openMentions, openParentPage} from 'src/core/roam/references'
44

55
export const NavigationCommands = [
6-
nvmap('k', 'Select Block Up', () => RoamVim.jumpBlocksInFocusedPanel(-1)),
7-
nvmap('j', 'Select Block Down', () => RoamVim.jumpBlocksInFocusedPanel(1)),
6+
nvmap('h', 'Select Block Up', () => RoamVim.jumpBlocksInFocusedPanel(-1)),
7+
nvmap('k', 'Select Block Down', () => RoamVim.jumpBlocksInFocusedPanel(1)),
88
nmap('shift+h', 'Select First Visible Block', () => VimRoamPanel.selected().selectFirstVisibleBlock()),
99
nmap('shift+l', 'Select Last Visible Block', () => VimRoamPanel.selected().selectLastVisibleBlock()),
1010
nmap('g g', 'Select First Block', () => VimRoamPanel.selected().selectFirstBlock()),

src/ts/core/features/vim-mode/commands/panel-commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const closeSidebarPage = () => {
1515

1616
export const PanelCommands = [
1717
// Need to wrap in function to preserve the `this` reference inside of RoamPanel
18-
nmap('h', 'Select Panel Left', () => VimRoamPanel.previousPanel().select()),
18+
nmap('j', 'Select Panel Left', () => VimRoamPanel.previousPanel().select()),
1919
nmap('l', 'Select Panel Right', () => VimRoamPanel.nextPanel().select()),
2020
map('ctrl+w', 'Close Page in Side Bar', closeSidebarPage),
2121
]

0 commit comments

Comments
 (0)