Skip to content

Commit

Permalink
Behavior choice: Basic helix keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
Strackeror committed Jul 2, 2024
1 parent 7bf1463 commit 41851a8
Show file tree
Hide file tree
Showing 18 changed files with 2,014 additions and 1,474 deletions.
3 changes: 3 additions & 0 deletions meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ export function parseKeys(keys: string) {
const remainingKeybinding = keybinding.replace(/[csa]-/g, ""),
whenClauses = ["editorTextFocus"];

if (category !== "core") {
whenClauses.push(`dance.behavior=='${category}'`);
}
for (let tag of tags.split(", ")) {
const negate = tag.startsWith("!");
if (negate) {
Expand Down
6 changes: 6 additions & 0 deletions package.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ export const pkg = (modules: Builder.ParsedModule[]) => ({
description: "Controls which mode is set by default when an editor is opened.",
...modeNamePattern,
},
"dance.behavior": {
enum: ["kakoune", "helix"],
enumItemLabels: ["Kakoune", "Helix"],
description: "Controls which base set of editor keybinds to use",
default: "kakoune",
},
"dance.modes": {
type: "object",
scope: "language-overridable",
Expand Down
Loading

0 comments on commit 41851a8

Please sign in to comment.