nix-community / comma

Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
1.01k stars 47 forks source link

[feature request] disable picker by using exact match #59

Open andrewcrook opened 11 months ago

andrewcrook commented 11 months ago

Would be good to have an option to disable the picker to use an exact match instead

Artturin commented 11 months ago

So , --exact hello should not open the picker but instead pick hello.out ?

andrewcrook commented 11 months ago

So , --exact hello should not open the picker but instead pick hello.out ?

yes you got it

zeorin commented 10 months ago

Might be useful to cache previous choices by default (with an option to ignore that history if desired). Just print to the console that previous choice was used from amongst the available options. Also ignore previous choice when choice set has new options compared to when the stored choice was made.

eth3lbert commented 7 months ago

I've also get around this by utilizing the fzf picker which provide query and auto select the only match functionality. e.g. cargo run -- --picker fzf --picker-args --select-1 --query 311 -- pipdeptree --python /some/path/.venv/bin/python

It's simple to implement and works quite well but the downside is that not all picker have such option to auto select, and I do think provide a option to further filter (either exact or regex) would be a better approach.

diniamo commented 1 month ago

At that point, why not just use nix run?