AnWeber / vscode-statusbar-command

MIT License
16 stars 4 forks source link

[Feature Request] Run external command directly #17

Closed lonix1 closed 2 years ago

lonix1 commented 2 years ago

It would be nice to be able to run an external command, like so:

Linux:

"command": "gnome-terminal --working-directory=$(pwd)/src/Foo/ --quiet --command 'ls -lah'",

Windows:

"command": "cmd ...etc.",

That opens the command directly, without going through the built-in terminal, or a companion extension.

As you can see in this extension, it's possible - but that extension is abandonware.

Would be nice to have that functionality in this extension. Thanks!

AnWeber commented 2 years ago

It is possible to implement the extension. But you could simply use an already existing extension. For example, executing a command in the terminal is easily possible using terminal-command-keys.

Do you like the idea?

lonix1 commented 2 years ago

Lol you are advertising your competitors' extensions, that's really nice of you!

It uses the built-in terminal. I'm referring to running a shell command external to vscode so it doesn't interfere with internal terminals. That extension i linked to does that - but it hasn't been updated in years, and it's nowhere near as polished as your extension!

Shall I close as "out of scope"? If enough people want it in the future, maybe we can rediscuss :)

AnWeber commented 2 years ago

It is not competition. For me, it's open source. I want to do one thing and do it right. The other thing others can do better. Your wish is best fulfilled by the extension shell. Only the extension author did not merge the necessary pull request. You would just have to take the code, update the dependencies and publish it (but please mention the origin, do not make the error like nanocolors). It is really simple, keep sharing. If you need help, give me a ping.

lonix1 commented 2 years ago

You are a gent, thanks!

AnWeber commented 2 years ago

you are welcome:-)

AnWeber commented 2 years ago

It is also implementable with standard VS code functions.