Skip to content

Feature: Add keybinding to copy commit hash to clipboard #18

@dinakars777

Description

@dinakars777

Right now if you want to use the hash (e.g. to run git branch <name> <hash>), you have to highlight it with your mouse, which defeats the purpose of the TUI.

It would be great to bind c or y to automatically copy the currently selected entry's 7-character hash to the system clipboard.

Implementation thoughts:

  • Check out a crate like arboard or copypasta.
  • Would be nice to show a temporary [Copied!] text in the footer so the user knows it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions