Skip to content

Commit

Permalink
feat(issue): prompt for branch name in develop keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
benelan committed May 4, 2024
1 parent 5605c21 commit 1aca50f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gh-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,12 @@ $global_binds
gh issue view {1} --json 'url' -q '.url' $repo_flag | $GH_FZF_COPY_CMD
)+refresh-preview" \
--bind="enter:execute(gh issue edit {1} $repo_flag)+refresh-preview" \
--bind="alt-o:execute(gh issue develop --checkout {1} $repo_flag)+abort" \
--bind='alt-o:execute(
printf "Branch name for {1} (leave blank to use the default): ";
read -r branch;
[ -n "$branch" ] && branch_flag="--name $branch";
gh issue develop {1} --checkout "$branch_flag" '"$repo_flag"'
)+abort' \
--bind="alt-c:execute(gh issue comment {1} $repo_flag)+refresh-preview" \
--bind='alt-l:execute(
gh issue edit --add-label "$(gh fzf label '"$label_limit"')" {1} '"$repo_flag"'
Expand Down

0 comments on commit 1aca50f

Please sign in to comment.