oliverschwendener / ueli

Cross-Platform Keystroke Launcher
https://ueli.app
MIT License
3.67k stars 243 forks source link

[Feature Request] Pass Arguments to Program #893

Open HeyItsJono opened 2 years ago

HeyItsJono commented 2 years ago

I'm coming from Launchy and just was wondering if there's a way to pass arguments to a program/shortcut. Launchy allowed you to search for something, then hit tab, and a little arrow would appear and anything you typed after it would be redirected as an input argument to the program.

For example: image

I could type Find, press tab, input a search query, and press Enter, and it would open an Everything search window with that query.

Is there any way to do that with ueli?

carlitorendon commented 2 years ago

Hello @HeyItsJono, long time user of Ueli, really like it. I can resonate that this is area where features can be added. So far (to my knowledge, please everybody feel free to add), there are a few ways to deal with this:

1) Use a command line tool whereas you have a program on your filesystem that receives your arguments and does whatever you want. So you would summon it with something like > myScript.ps arg1 arg2 ...

This will launch a new terminal window run the script and pass the arguments. Here are the things that can be improved:

2) For websites / REST calls (GET) you can create a search engine in Ueli and define a {{query}} variable and pass your arguments there. This of course is not what you asked BUT the reason I bring it up is because it offers the kind of "clean" experience you're referring. Just issue a call with <receiving-program> arg1 arg2 and then the thing just handing it to the intended receiving program (in this case the browser is the only option)