-
Notifications
You must be signed in to change notification settings - Fork 4
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
if you don't specify a task, should you get a task browser ui? #57
Comments
description field could be nice for could be cool to have a "preview" window (a la fzf file search) that pops up the whole highlighted task |
good point I'm gonna split out Description into its own issue, since that seems like a quick unambiguous win whether or not there's an fzf thing |
I think a task browser of some sort could be valuable. This is a somewhat common anti-workflow I get into
A useful thing for me in this situation would a way to "preview" or "quick look" task definitions from the terminal. Some ideas that came to mind: (things that involve changing run)
(things that rely on outside tools, end user configuration)
Curious if you've thought about this recently. Or if there's other tools or things y'all use with run that might make something like this easy / easier 😂 |
I can definitely relate to that anti-workflow: that's me every time I come back to a project. re: ideas,
As a bonus, if we had an interactive browser, it would take some pressure off of -list to be human-readable, and we could implement a nice parseable -list without giving up usability. Off the dome, here are some thoughts about what a good version of that might look like:
|
here's a little wrapper that implements a browser with fzf if you just do i have this in my if which run &> /dev/null && which fzf &> /dev/null; then
run() {
if [[ $# -eq 0 ]]; then
local TASK="$(command run -list \
| grep '^ [^ ]' \
| tr -d ' ' \
| fzf -0 --ansi)"
command run "$TASK"
else
command run "$@"
fi
}
fi |
Related: once we have a UI for browsing tasks and inspecting their dependencies and configuration, we could also offer it in regular task-running mode. "hit |
if so, what should the task browser look like? should it list the commands and stuff or just task names? if commands, what happens for non script-task implementations of Task? should Task have a Description()string method?
also, what happens if not-a-tty? it feels wrong for tty-ness to change the behavior a lot
The text was updated successfully, but these errors were encountered: