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
114 changes: 0 additions & 114 deletions packages/app-web-docs/src/docs/components/ReferenceEntry.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,8 @@ export function ScopeVisualizer({ languageId, scopeTypeType }: Props) {
const [scopes] = useState(
getScopeFixtures(scopeTests, languageId, scopeTypeType),
);
const [rangeType, setRangeType] = useState<RangeType>(
scopeTypeType != null ? "blend" : "content",
);
const [renderWhitespace, setRenderWhitespace] = useState(
scopeTypeType != null,
);
const [rangeType, setRangeType] = useState<RangeType>("content");
const [renderWhitespace, setRenderWhitespace] = useState(true);

if (scopes.internal.length === 0 && scopes.public.length === 0) {
return null;
Expand Down
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/addSelection.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Add selection

<ActionReference id="addSelection" />
Cursorless ID: `addSelection`

## Spoken form

Default: `append`

## Syntax

- append `<target>`: Adds `<target>` to the current selection set.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Add selection after

<ActionReference id="addSelectionAfter" />
Cursorless ID: `addSelectionAfter`

## Spoken form

Default: `append post`

## Syntax

- append post `<target>`: Adds empty selection after `<target>` to the current selection set.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Add selection before

<ActionReference id="addSelectionBefore" />
Cursorless ID: `addSelectionBefore`

## Spoken form

Default: `append pre`

## Syntax

- append pre `<target>`: Adds empty selection before `<target>` to the current selection set.
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/applyFormatter.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Apply formatter

<ActionReference id="applyFormatter" />
Cursorless ID: `applyFormatter`

## Spoken form

Default: `format`

## Syntax

- format `<formatter>` at `<target>`: Reformat `<target>` as `<formatter>`.
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/breakLine.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Break line

<ActionReference id="breakLine" />
Cursorless ID: `breakLine`

## Spoken form

Default: `break`

## Syntax

- break `<target>`: Breaks the line before `<target>`.
13 changes: 10 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/callAsFunction.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Call as function

<ActionReference id="callAsFunction" />
Cursorless ID: `callAsFunction`

## Spoken form

Default: `call`

## Syntax

- call `<target>`: Insert call to `<target>` on selection.
- call `<target 1>` on `<target 2>`: Insert call to `<target 1>` on `<target 2>`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Change

<ActionReference id="clearAndSetSelection" />
Cursorless ID: `clearAndSetSelection`

## Spoken form

Default: `change`\
Legacy: `clear`

## Syntax

- change `<target>`: Change `<target>` by clearing it and leaving the cursor in its place.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Copy to clipboard

<ActionReference id="copyToClipboard" />
Cursorless ID: `copyToClipboard`

## Spoken form

Default: `copy`

## Syntax

- copy `<target>`: Copy `<target>` to clipboard.
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/cutToClipboard.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Cut to clipboard

<ActionReference id="cutToClipboard" />
Cursorless ID: `cutToClipboard`

## Spoken form

Default: `carve`

## Syntax

- carve `<target>`: Cut `<target>` to clipboard.
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/decrement.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Decrement

<ActionReference id="decrement" />
Cursorless ID: `decrement`

## Spoken form

Default: `decrement`

## Syntax

- decrement `<target>`: Decrement number at `<target>`.
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/deselect.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Deselect

<ActionReference id="deselect" />
Cursorless ID: `deselect`

## Spoken form

Default: `give`

## Syntax

- give `<target>`: Deselect `<target>`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Edit new line/scope after

<ActionReference id="editNewLineAfter" />
Scope defaults to line.

Cursorless ID: `editNewLineAfter`

## Spoken form

Default: `pour`

## Syntax

- pour `<target>`: Edit new line after `<target>`.
- pour `<scope>` `<target>`: Edit new `<scope>` after `<target>`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Edit new line/scope before

<ActionReference id="editNewLineBefore" />
Scope defaults to line.

Cursorless ID: `editNewLineBefore`

## Spoken form

Default: `drink`

## Syntax

- drink `<target>`: Edit new line before `<target>`.
- drink `<scope>` `<target>`: Edit new `<scope>` before `<target>`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Extract variable

<ActionReference id="extractVariable" />
Cursorless ID: `extractVariable`

## Spoken form

Default: `extract`

## Syntax

- extract `<target>`: Extract variable from `<target>`.
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/findInDocument.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Find in document

<ActionReference id="findInDocument" />
Cursorless ID: `findInDocument`

## Spoken form

Default: `scout`

## Syntax

- scout `<target>`: Find `<target>` in document.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Find in workspace

<ActionReference id="findInWorkspace" />
Cursorless ID: `findInWorkspace`

## Spoken form

Default: `scout all`

## Syntax

- scout all `<target>`: Find `<target>` in workspace.
12 changes: 9 additions & 3 deletions packages/app-web-docs/src/docs/user/actions/flashTargets.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { ActionReference } from "@site/src/docs/components/ReferenceEntry";

# Flash target

<ActionReference id="flashTargets" />
Cursorless ID: `flashTargets`

## Spoken form

Default: `flash`

## Syntax

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