Skip to content
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

Accept arguments #12

Closed
tborychowski opened this issue Oct 30, 2020 · 8 comments
Closed

Accept arguments #12

tborychowski opened this issue Oct 30, 2020 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@tborychowski
Copy link
Contributor

Thanks for this amazing app!
It's the best thing that happened to my mac since Alfred (10 years ago)!

It would be fantastic if a script could accept arguments, e.g.:

  • I'd like to search npmjs.com for a module
  • I'd like to create a script called npm that I run like so: npm lodash - which opens url: https://www.npmjs.com/search?q=lodash

Current problems:

  • typing script title and something else - just shows File, google & duckduckgo searches.

Alternatively - you could allow custom searchers (so e.g. npm, stackoverflow, github could be added), but the former would give users more power :-)

@thomaspaulmann
Copy link
Member

We're gonna look into this. Thanks for the suggestion.

@u12206050
Copy link

Would love to be able to execute Laravel Artisan commands. Am able to add the artisan command as a cast but since it doesn't accept arguments it isn't really worth much.

An issue I do wonder about is long running commands eg. npm run dev if I were to create a compact cast for this command how would I go about stopping it?

@krawitzzZ
Copy link

+1 here! would really like to have this feature. in my eyes it looks like this:

  1. you press tab while your custom script is selected (like it is with clipboard history)
  2. you see the prompt where you could type something
  3. you press return and script gets executed with whatever was provided as an argument
    :)

@Lanttcat
Copy link

+1, I have save problem. I hope my custom script can accept arguments too.

@PitNikola
Copy link
Member

PitNikola commented Nov 11, 2020

Quick update on this one: the implementation of this feature is in progress.

@thomaspaulmann thomaspaulmann added the enhancement New feature or request label Nov 16, 2020
@PitNikola
Copy link
Member

Support for arguments is now added in v1.2.0, see Passing Arguments section for more details.

We also added a separate folder for web searches. @tborychowski, feel free to create PR for npm search 😉

@tborychowski
Copy link
Contributor Author

Thanks @PitNikola!
That works great and opens up a world of customizations! :-)
Here's the PR for npm: #89

@danielo515
Copy link

Do arguments work for bash scripts? I am using a very basic config,and I am not getting any argument in the prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants