wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.32k stars 136 forks source link

[feature request] copy git stash ID on ctrl+y #287

Closed iloveitaly closed 1 year ago

iloveitaly commented 1 year ago

Check list

Environment info

Problem / Steps to reproduce

It would be great if you could cntrl+y to copy the git stash id when using gss

carlfriedrich commented 1 year ago

Hi @iloveitaly, thanks for your request.

FYI: You can actually configure this yourself using forgit's fzf options:

export FORGIT_STASH_FZF_OPTS="--bind=\"ctrl-y:execute-silent(echo {} | cut -d: -f1 | tr -d '[:space:]' | pbcopy)\""

However, I find this a useful addition as we have the same behavior for the SHA in glo, so I will file a PR for this.

carlfriedrich commented 1 year ago

@iloveitaly Can you verify if #295 works for you?

iloveitaly commented 1 year ago

@carlfriedrich Yes! This works for me! Thank you.