Flow-Launcher / Flow.Launcher

:mag: Quick file search & app launcher for Windows with community-made plugins
https://flowlauncher.com
MIT License
7.16k stars 295 forks source link

Custom shell's arguments in 'Shell' system plugin #2637

Open FloatStream opened 3 months ago

FloatStream commented 3 months ago

Is your feature request related to a problem? Please describe.

At present, Shell plugin can choose to use 'cmd', 'powershell', 'pwsh', or 'runcommand' (I am not sure what API this is). I would like to add an option that allows me to call cmd, powershell or pwsh with custom parameters and then run my command.

The main reason is that my pwsh configuration file sometimes takes about 1 second, and I use the flow plugin to quickly open a shell and run some commands, so I don't want to load the configuration file (pwsh/powershell can add the -nop option to not load the configuration).

Describe the solution you'd like

  1. Add an option such as CustomShell to allow users to add a line of commands to call the shell.
  2. Add a place to add custom parameters after the existing cmd, powershell, or pwsh options.

Here is a possible look image

Describe alternatives you've considered

Although not adding this feature does not affect normal use, sometimes the experience may be worse.

Addition

If a developer has implemented this feature, I would greatly appreciate it. I'm very sorry that I don't know how to write C#, so I can't implement it by myself.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been stale for 7 days with no activity. If you feel this issue still needs attention please feel free to reopen.

jjw24 commented 1 week ago

Maybe ability to save commands

FloatStream commented 1 week ago

I'm not quite sure what you mean

jjw24 commented 4 days ago

Hey, I meant while working on this issue maybe also consider adding the ability to save commands to a quick list for repeated use. That comment was more of a note to myself or whoever takes a look at this task, sorry for the confusion.