Skip to content

Commit

Permalink
refactor(ui): use the singular form of command names
Browse files Browse the repository at this point in the history
  • Loading branch information
benelan committed Jul 14, 2024
1 parent 66bbf1e commit 9aae9ad
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $global_binds
FZF_DEFAULT_COMMAND="GH_FORCE_TTY=$GH_COLUMNS gh issue list $issue_template -L $GH_FZF_DEFAULT_LIMIT $*" \
fzf \
--preview='GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh issue view {1} --comments '"$REPO_FLAG" \
--prompt="issues" \
--prompt="issue" \
--header="$issue_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
--bind="ctrl-o:execute-silent(gh issue view --web {1} $REPO_FLAG &)+refresh-preview" \
Expand Down Expand Up @@ -297,7 +297,7 @@ $global_binds
FZF_DEFAULT_COMMAND="GH_FORCE_TTY=$GH_COLUMNS gh pr list $pr_template -L $GH_FZF_DEFAULT_LIMIT $*" \
fzf \
--preview='GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh pr view {1} --comments '"$REPO_FLAG" \
--prompt="prs" \
--prompt="pr" \
--header="$pr_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
--bind="ctrl-o:execute-silent(gh pr view --web {1} $REPO_FLAG &)+refresh-preview" \
Expand Down Expand Up @@ -390,7 +390,7 @@ $global_binds
FZF_DEFAULT_COMMAND="GH_FORCE_TTY=$GH_COLUMNS gh run list $run_template -L $GH_FZF_DEFAULT_LIMIT $*" \
fzf \
--preview='GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh run view {-1} '"$REPO_FLAG" \
--prompt="runs" \
--prompt="run" \
--header="$run_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
--bind="ctrl-o:execute-silent(gh run view --web {-1} $REPO_FLAG &)+refresh-preview" \
Expand Down Expand Up @@ -439,7 +439,7 @@ $global_binds
# FZF COMMAND {{{2
FZF_DEFAULT_COMMAND="GH_FORCE_TTY=$GH_COLUMNS gh workflow list -L $GH_FZF_DEFAULT_LIMIT $*" \
fzf \
--prompt="workflows" \
--prompt="workflow" \
--preview='GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh workflow view --yaml {-1} '"$REPO_FLAG" \
--header="$workflow_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
Expand Down Expand Up @@ -504,7 +504,7 @@ $global_binds
FZF_DEFAULT_COMMAND="GH_FORCE_TTY=$GH_COLUMNS gh release list $release_template -L $GH_FZF_DEFAULT_LIMIT $*" \
fzf \
--preview='GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh release view {1} '"$REPO_FLAG" \
--prompt="releases" \
--prompt="release" \
--header="$release_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
--bind="ctrl-o:execute-silent(gh release view --web {1} $REPO_FLAG &)+refresh-preview" \
Expand Down Expand Up @@ -533,7 +533,7 @@ $global_binds
fzf \
--multi \
--no-preview \
--prompt="labels" \
--prompt="label" \
--header-lines=4 \
--header="$label_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
Expand Down Expand Up @@ -611,7 +611,7 @@ Globals > (ctrl-o: open url) (ctrl-y: copy url) (ctrl-r: reload)
'/repos/{owner}/{repo}/milestones'" \
fzf \
--no-preview \
--prompt="milestones" \
--prompt="milestone" \
--header="$milestone_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
--bind="enter:become(echo {1})" \
Expand Down Expand Up @@ -714,7 +714,7 @@ $global_binds
FZF_DEFAULT_COMMAND="GH_FORCE_TTY=$GH_COLUMNS gh repo list -L $GH_FZF_DEFAULT_LIMIT $*" \
fzf \
--preview='GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh repo view {1}' \
--prompt="repos" \
--prompt="repo" \
--header="$repo_header" \
--header-lines=4 \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
Expand Down Expand Up @@ -749,7 +749,7 @@ Filters > (alt-p: public) (alt-s: secret)
FZF_DEFAULT_COMMAND="GH_FORCE_TTY=$GH_COLUMNS gh gist list -L $GH_FZF_DEFAULT_LIMIT $*" \
fzf \
--preview='GH_FORCE_TTY=$FZF_PREVIEW_COLUMNS gh gist view {1}' \
--prompt="gists" \
--prompt="gist" \
--header="$gist_header" \
--bind="start:${GH_FZF_HIDE_HINTS:+"toggle-header"}" \
--bind='ctrl-o:execute-silent(gh gist view --web {1} &)+refresh-preview' \
Expand Down

0 comments on commit 9aae9ad

Please sign in to comment.