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
I've been using bacon for quite a while and it's very useful. The way I seem to use it most often is:
Edit things
Switch to terminal where bacon is running, check if any things need fixing
[repeat]
Once all is good, quit bacon, hit "up twice" to recall some kind of cargo run ... command and run that
Once done, relaunch bacon (up+up+return) and repeat the whole process
For this, it would be nice if there was a way to configure a key I could press in bacon which would execute an arbitrary command. So instead I could:
Edit
Switch to bacon
Press "r" - this would run, say, cargo run -- --customthing=1
Basically I can configure a keyboard key and the command it will invoke.
Such a feature would probably need some careful thought as to constrain the scope of what can and cannot be done (to avoid it being a few "what if it could also.." steps away from becoming a full terminal multiplexer!) - as such, at least for the above I imagine it would be limited as follows:
When invoking the command, everything else is stopped - the main checking command is no longer run, no further shortcuts are accepted, etc (to prevent having to mix multiple outputs somehow)
The output from the custom command is presented as-is in the scrollable output window - no parsing, just appending each line to output (if it could entirely stop the TUI interface, run the command in plain terminal, and restore, then even better)
Once the command exits, there is maybe some "press enter to return" prompt (so the terminal output remains visible in event of crash)
After that, the output is cleared and the normal checking is resumed
Aside from my use-case above, this might be a nice solution to #47 - you could bind, say, d to run cargo doc --open then when you run bacon doc you can press d at any time to (re)open the docs in browser
Hope that makes sense! Feel free to close this if it seems outside the scope of what you thing bacon should do!
The text was updated successfully, but these errors were encountered:
The work has began. The shortcuts branch lets you define key shortcuts to internals (scrolling, quitting, etc.) and to jobs.
The new default bacon.toml file does include the d key to open the cargo doc.
I still need a few days before I have everything ready for release (I'll probably make a site to render everything clear, and an help page in the app to show all shortcuts).
I've been using
bacon
for quite a while and it's very useful. The way I seem to use it most often is:cargo run ...
command and run thatFor this, it would be nice if there was a way to configure a key I could press in bacon which would execute an arbitrary command. So instead I could:
cargo run -- --customthing=1
Basically I can configure a keyboard key and the command it will invoke.
Such a feature would probably need some careful thought as to constrain the scope of what can and cannot be done (to avoid it being a few "what if it could also.." steps away from becoming a full terminal multiplexer!) - as such, at least for the above I imagine it would be limited as follows:
Aside from my use-case above, this might be a nice solution to #47 - you could bind, say,
d
to runcargo doc --open
then when you runbacon doc
you can pressd
at any time to (re)open the docs in browserHope that makes sense! Feel free to close this if it seems outside the scope of what you thing
bacon
should do!The text was updated successfully, but these errors were encountered: