You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My design idea would be to add a possible subcommand: read -- exec <blocking|non-blocking> ...
So the user input would be read inside the TUI, saved into a env variable (maybe INPUT), which is then set in the subprocess where the exec command is set.
This would make watchbind a lot more reactive and customizable.
The text was updated successfully, but these errors were encountered:
Actually, it makes more sense to allow a TUI to have custom internal state. So the logical syntax for reading user input into a variable would be:
read-into NAME
and then $NAME will be set both in the watched command and all subcommands as a environment variable.
Additionally, we would allow users to specify state like so:
set-state NAME -- <cmd>
unset-state NAME
where the output of <cmd> gets saved in the state.
The only thing missing now is the ability to allow the user to set some state dynamically, i.e. by inputting some text into a text field. This is being worked on.
My design idea would be to add a possible subcommand:
read -- exec <blocking|non-blocking> ...
So the user input would be read inside the TUI, saved into a env variable (maybe
INPUT
), which is then set in the subprocess where the exec command is set.This would make watchbind a lot more reactive and customizable.
The text was updated successfully, but these errors were encountered: