-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Toggle quotes (ts
)
#98
Comments
@voyeg3r Seeing as you were the one requesting the feature, perhaps you can give a bit more information/a more concrete description of what you would like to see out of this feature? |
I too would love to have this feature. |
I think you have captured the gist of the idea, hit a key combination to quickly change double quotes to single quotes and/or crasis |
@voyeg3r Do you think it would be a bad idea to "tie" this feature together with aliases? For example, you would be able to have On second consideration it's probably a bad idea to "mix" the two features together; it's probably better to add a new key toggle = {
q = { "'", '"', "`" },
} |
Just wanted to throw in that my intuitive guess at how this feature worked would have been that
Regardless, thanks for the work done on this awesome plugin! |
@pearofducks Thanks for the kind words :) As for Edit: |
Totally makes sense, just throwing that out there in case it made things easier instead of harder! :) |
Yeah, the basic idea is that |
I think having a separated table for toggling quotes is better |
Pushing this back a bit since I made a handful of breaking changes here and there for |
Are people still interested in this? Sorry for pushing it back so much 😭 |
Love this feature. But I think this feature is language specific since quotes may be escaped, and escape character may be different in languages. |
On behalf of #79, add a new keymap for toggling quotes, perhaps
ytq
for "you toggle quotes"tsq
for "toggle surrounding quotes. For example in the buffer:Hitting
tsq..
will toggle the double quotes"
→'
→`
→"
. The exact order can probably be determined via some config option in the setup table. Perhaps use aliases or a new section titledcycles
or something. While the aliases table could be used, it makes some sense to keep it separate, sodsb
could be preserved for deleting parentheses, while opening uptsb
for toggling the nearest bracket:)
,}
,]
,>
. Open to suggestions from the community on how they would like the interface to look!I could also just change it so aliases are used and
p
refers to any pair of those brackets, instead of "overloading" the use ofb
that much.The text was updated successfully, but these errors were encountered: