Skip to content

Configurable custom commands bound to keys #39

@seflue

Description

@seflue

lazyjira wires up a fixed set of external tools. It would be nice to let users bind their own shell commands to keys, with access to the focused issue.

customCommands:
  issues:
    - key: "y"
      name: "Copy issue key"
      command: "printf %s {{.Key}} | wl-copy"

Commands are Go templates over the focused issue. Custom bindings override built-in keys (same approach as lazygit) and show up in the help overlay.

I have this implemented and can open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedAccepted by maintainer. This issue is valid and won't be closed without reasonenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions