File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,13 @@ Install `forgit` in just one click.
122
122
| <kbd >Alt</kbd > - <kbd >W</kbd > | Toggle preview wrap |
123
123
| <kbd >Ctrl</kbd > - <kbd >S</kbd > | Toggle sort |
124
124
| <kbd >Ctrl</kbd > - <kbd >R</kbd > | Toggle selection |
125
- | <kbd >Ctrl</kbd > - <kbd >Y</kbd > | Copy commit hash* |
125
+ | <kbd >Ctrl</kbd > - <kbd >Y</kbd > | Copy commit hash/stash ID * |
126
126
| <kbd >Ctrl</kbd > - <kbd >K</kbd > / <kbd >P</kbd > | Selection move up |
127
127
| <kbd >Ctrl</kbd > - <kbd >J</kbd > / <kbd >N</kbd > | Selection move down |
128
128
| <kbd >Alt</kbd > - <kbd >K</kbd > / <kbd >P</kbd > | Preview move up |
129
129
| <kbd >Alt</kbd > - <kbd >J</kbd > / <kbd >N</kbd > | Preview move down |
130
130
131
- \* Available when the selection contains a commit hash.
131
+ \* Available when the selection contains a commit hash or a stash ID .
132
132
For linux users ` FORGIT_COPY_CMD ` should be set to make copy work. Example: ` FORGIT_COPY_CMD='xclip -selection clipboard' ` .
133
133
134
134
### ⚙ Options
Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ _forgit_stash_show() {
217
217
opts="
218
218
$FORGIT_FZF_DEFAULT_OPTS
219
219
+s +m -0 --tiebreak=index --bind=\" enter:execute($cmd | $_forgit_enter_pager )\"
220
+ --bind=\" ctrl-y:execute-silent(echo {} | cut -d: -f1 | tr -d '[:space:]' | ${FORGIT_COPY_CMD:- pbcopy} )\"
220
221
--preview=\" $cmd \"
221
222
$FORGIT_STASH_FZF_OPTS
222
223
"
You can’t perform that action at this time.
0 commit comments