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

Set an undo point before any virtual text completion #263

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

dimfeld
Copy link
Contributor

@dimfeld dimfeld commented Nov 18, 2024

This ensures that pressing undo after accepting a completion will only undo the completion, and not any other text that was typed before it.

Windsurf helped me make this change :)

@saranshsaini
Copy link
Contributor

Are you sure this works for other Leaders? What if someone has something other than as their leader (or is this generic).

@dimfeld
Copy link
Contributor Author

dimfeld commented Nov 19, 2024

Yeah this is unrelated to the leader, it's a fixed command. Was a bit hard to find the docs myself without knowing the key combination in advance, but it's under :help i_CTRL-G_u with some details also under :help undojoin which does the opposite.

@saranshsaini saranshsaini merged commit 27d2b1c into Exafunction:main Dec 2, 2024
2 checks passed
@dimfeld dimfeld deleted the undo-point branch December 2, 2024 19:00
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