Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design general abstraction for movements / semantic locations #44

Open
elkowar opened this issue Dec 22, 2022 · 0 comments
Open

Design general abstraction for movements / semantic locations #44

elkowar opened this issue Dec 22, 2022 · 0 comments
Labels
discussion Topics that needs design / architecture discussions topic-core Things related to the editor core

Comments

@elkowar
Copy link
Contributor

elkowar commented Dec 22, 2022

Both for actual cursor-movement, as well as for things like "double-click-on-word", adding a new cursor etc it is required to describe positions in the document on a semantic level, often relative to the current cursor position.
We should design an abstraction that can define things such as "Next start of a word", "next end of a word", "end of line", "next occurrence of /foo/", "previous occurrence of character )", which would then allow us to use it in movement commands as well as any other abstractions (motion-based edit commands such as vim-style diw, cw, dt), etc)

@elkowar elkowar converted this from a draft issue Dec 22, 2022
@elkowar elkowar added topic-core Things related to the editor core discussion Topics that needs design / architecture discussions labels Dec 22, 2022
@elkowar elkowar added this to the Basic editing features milestone Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Topics that needs design / architecture discussions topic-core Things related to the editor core
Projects
Status: Todo
Development

No branches or pull requests

1 participant