-
Notifications
You must be signed in to change notification settings - Fork 15
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
Tidyups #37
Tidyups #37
Conversation
Thanks @purcell! I still haven't gone through it, but can you check why the CI is failing ? |
0cee9a8
to
1832c18
Compare
Yup, done, tests work locally for me now. |
894567a
to
fcc0b82
Compare
Thanks for the PR! This looks great.
Have you fixed the root problem ? If no, do you want to it as part of a new PR or use the same one ? (The only thing that's remaining from my end is that I need to do the testing of TRAMP integration manually) |
I'd be happy to submit a subsequent PR. If you're happy with this one, go ahead and merge. I have a couple more refactorings in mind, but might not get to them soon. And I've worked around the root problem for now by installing globally, though I still hope to resolve it in due course. |
206e918
to
8b12ec7
Compare
I fixed the root issue, and also switched things to use |
There's info in the json about the parameters too, so more code around |
4ab87d6
to
cd133a7
Compare
(Tests broken again with latest changes, will resolve and confirm when done.) |
I tested it more and I believe some more fixes are required:
|
Retaining the original order is not supported by the
Fixed now, but I'd note that the existing code probably isn't ideal anyway. Consider:
Here you can't really insert the default value such that the user can just hit return. What you'd probably really want would be to show the default in the prompt, e.g.
Fixed. |
Yeah, I know. That's why I suggested the
Unfortunately, my use case requires it. To give you an explicit example, I have this justfile which I use often use during testing: https://github.com/psibi/app_k8s/blob/master/justfile
Yeah, that's unfortunate. You have to do another call to
Yeah, agree. With your changes, I think implementing something like that would be easier in future since we can resolve variables using the json dump that we are getting.
Thank you! My elisp has become better as I have learnt good amount of things in this PR. |
almost there, just working around what appears to be an emacs bug |
Alrighty, that's done. 😅 |
@purcell Just tested and this looks great. I believe there is just one more change: When I try to execute a recipe which has an argument, it prompts like this:
Can it be instead like this:
The only difference is that in the second version there is single quote. Also, can you update the changelog too (Probably add a unreleased section) ? |
That's a pretty standard style for printing these things in Emacs, so I typed that backquote deliberately, but equally happy to change it. Probably be tomorrow. :D |
Done now |
Thank you! |
🤝 |
Hi Sibi, I was trying out
justl
but found it didn't work for me because I useenvrc.el
with per-project tooling and myjust
isn't normally installed globally. Ultimately I expect I'd need to useinheritenv
to make sure thejustl.el
commands pick up the right local environment. I started digging into the code and found myself tweaking a few things, but still haven't fixed the root problem. In the meantime, here are a bunch of little tweaks and improvements, in separate commits so you follow the reasoning. (I've tested this briefly by installingjust
globally.)