-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ability to move conditions around && and || #23
Comments
I've created a branch that supports this particular case, only for java: if-clause-support. A general solution might be possible, but it would also be tricky. For ruby in particular, I discuss the idea here: #13. A few issues:
If you give me more examples of "I'd like this to work like this", I could either tell you "this won't work for these and these reasons", or try to implement it within the framework of the plugin. That way, we could refine a useful functionality and eventually merge it to master, or give it up as unfeasible and/or come up with different solutions. For now, the branch is there, maybe try it out and see what you're missing. |
Ah, sorry, I didn't see that there already was an issue for that. I guess this one could be closed as duplicate. I'm not sure I can give more examples. The ones that you came up with are enough. I don't know how the plugin works exactly, but can't you expose a "logic_operators" setting per language ( Anyway, thanks for the branch. I guess it is useful enough (you could extend it also for C/C++/JavaScript as they have the same syntax) to be merged in master. |
Now I just noticed that I cannot live with argument text objects and tried to do the same for the conditions in an if-clause. So a "condition text object" could be a nice addition to any language. |
For example in Java:
I would like to change
a && b
tob && a
orb && c != null
toc != null && b
with Sideways.The text was updated successfully, but these errors were encountered: