Skip to content

Ctrl-Y copies entire line instead of just the branch name #38

@jackfranklin

Description

@jackfranklin

The current implementation of the Ctrl-Y keybinding in git-recent copies the full line from fzf to the clipboard. This includes worktree symbols (e.g., ) and Gerrit CL URLs if the --cl flag is used.

Ideally, Ctrl-Y should only copy the branch name.

Suggested fix:
Update the ctrl-y binding to extract the first field before passing it to the copy command.

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