Skip to content

Commit

Permalink
reuse existing selectCurrentForm cmd id
Browse files Browse the repository at this point in the history
  • Loading branch information
riotrah committed Mar 31, 2024
1 parent adf4a2e commit 2957cc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1562,8 +1562,8 @@
"enablement": "editorLangId == clojure"
},
{
"category": "Calva",
"command": "paredit.selectCurrentForm",
"category": "Calva Paredit",
"command": "calva.selectCurrentForm", // legacy id for backward compat
"title": "Select Current Form",
"enablement": "editorLangId == clojure"
},
Expand Down Expand Up @@ -2151,7 +2151,7 @@
"when": "calva:keybindingsEnabled"
},
{
"command": "calva.selectCurrentForm",
"command": "calva.selectCurrentForm", // legacy id for backward compat
"key": "ctrl+alt+c ctrl+s",
"when": "calva:keybindingsEnabled && editorLangId == clojure && editorTextFocus"
},
Expand Down Expand Up @@ -3078,7 +3078,7 @@
},
{
"when": "editorLangId == clojure",
"command": "calva.selectCurrentForm",
"command": "calva.selectCurrentForm", // legacy id for backward compat
"group": "calva/a-structural-editing"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/paredit/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const pareditCommands: PareditCommand[] = [

// SELECTING
{
command: 'paredit.selectCurrentForm',
command: 'calva.selectCurrentForm', // legacy command id for backward compat
handler: (doc: EditableDocument) => {
const isMulti = multiCursorEnabled();
handlers.selectCurrentForm(doc, isMulti);
Expand Down

0 comments on commit 2957cc9

Please sign in to comment.