-
Notifications
You must be signed in to change notification settings - Fork 507
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 preview and command-line argument support for default chooser #947
Comments
This is a great idea. I think this should be added once we switch to skim (#939) as the default chooser. It'll be easier to add features to the choosing command if we know for sure what chooser we're invoking. This will require some tweaks to how the command works. Currently, the choose subcommand can only take recipes, to take arguments, it'll have to invoke the |
Looks like this was implemented in #1539? |
Nice, yup, this can be closed. |
Am I missing something? It stills explicitly filters out recipes with arguments, which I don't understand why it does in the first place, as they execute fine if you just type out the argument. (Which requires typing the whole recipe name as well, but at least it supports in finding the recipe) Line 201 in abec307
Also I cannot find the here proposed feature and am unsure how it relates to #1539. |
I think this issue was about adding a preview window, which it now does.
Don't they not work? If I have a recipe with a mandatory argument, after I hit return, won't it fail since the argument isn't provided? |
Add preview and command-line argument support for default chooser
I could have sworn it did work with an optional argument (as recipes with mandatory arguments aren't shown), but I cannot reproduce it now. |
It definitely does work with optional arguments. If it's filtering out recipes which can take zero arguments, that's definitely a bug. |
It is shown, but I cannot put the argument after and then successfully execute. Also note the run command in the example, which does have mandatory arguments and is still shown. |
I'm not sure that |
When
--chose
is invoked without specifying a chooser, it usesfzf
with recipe names present in the projectsjustfile
without a preview window for currently highlighted recipes. If a recipe is selected it invokesjust
with that recipe name without prompting the user to pass in any command-line arguments.Consider adding a preview window to display the recipes contents during the search in addition to being able to pass in command-line arguments to recipes that take them.
Here's a rough idea for how this may look like:
The text was updated successfully, but these errors were encountered: