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

Allow C-r to insert register contents in prompts and pickers #1512

Closed
EpocSquadron opened this issue Jan 14, 2022 · 0 comments · Fixed by #2458
Closed

Allow C-r to insert register contents in prompts and pickers #1512

EpocSquadron opened this issue Jan 14, 2022 · 0 comments · Fixed by #2458
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@EpocSquadron
Copy link
Contributor

We currently have the ability to insert the contents of any register in insert mode in the buffer. However, it is often useful to do so in search prompts, or the command prompt, and even in pickers.

One example is using * to add the current selection to the / register, then invoking a global search. When the global search prompt pops up, you would uae Ctrl-r/ to fill the prompt with the search buffer, then enter. Otherwise you need to type out the whole search term even though you know you had it selected already, or else resort to using system clipboard to get around it.

Another example might be copying a namespace that's close to a file path but not quite (so gf isn't enough), then placing it in the picker prompt to allow fuzzy matching to pull up the correct path.

@EpocSquadron EpocSquadron added the C-enhancement Category: Improvements label Jan 14, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Jan 14, 2022
J-Fields added a commit to J-Fields/helix that referenced this issue Apr 2, 2022
J-Fields added a commit to J-Fields/helix that referenced this issue Apr 4, 2022
@the-mikedavis the-mikedavis linked a pull request May 11, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants