Skip to content

Commit

Permalink
πŸ”§ Add modifiers to vim normal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-liu committed Nov 29, 2023
1 parent c1eb26c commit d655e0b
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions src/layers/vim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@ import {
toRemoveNotificationMessage,
toSetVar,
withCondition,
withModifier,
} from 'karabiner.ts'
import { toLocalSound } from '../utils/sounds'

export const vimNormalMode = {
h: toKey('←'),
j: toKey('↓'),
k: toKey('↑'),
l: toKey('β†’'),
export const vimNormalMode = [
withModifier('??')({
h: toKey('←'),
j: toKey('↓'),
k: toKey('↑'),
l: toKey('β†’'),

0: toKey('←', '⌘'),
';': toKey('β†’', '⌘'),
d: toKey('β€ΉβŒ˜'),
s: toKey('β€ΉβŒƒ'),
a: toKey('β€ΉβŒ₯'),
';': toKey('‹⇧'),
}),

b: toKey('←', 'βŒ₯'),
e: toKey('β†’', 'βŒ₯'),

y: toKey('c', '⌘'),
p: toKey('v', '⌘'),
x: toKey('x', '⌘'),
u: toKey('z', '⌘'),
}
{
y: toKey('c', '⌘'),
p: toKey('v', '⌘'),
x: toKey('x', '⌘'),
u: toKey('z', '⌘'),
},
]

export const toVimNormalMode = [
toNotificationMessage('vim', 'Vim - Normal Mode'),
Expand Down

0 comments on commit d655e0b

Please sign in to comment.