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

Add support for executing operation upon receival of specific signal #65

Open
fritzrehde opened this issue Oct 30, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@fritzrehde
Copy link
Owner

This would make watchbind even more customizable.
One use-case I thought of: maybe the watched command should be reloaded everytime a file is changed/edited inside the current directory. Instead of building this functionality into watchbind (which would require a lot of duplicated effort from other projects), one could spawn a separate file-watcher and then notify watchbind using signals once something changes.

@fritzrehde fritzrehde added the enhancement New feature or request label Oct 30, 2023
@fritzrehde fritzrehde changed the title Add support for reloading upon receiving a certain signal Add support for executing operation upon receiving a certain signal Nov 28, 2023
@fritzrehde
Copy link
Owner Author

I think this shouldn't be restricted to just reloading the watched command on receival of a signal. Instead, we should generalize and allow executing any operation on receival of a signal. Reloading the watched command would then still be possible with a simple reload as the operation to be executed.

@fritzrehde fritzrehde changed the title Add support for executing operation upon receiving a certain signal Add support for executing operation upon receival of specific signal Nov 28, 2023
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

1 participant