8000 output_command for cable_channel · Issue #527 · alexpasmantier/television · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
output_command for cable_channel #527
Open
@PostCyberPunk

Description

@PostCyberPunk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestin flightBeing addressed as we speak

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0