-
Notifications
You must be signed in to change notification settings - Fork 26
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
Switch to use transient.el #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your contribution! this is looking quite good already. i left a few comments; nothing major.
Thank you for review. Please let me know which of fixes to comments you'd like to see in before merging. |
i responded inline to most comments. happy to merge this after making a tiny adjustment. i will experiment with shortening some names later. i'll ping you for feedback once i have a pr for it, if you don't mind. i actually started a branch locally to switch to and then all of a sudden someone else did all the work. 👍😄 |
oh one more thing: defining python-pytest-arguments in init.el was a good way to set defaults before. is there a clear replacement for it? if so, it may be worth adding to the readme. |
oh yet another thing, maybe use i guess an alias for the obsolete name (defsubst iirc, typing from phone) would help with upgrades. but it's not required and i can do it later. |
`transient` is a replacement to `magit-popup` and even `magit` has already switched to use `transient`. The switch is pretty idiomatic, however there are a few differences. The default layout is slightly different but I didn't try to replace it as the new one seems to match what `magit` is presenting these days. The concept of `:default-action` seems to be gone, so it is not replaced. The `magit-with-pre-popup-buffer` doesn't seem to have an obvious replacement, however the documentation for `transient--original-buffer` suggest that the `transient` is not changing the current buffer.
Sure. Happy to help with it.
Let me see what I can do today.
Perhaps there's some programmatic way, but I'm not aware of it. What I know is |
nice, i see you did the rename to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update with the removal of fmakeunbound
/makeunbound
With transient, an `eval-buffer` is picking up new definition of `python-pytest-dispatch` (the popup).
merged, thanks a lot for doing all the hard/boring (choose yourself) work! |
Pleasure. It was really nice to work with you! |
Make the ‘-v’ option cycle between nothing, ‘--verbose’, and ‘--verbose --verbose’. This was suggested before (#22 (review)) but wasn't possible at the time of #22 because it seemed impossible due to magit-popup.el limitations. Now that the dispatch menu uses transient.el instead of magit-popup.el (#18, #26), it can be implemented after all
Make the ‘-v’ option cycle between nothing, ‘--verbose’, and ‘--verbose --verbose’. This was suggested before (#22 (review)) but wasn't possible at the time of #22 because it seemed impossible due to magit-popup.el limitations. Now that the dispatch menu uses transient.el instead of magit-popup.el (#18, #26), it can be implemented after all.
Make the ‘-v’ option cycle between nothing, ‘--verbose’, and ‘--verbose --verbose’. This was suggested before (#22 (review)) but wasn't possible at the time of #22 due to magit-popup.el limitations. Now that the dispatch menu uses transient.el instead of magit-popup.el (#18, #26), it can be implemented after all.
Make the ‘-v’ option cycle between nothing, ‘--verbose’, and ‘--verbose --verbose’. This was suggested before (#22 (review)) but wasn't possible at the time of #22 due to magit-popup.el limitations. Now that the dispatch menu uses transient.el instead of magit-popup.el (#18, #26), it can be implemented after all.
transient
is a replacement tomagit-popup
and evenmagit
has already switched to usetransient
.This fixes #18.
The switch is pretty idiomatic, however there are a few differences.
The default layout is slightly different but I didn't try to replace it as the new one seems to match what
magit
is presenting these days. I think that the new layout resembles more whatmagit
is presenting these days, but I don't have any scientific method for that. Happy to work on changing to original layout if this is desired.The concept of
:default-action
seems to be gone, so I did not replace it.The
magit-with-pre-popup-buffer
doesn't seem to have an obvious replacement, however the documentation fortransient--original-buffer
suggest that thetransient
popup is not changing the current buffer. I validated that with a check that thecurrent-buffer
returns expectedpytest
buffer while invokingpython-pytest
viapython-pytest-popup
.