Skip to content

Commit 1df6f02

Browse files
authored
fix typos (#1856)
My OCD finds them mildly distracting. ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
1 parent 0b984fc commit 1df6f02

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

docs/user/experimental/keyboard/modal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To bind keys that do not have modifiers (eg just pressing `a`), add entries like
9999
},
100100
```
101101

102-
Any supported scopes, actions, or colors can be added to these sections, using the same identifierss that appear in the second column of your customisation csvs. Feel free to add / tweak / remove the keyboard shortcuts above as you see fit.
102+
Any supported scopes, actions, or colors can be added to these sections, using the same identifiers that appear in the second column of your customisation csvs. Feel free to add / tweak / remove the keyboard shortcuts above as you see fit.
103103

104104
The above allows you to press `d` followed by any letter to highlight the given token, `i` to expand to its containing line, and `t` to select the given target.
105105

packages/cursorless-engine/src/actions/GenerateSnippet/GenerateSnippet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default class GenerateSnippet {
175175
// as wrapperScopeType. Ie the output will look like `{|}` (with the `|`
176176
// representing a tabstop in the meta-snippet)
177177
//
178-
// NB: We use the subsituter here, with `isQuoted=true` because in order
178+
// NB: We use the substituter here, with `isQuoted=true` because in order
179179
// to make this work for the meta-snippet, we want to end up with
180180
// something like `{$3}`, which is not valid json. So we instead arrange
181181
// to end up with json like `"hgidfsivhs"`, and then replace the whole

packages/cursorless-engine/src/core/HatTokenMapImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const PRE_PHRASE_SNAPSHOT_MAX_AGE_NS = BigInt(6e10); // 60 seconds
2323
*/
2424
export class HatTokenMapImpl implements HatTokenMap {
2525
/**
26-
* This is the active map the changes every time we reallocate hats. It is
26+
* This is the active map that changes every time we reallocate hats. It is
2727
* liable to change in the middle of a phrase.
2828
*/
2929
private activeMap: IndividualHatMap;

packages/cursorless-engine/src/core/compareSnippetDefinitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function compareSnippetDefinitions(
2121
b.definition.scope,
2222
);
2323

24-
// Prefer the more specific snippet definitino, no matter the origin
24+
// Prefer the more specific snippet definition, no matter the origin
2525
if (scopeComparision !== 0) {
2626
return scopeComparision;
2727
}

packages/cursorless-engine/src/core/updateSelections/updateSelections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export async function performEditsAndUpdateFullSelectionInfos(
363363
originalSelectionInfos: FullSelectionInfo[][],
364364
): Promise<Selection[][]> {
365365
// NB: We do everything using VSCode listeners. We can associate changes
366-
// with our changes just by looking at their offets / text in order to
366+
// with our changes just by looking at their offsets / text in order to
367367
// recover isReplace. We need to do this because VSCode does some fancy
368368
// stuff, and returns the changes in a nice order
369369
// Note that some additional weird edits like whitespace things can be

packages/cursorless-engine/src/languages/branchMatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { childRangeSelector } from "../util/nodeSelectors";
1515
* "if_statement" or "try_statement"
1616
* @param optionalBranchTypes The optional branch type names that can be
1717
* children of the top-level statement, eg "else_clause" or "except_clause"
18-
* @returns A node matcher capabale of matching this type of branch
18+
* @returns A node matcher capable of matching this type of branch
1919
*/
2020
export function branchMatcher(
2121
statementType: string,

packages/cursorless-engine/src/processTargets/modifiers/EveryScopeStage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class EveryScopeStage implements ModifierStage {
6565
) {
6666
// If the only scope that came back completely contains the input target
6767
// range, we treat the input as if it had no explicit range, expanding
68-
// to default iteration socpe below
68+
// to default iteration scope below
6969
scopes = undefined;
7070
}
7171
}

packages/cursorless-engine/src/tokenizer/tokenizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const FIXED_TOKENS = [
4343
export const IDENTIFIER_WORD_REGEXES = ["\\p{L}", "\\p{M}", "\\p{N}"];
4444
const SINGLE_SYMBOLS_REGEX = "[^\\s\\w]";
4545
// Accepts digits dot digits if not preceded or followed by a digit or dot. The
46-
// negative lookahed / lookbehind are to prevent matching numbers in semantic
46+
// negative lookahead / lookbehind are to prevent matching numbers in semantic
4747
// versions (eg 1.2.3)
4848
const NUMBERS_REGEX = "(?<![.\\d])\\d+\\.\\d+(?![.\\d])";
4949

packages/cursorless-engine/src/util/allocateHats/allocateHats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function getTokenRemainingHatCandidates(
167167
}
168168

169169
/**
170-
* @param token The token that recevied the hat
170+
* @param token The token that received the hat
171171
* @param chosenHat The hat we chose for the token
172172
* @returns An object indicating the hat assigned to the token, along with the
173173
* range of the grapheme upon which it sits

packages/cursorless-engine/src/util/unifyRanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function unifyRemovalTargets(targets: Target[]): Target[] {
1616
a.contentRange.start.compareTo(b.contentRange.start),
1717
);
1818
let run = true;
19-
// Merge targets untill there are no overlaps/intersections
19+
// Merge targets until there are no overlaps/intersections
2020
while (run) {
2121
[results, run] = unifyTargetsOnePass(results);
2222
}

0 commit comments

Comments
 (0)