Skip to content

Commit

Permalink
[parley] new selection logic and an editor example (#106)
Browse files Browse the repository at this point in the history
Adds a new `Selection` type for dealing with cursor movement and
selection.

Also includes a `vello_editor` example that serves as a testbed for
checking the logic. This supports mouse selections, arrow keys (+ shift
to extend selections), backspace, delete and basic text input.

Marked as draft because the code is a mess but making this public so
people can play with it and report bugs.
  • Loading branch information
dfrg authored Aug 22, 2024
1 parent 4870ff8 commit 14070d5
Show file tree
Hide file tree
Showing 13 changed files with 4,854 additions and 472 deletions.
10 changes: 10 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
# word is treated as always correct. If the value is an empty string, the word
# is treated as always incorrect.

[default]
extend-ignore-re = [
# Matches lorem ipsum text.
# In general, regexes are only matched until the end of a line by typos,
# and the repeated matcher at the end of both of these also ensures that
# matching ends at quotes or symbols commonly used to terminate comments.
"Lorem ipsum [a-zA-Z .,]*",
"Phasellus in viverra dolor [a-zA-Z .,]*",
]

# Match Identifier - Case Sensitive
[default.extend-identifiers]
Beng = "Beng"
Expand Down
Loading

0 comments on commit 14070d5

Please sign in to comment.