Skip to content

Commit

Permalink
Fix shift+c in helix modes
Browse files Browse the repository at this point in the history
Remove category field from package.json
  • Loading branch information
Strackeror committed Jul 15, 2024
1 parent 7baaa30 commit 7e1a759
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 421 deletions.
3 changes: 2 additions & 1 deletion extensions/helix/package.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({
keybindings = modules
.flatMap((module) => module.keybindings)
.filter((keybinding) => ["core", "helix", undefined].includes(keybinding.category))
.map((k) => ({ ...k }));
.map(({ category, ...kb }) => kb);

for (const mode of ["normal", "select", "insert"]) {
for (const keybind of keybindings) {
keybind.when = keybind.when.replace(`dance.mode == '${mode}'`, `dance.mode == 'helix/${mode}'`);
Expand Down
Loading

0 comments on commit 7e1a759

Please sign in to comment.