Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ function getScopeFixtures(
for (const f of scope.facets) {
f.fixtures.sort(nameComparator);
}
if (scopeReferences[scope.scopeTypeType].private) {
const scopeRef = scopeReferences[scope.scopeTypeType];
if ("private" in scopeRef && scopeRef.private) {
result.internal.push(scope);
} else {
result.public.push(scope);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `append`
## Syntax

- append `<target>`: Adds `<target>` to the current selection set.

## Examples

- `"append blue air"`: Adds the token containing letter 'a' with a blue hat to the current selections.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `append post`
## Syntax

- append post `<target>`: Adds empty selection after `<target>` to the current selection set.

## Examples

- `"append post blue air"`: Adds an empty selection after the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `append pre`
## Syntax

- append pre `<target>`: Adds empty selection before `<target>` to the current selection set.

## Examples

- `"append pre blue air"`: Adds an empty selection before the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `format`
## Syntax

- format `<formatter>` at `<target>`: Reformat `<target>` as `<formatter>`.

## Examples

- `"format camel at blue air"`: Reformats the token containing letter 'a' with a blue hat as camel case.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/breakLine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `break`
## Syntax

- break `<target>`: Breaks the line before `<target>`.

## Examples

- `"break blue air"`: Breaks the line before the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ Default: `call`

- call `<target>`: Insert call to `<target>` on selection.
- call `<target 1>` on `<target 2>`: Insert call to `<target 1>` on `<target 2>`.

## Examples

- `"call blue air"`: Inserts a call to the token containing letter 'a' with a blue hat at the current selection.
- `"call blue air on green bat"`: Inserts a call to the token containing letter 'a' with a blue hat on the token containing letter 'b' with a green hat.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ Legacy: `clear`
## Syntax

- change `<target>`: Change `<target>` by clearing it and leaving the cursor in its place.

## Examples

- `"change blue air"`: Changes the token containing letter 'a' with a blue hat by clearing it and leaving the cursor in its place.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `copy`
## Syntax

- copy `<target>`: Copy `<target>` to clipboard.

## Examples

- `"copy blue air"`: Copies the token containing letter 'a' with a blue hat to the clipboard.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `carve`
## Syntax

- carve `<target>`: Cut `<target>` to clipboard.

## Examples

- `"carve blue air"`: Cuts the token containing letter 'a' with a blue hat to the clipboard.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/decrement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `decrement`
## Syntax

- decrement `<target>`: Decrement number at `<target>`.

## Examples

- `"decrement blue five"`: Decrements the number at the token containing number '5' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/deselect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `give`
## Syntax

- give `<target>`: Deselect `<target>`.

## Examples

- `"give blue air"`: Removes the token containing letter 'a' with a blue hat from the current selections.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ Default: `pour`

- pour `<target>`: Edit new line after `<target>`.
- pour `<scope>` `<target>`: Edit new `<scope>` after `<target>`.

## Examples

- `"pour blue air"`: Inserts a new line below the token containing letter 'a' with a blue hat and moves the cursor to it.
- `"pour item blue air"`: Inserts the delimiters for a new collection item after the item containing the token containing letter 'a' with a blue hat and moves the cursor there.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ Default: `drink`

- drink `<target>`: Edit new line before `<target>`.
- drink `<scope>` `<target>`: Edit new `<scope>` before `<target>`.

## Examples

- `"drink blue air"`: Inserts a new line above the token containing letter 'a' with a blue hat and moves the cursor to it.
- `"drink item blue air"`: Inserts the delimiters for a new collection item before the item containing the token containing letter 'a' with a blue hat and moves the cursor there.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `extract`
## Syntax

- extract `<target>`: Extract variable from `<target>`.

## Examples

- `"extract value blue air"`: Extracts the value containing the token containing letter 'a' with a blue hat into a variable.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `scout`
## Syntax

- scout `<target>`: Find `<target>` in document.

## Examples

- `"scout blue air"`: Searches the current document for the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `scout all`
## Syntax

- scout all `<target>`: Find `<target>` in workspace.

## Examples

- `"scout all blue air"`: Searches the workspace for the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `flash`
## Syntax

- flash `<target>`: Flash `<target>`.

## Examples

- `"flash blue air"`: Briefly flashes the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/foldRegion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `fold`
## Syntax

- fold `<target>`: Fold region at `<target>`.

## Examples

- `"fold funk blue air"`: Folds the function containing the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/followLink.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `follow`
## Syntax

- follow `<target>`: Follow link at `<target>`.

## Examples

- `"follow blue air"`: Opens the link containing the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `follow split`
## Syntax

- follow split `<target>`: Follow link at `<target>` aside (e.g. in a split view).

## Examples

- `"follow split blue air"`: Opens the link containing the token containing letter 'a' with a blue hat in a split view.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ Legacy: `snippet make`
## Syntax

- snip make `<target>`: Generate snippet from `<target>`.

## Examples

- `"snip make funk blue air"`: Generates a snippet from the function containing the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/gitAccept.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `git accept`
## Syntax

- git accept `<target>`: Accept Git change at `<target>`.

## Examples

- `"git accept blue air"`: Accepts the Git change on the line containing the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/gitRevert.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `git revert`
## Syntax

- git revert `<target>`: Revert Git change at `<target>`.

## Examples

- `"git revert blue air"`: Reverts the Git change on the line containing the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/gitStage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `git stage`
## Syntax

- git stage `<target>`: Stage Git change at `<target>`.

## Examples

- `"git stage blue air"`: Stages the Git change on the line containing the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/gitUnstage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `git unstage`
## Syntax

- git unstage `<target>`: Unstage Git change at `<target>`.

## Examples

- `"git unstage blue air"`: Unstages the Git change on the line containing the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/highlight.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `highlight`
## Syntax

- highlight `<target>`: Highlight `<target>`.

## Examples

- `"highlight blue air"`: Highlights the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/increment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `increment`
## Syntax

- increment `<target>`: Increment number at `<target>`.

## Examples

- `"increment blue five"`: Increments the token containing number '5' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/indentLine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `indent`
## Syntax

- indent `<target>`: Indent line containing `<target>`.

## Examples

- `"indent blue air"`: Indents the line containing the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `clone`
## Syntax

- clone `<target>`: Insert copy after `<target>`.

## Examples

- `"clone funk blue air"`: Inserts a copy of the function containing the token containing letter 'a' with a blue hat after itself.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `clone up`
## Syntax

- clone up `<target>`: Insert copy before `<target>`.

## Examples

- `"clone up funk blue air"`: Inserts a copy of the function containing the token containing letter 'a' with a blue hat before itself.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Insert empty line after
# Insert empty line/scope after

Cursorless ID: `insertEmptyLineAfter`

Expand All @@ -8,4 +8,9 @@ Default: `float`

## Syntax

- float `<target>`: Insert empty line after `<target>`.
- float `<target>`: Insert empty line/scope after `<target>`.

## Examples

- `"float blue air"`: Inserts an empty line below the token containing letter 'a' with a blue hat without moving the cursor.
- `"float item blue air"`: Inserts the required delimiter after the collection item containing the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Insert empty line before
# Insert empty line/scope before

Cursorless ID: `insertEmptyLineBefore`

Expand All @@ -8,4 +8,9 @@ Default: `drop`

## Syntax

- drop `<target>`: Insert empty line before `<target>`.
- drop `<target>`: Insert empty line/scope before `<target>`.

## Examples

- `"drop blue air"`: Inserts an empty line above the token containing letter 'a' with a blue hat without moving the cursor.
- `"drop item blue air"`: Inserts the required delimiter before the collection item containing the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Insert empty lines around
# Insert empty lines/scopes around

Cursorless ID: `insertEmptyLinesAround`

Expand All @@ -8,4 +8,9 @@ Default: `puff`

## Syntax

- puff `<target>`: Insert empty lines around `<target>`.
- puff `<target>`: Insert empty lines/scopes around `<target>`.

## Examples

- `"puff blue air"`: Inserts empty lines around the line containing the token containing letter 'a' with a blue hat without moving the cursor.
- `"puff token blue air"`: Inserts spaces around the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `snip`
## Syntax

- snip `<snippet>` `<destination>`: Insert snippet at `<destination>`.

## Examples

- `"snip if after blue air"`: Inserts an if-statement snippet after the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/joinLines.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `join`
## Syntax

- join `<target>`: Join lines at `<target>`.

## Examples

- `"join blue air"`: Joins the line containing the token containing letter 'a' with a blue hat with the following line.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ Default: `move`

- move `<target>`: Move `<target>` to selection.
- move `<target>` `<destination>`: Move `<target>` to `<destination>`.

## Examples

- `"move blue air"`: Moves the token containing letter 'a' with a blue hat to the current selection.
- `"move blue air after green bat"`: Moves the token containing letter 'a' with a blue hat to after the token containing letter 'b' with a green hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `phones`
## Syntax

- phones `<target>`: Cycle to next homophone for `<target>`.

## Examples

- `"phones blue air"`: Replaces the token containing letter 'a' with a blue hat with its next homophone.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/outdentLine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `dedent`
## Syntax

- dedent `<target>`: Outdent line containing `<target>`.

## Examples

- `"dedent blue air"`: Decreases the indentation of the line containing the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `paste`
## Syntax

- paste `<destination>`: Paste from clipboard at `<destination>`.

## Examples

- `"paste after blue air"`: Pastes the clipboard contents after the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `shuffle`
## Syntax

- shuffle `<target>`: Randomize `<target>`s.

## Examples

- `"shuffle every item blue air"`: Randomizes the collection items associated with the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/remove.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ Default: `chuck`
## Syntax

- chuck `<target>`: Remove `<target>`.

## Examples

- `"chuck blue air"`: Removes the token containing letter 'a' with a blue hat.
4 changes: 4 additions & 0 deletions packages/app-web-docs/src/docs/user/actions/rename.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `rename`
## Syntax

- rename `<target>`: Rename `<target>`.

## Examples

- `"rename blue air"`: Starts renaming the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ Default: `bring`

- bring `<target>`: Insert copy of `<target>` at selection.
- bring `<target>` `<destination>`: Copy `<target>` to `<destination>`.

## Examples

- `"bring blue air"`: Inserts a copy of the token containing letter 'a' with a blue hat at the current selection.
- `"bring blue air to green bat"`: Replaces the token containing letter 'b' with a green hat with a copy of the token containing letter 'a' with a blue hat.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ Default: `define`
## Syntax

- define `<target>`: Reveal definition of `<target>`.

## Examples

- `"define blue air"`: Opens the definition of the token containing letter 'a' with a blue hat.
Loading
Loading