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

Config option - Auto save yanks to registers, e.g 1-9 #5783

Closed
StratilJakub opened this issue Feb 2, 2023 · 3 comments
Closed

Config option - Auto save yanks to registers, e.g 1-9 #5783

StratilJakub opened this issue Feb 2, 2023 · 3 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@StratilJakub
Copy link

StratilJakub commented Feb 2, 2023

This feature / config option would enable saving yanks into registers e.g. 1-9 (history) in addition to default registers (", ...) and it would cycle through these registers.

Often when making changes I don't premeditate all the possible future edits I will do next and often I would need the register state just a couple of edits ago.

I understand this might be very subjective request and that there are external clipboard managers, but that's pretty much another "context switch" - another key-binds etc.

Thanks for your time.

@StratilJakub StratilJakub added the C-enhancement Category: Improvements label Feb 2, 2023
@askreet
Copy link
Contributor

askreet commented Feb 5, 2023

I'm interested in picking this up if there's some consensus around adding it. My instinct would be not to make it optional at first, seems generally useful, but that might be my vim bias showing. I'm also wondering if we'd want it shown in the register preview window or not.

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Feb 5, 2023
@StratilJakub
Copy link
Author

StratilJakub commented Feb 6, 2023

I considered it should be optional, because someone might have their usual workflow set-up in a way that they save to registers manually and then it would be bad experience, if those registers would be automatically replaced.

Also I would say it is quite important those registers are shown in the preview, because if it's auto save, then you will have to actively think of what saved under which register. But I would guess it is a default behaviour, if something is saved under register, then it is available in the preview.

I could also try creating PR eventually, but I am Rust beginner, so it would have higher chance to succeed from someone more experienced. :)

@pascalkuthe
Copy link
Member

Closing this in favor of #6900. The two feature request are basically the same thing with slightly different execution.

We will be using registers 1-9 for regex captures in the future so I open to keep the other issue open instead.

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

4 participants