Open williammartin opened 7 months ago
@williammartin thanks for the feedback!
I've added this to our board for internal discussion and we'll keep this issue updated along the way.
@williammartin @colinshum https://github.com/DevAtDawn/gh-copilot-alias-support/tree/main made a work around for interactive target selection, it temp removes the -t flag when running ghcs
# fish
function ghcs_interactive_option
functions ghcs | sed "s/ \-t \"\$TARGET\"//" | source
end
# bash
eval "$(declare -f ghcs | sed 's/ -t "\$TARGET"//')"
#zsh
function ghcs_interactive_option {
functions ghcs | sed 's/ -t "\$TARGET"//' | source /dev/stdin
}
Describe the need
I used to run
gh copilot suggest
and would be presented with an interactive option to choose my target (gh/git/shell
). Now I use theghcs
alias and it defaults to theshell
target. This can be modified with-t
to set another but I don't want to provide this at invocation time, and would prefer to select interactively.Version
Relevant terminal output
CC: @Ali-thepro