Skip to content

[FR] A binding that prompts user to select from multiple options #1393

@carbon-steel

Description

@carbon-steel

I think it'd be very handy to have a binding that prompts the user to select an option for example, something like:

bind status R !git rebase %(select: --continue|--abort|--edit-todo)

When you use this binding, tig would prompt the user (in some form) to select one of the three options before running the command. Perhaps each option could be selectable by a key ('c' for --continue, 'a' for --abort, etc).

Another option would be to allow multi-key bindings like:

bind status Rc !?git rebase --continue
bind status Re !?git rebase --edit-todo
bind status Ra !?git rebase --abort

But I prefer the first approach since it requires less memorization on the user's part.

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