Skip to content

Commit

Permalink
docs test
Browse files Browse the repository at this point in the history
  • Loading branch information
mscolnick committed May 21, 2024
1 parent 06f6bb6 commit fda485f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions docs/guides/editor_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ marimo ships with the following IDE-like panels that help provide an overview
of your notebook:

1. **errors**: view errors in each cell;
2. **variables**: explore variable values, see where they are defined and used;
3. **dependency graph**: view dependencies between cells;
2. **variables**: explore variable values, see where they are defined and used, with go-to-definition;
3. **dependency graph**: view dependencies between cells, drill-down on nodes and edges;
4. **table of contents**: corresponding to your markdown;
5. **logs**: a continuous stream of stdout and stderr.
6. **snippets** - searchable snippets to copy directly into your notebook
7. **documentation** - move your text cursor over a symbol to see its documentation

<div align="center">
<figure>
Expand All @@ -55,6 +57,12 @@ through the cell context menu.</figcaption>
</figure>
</div>

## Go-to-definition

- Click on a variable in the editor to see where it's defined and used
- `Cmd/Ctrl-Click` on a variable to jump to its definition
- Right-click on a variable to see a context menu with options to jump to its definition

## Keyboard shortcuts

We've kept some well-known keyboard shortcuts for notebooks (`Ctrl-Enter`,
Expand Down Expand Up @@ -127,6 +135,7 @@ A non-exhausted list of settings:
- Formatting rules
- GitHub Copilot
- Autoreloading/Hot-reloading
- Outputs above or below code cells

## Send feedback

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe("goToVariableDefinition", () => {

expect(result).toBe(true);
await new Promise((resolve) => requestAnimationFrame(resolve));
expect(view.state.selection.main.from).toBe(12);
expect(view.state.selection.main.to).toBe(17);
expect(view.state.selection.main.from).toBe(9);
expect(view.state.selection.main.to).toBe(9);
});

test("does not select the variable when it does not exist", () => {
Expand Down

0 comments on commit fda485f

Please sign in to comment.