Skip to content

Shell Integration should pass the command line to the channel #337

@bcotton

Description

@bcotton

Feature
I would like to have the shell integration have access to the command line that was started when the channel is invoked with C-t

Examples
My use case is as follows:

For kubernetes you run `kubectl get [thing]', which lists all of the "things".

On the right-hand side I want to call kubectl get <thing> {0} ... where {0} is the name return from the first get, like this:

kubectl get pods | tv --preview 'kubectl get pods {0} -oyaml | bat -l yaml --color=always'

List of pods on the left, full yaml of pod on the right.

For a shell integration with a channel, the channel needs to know what the initial command line is, in this case kubectl get pods so it can pass the "things", pods in this case` to the preview command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions