Skip to content

Commit

Permalink
add Hotkeys and more
Browse files Browse the repository at this point in the history
* Hotkeys
* Markdown formatting for the story

Since we now have `egui_commonmark` as a dependency the next step might be to add a help function to show the same markdown linked from the README.

* Simpler selection

No more "select" button. Clicking the text entry will do the same job except during generation.
  • Loading branch information
mdegans committed Jun 5, 2024
1 parent 1ecdf30 commit ecb1ab2
Show file tree
Hide file tree
Showing 7 changed files with 396 additions and 173 deletions.
51 changes: 51 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ panic = "abort"
strip = true

[dependencies]
egui_commonmark = { version = "0.16", features = ["macros"] }
serde = { version = "1.0", features = ["derive"] }
egui = { version = "0.27", features = ["persistence"], optional = true }
eframe = { version = "0.27", features = [
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Additionally, one goal of `weave` is feature parity with [`loom`](https://github
- πŸ”² Change tree topology
- βœ… Edit nodes in place
- πŸ”² Navigation
- πŸ”² Hotkeys
- βœ… Hotkeys
- πŸ”² Bookmarks
- πŸ”² Chapters
- πŸ”² 'Visited' state
Expand Down
11 changes: 11 additions & 0 deletions resources/SHORTCUTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Keyboard shortcuts:

- `ESC` to start a new story or to access settings.
- `F1` to toggle a view of the story as text or tree.
- `Command/Ctrl + S` Save story to JSON.
- `Command/Ctrl + O` Load story from JSON.
- `Command/Ctrl + N` New paragraph with the default author.
- `Command/Ctrl + DELETE` Delete the selected paragraph _and all children_.
- `Command/Ctrl + Shift + S` Export story to markdown/txt.
- `Command/Ctrl + Shift + N` New Untitled story.
- `Command/Ctrl + Shift + DELETE` Delete active story.
Loading

0 comments on commit ecb1ab2

Please sign in to comment.