Skip to content

[FR] Mark a commit for later command #1395

@carbon-steel

Description

@carbon-steel

Tig is currently great at constructing commands with one branch/blob/commit/etc but I do not believe it currently supports constructing commands with two branches/blobs/commits/etc. I'd love to be able to highlight/mark/select branches/blobs/commits/etc for use in a later command for example...

bind refs x select
bind refs X clear-select

If you press x on a branch-A, it will highlight that branch. Then, when you move to branch-B and use the following binding...

bind refs r !git rebase %(selected) %(branch)

It will run the command git rebase branch-A branch-B.

This kind of functionality would be great for constructing git diff commands, squashing a range of commits, selecting a commit to cherry-pick, etc. The example I provided is a simple concept but this functionality could be expanded to support multiple selections as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions