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

[RFC] A way to configure the behaviour of custom commands #28

Open
arjunmahishi opened this issue Feb 18, 2024 · 0 comments
Open

[RFC] A way to configure the behaviour of custom commands #28

arjunmahishi opened this issue Feb 18, 2024 · 0 comments
Labels
feature help wanted Extra attention is needed

Comments

@arjunmahishi
Copy link
Owner

Currently, custom commands are pretty vanilla. It's a simple bash script that gets executed as it is. #27 extends it slightly by introducing a way to use the selected text.

But this can be so much more. If there was a way to configure/program the behavior of custom commands, it would become way more powerful than it already is. For example:

  • The STDOUT of the command's out can be written to the buffer
  • Custom commands need not be limited to bash/shell script. It should support any scripting language the user wants to use.
  • Long-running custom commands. First execution should start the process. If the process is still running, second execution onwards it should just resurface the output window that's tailing logs. (just thinking out loud :P)

This ability will make the custom commands more reusable, long-lived, etc. This plugin could potentially support importing/exporting custom commands. Kind of like Postman collections.

The configurability/programmability should be purely optional. This is important to make sure the baseline usage of this plugin is easy to adopt and use. Power usage of this plugin should not be enforced on all users.

@arjunmahishi arjunmahishi changed the title A way to configure the behaviour of custom commands [RFC] A way to configure the behaviour of custom commands Feb 18, 2024
@arjunmahishi arjunmahishi added the help wanted Extra attention is needed label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant