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

Feature request: Toggle quotes #1665

Open
Akronix opened this issue Oct 28, 2017 · 1 comment
Open

Feature request: Toggle quotes #1665

Akronix opened this issue Oct 28, 2017 · 1 comment

Comments

@Akronix
Copy link
Contributor

Akronix commented Oct 28, 2017

Interesting enough there is a "toggle case of selection" feature, but there isn't a "toggle quotes of selection". I'd find it very useful in languages as Perl, Bash, Python and Javascript where you can write strings using ' or " characters, but they have some semantic differences or you want to have a consistent way of quoting strings along all your source code.

The feature would very simple, select some text, find first quote symbol, replace it by the opposite, look for the corresponding quote and replace it alike.

This feature is available in Atom text editor through an external package: https://github.com/atom/toggle-quotes, however, I thought that in Geany it could be included in core as other toggle features are in: "toggle case of selection" or "toggle line commentation".

@elextr
Copy link
Member

elextr commented Oct 28, 2017

There is nothing I can think of that would stop it being in a plugin, and since its language specific (think of not swapping escaped quotes and such) thats the best place for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants