Skip to content

WIP: Implement mark functionality#9

Open
xelxebar wants to merge 1 commit intoarcfide:masterfrom
xelxebar:master
Open

WIP: Implement mark functionality#9
xelxebar wants to merge 1 commit intoarcfide:masterfrom
xelxebar:master

Conversation

@xelxebar
Copy link

@xelxebar xelxebar commented May 4, 2023

Marks are reified as underscore-prefixed variables due to their better affordances than direct strings, i.e. we can perform direct arithmetic on mark variables etc. Note, also, that updates to the document will auto-update variables as necessary. Moreover, marks are document-specific, so switching between documents with e will load and unload mark variables for you.

Note: Needs integration with undo.

The above behavior hasn't been sanity-checked against ed, however. Thoughts?

@xelxebar xelxebar force-pushed the master branch 4 times, most recently from 10c4c7e to 424425d Compare May 5, 2023 08:16
@xelxebar xelxebar changed the title Treat underscore-prefixed variables as marks WIP: Treat underscore-prefixed variables as marks May 5, 2023
@xelxebar xelxebar changed the title WIP: Treat underscore-prefixed variables as marks WIP: Implement k function May 5, 2023
@xelxebar xelxebar changed the title WIP: Implement k function WIP: Implement mark functionality May 5, 2023
Marks are reified as underscore-prefixed variables. Note that
marks are saved per-document, so switching between buffers with
`e` will replace mark variables with ones for new document.
@arcfide
Copy link
Owner

arcfide commented May 8, 2023

Note sure how I feel about this one. I'll have to do some thinking about the design. I agree that the marks situation needs to be improved, but I wonder what the best way to do this is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants