Open
Description
Problem
"When I use git diff
, I need to get a specific commit hash, so I set the following configuration:
[shell_integration.channel_triggers]
"git-log" = ["git diff"]
however, I end up getting the complete git stat
output, while I only need the hash.
i am pretty new to television (great project BTW), i am not sure i missed something
I know I can achieve this through custom <shell_integration>
, but wouldn't it be better if there were an output_command
? If you think we can use something like that, I can make PR.
Feature
output_command for cable channel
Examples
[[cable_channel]]
name = "git-log"
source_command = "git log --oneline --date=short --pretty=\"format:%h %s %an %cd\" "
preview_command = "git show -p --stat --pretty=fuller --color=always {0}"
output_command = "awk '{print $1 }' "
Additional context
null