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 default_text
to visual selection on Nightly
#2988
Comments
From the linked PR:
This reminds me, we don't really support multi-line greps well. Pasting multi-line text into the prompt buffer is not really functional due to the nature of I think these factors, particularly the last one of escaping regex characters, makes inserting anything longer than Eg. If someone visually selects |
Yeah, there are a lot of wacky cases to consider. I guess that's why it is better left to the user. In other words, best approach is adding something like the above (plus considerations) somewhere clearly to the docs. (Once the user is generally aware of limitations etc. it is however typically a very nice improvement over and friends) |
Thanks to Shougo and zeertzjq we now have a proper function to get visual text in Neovim (nightly, for now).
and as used official in Neovim nightly here https://github.com/neovim/neovim/pull/27663/files
Is this something we would want
default_text
to, well, default to if the user launches a picker from visual mode anddefault_text
is unset?Pros:
live_grep
variant several times a dayCons:
""
or something of sorts.Putting this up for discussion. Happy to get thoughts and make a PR if desirable at least in some contexts :) (like adding it also to
live_grep
). Otherwise, we can also close this FR.The text was updated successfully, but these errors were encountered: