-
Notifications
You must be signed in to change notification settings - Fork 15
Add unwind refactoring commands #88
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
Add unwind refactoring commands #88
Conversation
0759b39
to
2db43a4
Compare
Apart from my small inline remarks I can suggest also:
Overall, the PR looks good to me, though. |
Could you please suggest a command name for that?
Sure. I'm planning to port refactoring commands from
Thanks! I'll fix all the issues. |
2db43a4
to
f6ef592
Compare
Perhaps something like |
I figured something like this was the case. :-) |
After giving it some thoughts, I think it would be better to implement in a separate PR. Ideally this would require defining a new minor mode |
f6ef592
to
97bde83
Compare
No, that's more or less what I normally do in such situations. It's fairly simple and standard - you can use |
The new commands work the same as in
clojure-mode
with one improvement (hopefully):In
clojure-mode
unwinding form(-> foo bar)
would produce(-> (bar foo))
, so you need to run unwind command one more time to get rid of threading macro. Inclojure-ts-mode
it will produce(bar foo)
immediately. Because of that I had to adapt tests fromclojure-mode
a little bit.Before submitting a PR mark the checkboxes for the items you've done (if you
think a checkbox does not apply, then leave it unchecked):
M-x checkdoc
and fixed any warnings in the code you've written.Thanks!