Skip to content

Commit

Permalink
feat(workflow): add ctrl-y keybinding to copy file url
Browse files Browse the repository at this point in the history
  • Loading branch information
benelan committed Jul 14, 2024
1 parent 0a57814 commit 2f478f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export FZF_DEFAULT_OPTS='
--bind="alt-7:reload(eval \"$FZF_DEFAULT_COMMAND -L700\")"
--bind="alt-8:reload(eval \"$FZF_DEFAULT_COMMAND -L800\")"
--bind="alt-9:reload(eval \"$FZF_DEFAULT_COMMAND -L900\")"
'"$FZF_DEFAULT_OPTS"' --no-select-1 --ansi --no-multi --delimiter=" "'
'"$FZF_DEFAULT_OPTS"' --no-select-1 --ansi --no-multi --delimiter="\\s\\s+"'
# Overriding the three options above breaks gh-fzf, so append them instead.

# ----------------------------------------------------------------------1}}}
Expand Down Expand Up @@ -468,6 +468,7 @@ $global_binds
--header="$workflow_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
--bind="ctrl-o:execute-silent(gh workflow view --web {-1} $REPO_FLAG &)+refresh-preview" \
--bind="ctrl-y:execute-silent(gh browse --no-browser {-2} | $GH_FZF_COPY_CMD)+refresh-preview" \
--bind="enter:execute(gh fzf run --workflow {-1} $REPO_FLAG)+refresh-preview" \
--bind="alt-d:execute(gh workflow run {-1} $REPO_FLAG)+refresh-preview" \
--bind="alt-E:execute(gh workflow enable {-1} $REPO_FLAG)+refresh-preview" \
Expand Down

0 comments on commit 2f478f2

Please sign in to comment.