Skip to content

Commit d09e93c

Browse files
Merge branch 'main' into forcedSnippetLanguage
2 parents cd81210 + 09e4322 commit d09e93c

File tree

27 files changed

+181
-49
lines changed

27 files changed

+181
-49
lines changed

.github/workflows/deploy.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
2020
with:
21+
# This is needed to get the number of commits in the current branch
2122
fetch-depth: 0
2223

23-
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
24-
- name: Upgrade Corepack
25-
run: npm install --global [email protected]
26-
27-
- name: Enable Corepack
28-
run: corepack enable
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
2926

3027
- name: Set up Node.js
3128
uses: actions/setup-node@v4
@@ -70,8 +67,8 @@ jobs:
7067
- name: Checkout repository
7168
uses: actions/checkout@v4
7269

73-
- name: Enable Corepack
74-
run: corepack enable
70+
- name: Install pnpm
71+
uses: pnpm/action-setup@v4
7572

7673
- name: Set up Node.js
7774
uses: actions/setup-node@v4

.github/workflows/pr-description.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
validate-pr-description:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Set up workspace
14-
uses: actions/checkout@v2
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
1515

1616
- name: Validate description
1717
run: |

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ jobs:
2727
with:
2828
python-version: 3.x
2929

30-
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
31-
- name: Upgrade Corepack
32-
run: npm install --global [email protected]
33-
34-
- name: Enable Corepack
35-
run: corepack enable
30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v4
3632

3733
- name: Set up Node.js
3834
uses: actions/setup-node@v4

.github/workflows/test-docs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19-
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
20-
- name: Upgrade Corepack
21-
run: npm install --global [email protected]
22-
23-
- name: Enable Corepack
24-
run: corepack enable
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
2521

2622
- name: Set up Node.js
2723
uses: actions/setup-node@v4

.github/workflows/test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ jobs:
3737
- name: Checkout repository
3838
uses: actions/checkout@v4
3939

40-
# FIXME: https://github.com/cursorless-dev/cursorless/issues/2817
41-
- name: Upgrade Corepack
42-
run: npm install --global --force [email protected]
43-
44-
- name: Enable Corepack
45-
run: corepack enable
40+
- name: Install pnpm
41+
uses: pnpm/action-setup@v4
4642

4743
- name: Set up Node.js
4844
uses: actions/setup-node@v4

cursorless-talon/src/fallback.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"remove": actions.edit.delete,
2020
"editNewLineBefore": actions.edit.line_insert_up,
2121
"editNewLineAfter": actions.edit.line_insert_down,
22+
"insertCopyAfter": actions.edit.line_clone,
2223
}
2324

2425
modifier_callbacks = {

cursorless-talon/src/spoken_forms.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"fold": "foldRegion",
2929
"follow split": "followLinkAside",
3030
"follow": "followLink",
31+
"git accept": "gitAccept",
32+
"git stage": "gitStage",
33+
"git unstage": "gitUnstage",
34+
"git revert": "gitRevert",
3135
"give": "deselect",
3236
"highlight": "highlight",
3337
"hover": "showHover",
@@ -46,7 +50,7 @@
4650
"scout all": "findInWorkspace",
4751
"scout": "findInDocument",
4852
"shuffle": "randomizeTargets",
49-
"snippet make": "generateSnippet",
53+
"snip make": "generateSnippet",
5054
"sort": "sortTargets",
5155
"take": "setSelection",
5256
"type deaf": "revealTypeDefinition",
@@ -62,7 +66,7 @@
6266
},
6367
"swap_action": { "swap": "swapTargets" },
6468
"wrap_action": { "wrap": "wrapWithPairedDelimiter", "repack": "rewrap" },
65-
"insert_snippet_action": { "snippet": "insertSnippet" },
69+
"insert_snippet_action": { "snip": "insertSnippet" },
6670
"reformat_action": { "format": "applyFormatter" },
6771
"call_action": { "call": "callAsFunction" }
6872
},

packages/common/src/ide/fake/FakeCapabilities.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@ export class FakeCapabilities implements Capabilities {
1919
unfold: undefined,
2020
showReferences: undefined,
2121
insertLineAfter: undefined,
22+
gitAccept: undefined,
23+
gitRevert: undefined,
24+
gitStage: undefined,
25+
gitUnstage: undefined,
2226
};
2327
}

packages/common/src/ide/types/CommandId.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ export type CommandId =
1414
| "showHover"
1515
| "showDebugHover"
1616
| "extractVariable"
17-
| "insertLineAfter";
17+
| "insertLineAfter"
18+
| "gitAccept"
19+
| "gitRevert"
20+
| "gitStage"
21+
| "gitUnstage";

packages/common/src/types/TextEditor.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,28 @@ export interface EditableTextEditor extends TextEditor {
237237
* @param range A {@link Range range}
238238
*/
239239
extractVariable(range?: Range): Promise<void>;
240+
241+
/**
242+
* Git accept conflict (use the range to resolve a conflict hunk)
243+
* @param range A {@link Range range}
244+
*/
245+
gitAccept(range?: Range): Promise<void>;
246+
247+
/**
248+
* Git revert range
249+
* @param range A {@link Range range}
250+
*/
251+
gitRevert(range?: Range): Promise<void>;
252+
253+
/**
254+
* Git stage range
255+
* @param range A {@link Range range}
256+
*/
257+
gitStage(range?: Range): Promise<void>;
258+
259+
/**
260+
* Git unstage range
261+
* @param range A {@link Range range}
262+
*/
263+
gitUnstage(range?: Range): Promise<void>;
240264
}

0 commit comments

Comments
 (0)