-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
$
in fast wrap to always insert end pair at the end? (and a more flexible hint system idea)
#408
Comments
I agree on some case you don't need to typing 2 key . PR is welcome 🤟 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It's still in my radar 🙏 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
no? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I don't use neovim as often (work + other priorities), but this is still definitely important.. |
it is something I mentioned in #398, but was not covered by any discussion, re-posting here to trigger potential discussion
Is your feature request related to a problem? Please describe.
When I use fast wrap feature, using the end-of-line
$
hint can have 2 different behavior based on the last char of the line:Describe the solution you'd like
I like my tools to be easily deterministic, without too much guessing and differing behavior.
👉 I want that when I wrap to the end of line with $ hint, it always put the end pair at the very end, without asking to put it before/after the last char.
To that end, I think the
$
hint should be after the last char to show it'll always put end pair at the very end.If the line ends with a char matching the pattern there would be another hint for it, that allows to put the end pair before/after.
Even more flexibility could be offered by a function that returns hint data, and if the matching hint has multiple positions, show the 2nd layer of hint positioning, or just insert it directly otherwise.
Describe alternatives you've considered
Always second guessing myself and checking the last char, remembering the pattern and double checking what to do.
The text was updated successfully, but these errors were encountered: