watchbind
watchbind copied to clipboard
A cli menu for periodically watching a program's output and executing commands on its lines through keybindings
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...
I think watchbind can do so many things new users might not even think about, and might slightly go under the radar because of that. Therefore, we should create a...
in ui/state/lines.rs: AoS vs SoA (keep formatted and unformatted versions of line in struct of array or array of struct?)
This would significantly reduce the number of options, making the help menu more easily readable. However, it would also require a man page to get all the information.
Once a child/command TUI (spawned with `exec tui -- `) terminates, watchbind temporarily (only for a split-second) returns to the user's terminal and only then paints the screen with watchbind's...
This requires a command/control bar to exist, which should be added for custom input (and later searching/filtering) anyways.
Use the [`typos`](https://github.com/crate-ci/typos) tool.
My design idea would be to add a possible subcommand: `read -- exec ...` So the user input would be read inside the TUI, saved into a env variable (maybe...
Should be quite simple to implement, since `crossterm` supports `FocusGained` and `FocusLost` events. Would probably not enable by default though.