-
Notifications
You must be signed in to change notification settings - Fork 25
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
Multiple alignments with single keybinding #39
Comments
it is tough..it may not be possible to do it with one single regexp. |
👍 for this feature. What if instead of a single regex, it looped through a dictionary of regex's? It would loop through until a match was found and the user could define the order of precedence. |
this is interesting, perhaps, we can define something like the following in
If |
Just created a pull request #59 that allows you to declare user_input as a list and it will run through each regexp in the list. It still will take a string, so no previous functionality is lost. I didn't see this thread until @randy3k pointed it out a bit ago, so I didn't think of the "match_all" option. I'll try and add it in. |
@KroniK907 thanks for the input. |
Updated pull request #59 |
Hi @randy3k. Thanks so much for this plugin.
What I'd really like is to align whichever code block my cursor is in, using the same keybinding each time. So in a JS
var
statement:...would be transformed to:
... but when in a JSON object context, the same keybinding would transform:
to:
I've seen example patterns for both, but is there a way I can run them using the same keybinding, dependent on the context?
Thanks!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: