Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lucianmachado/e5bc0928da572f898067814c305489c7 to your computer and use it in GitHub Desktop.
Save lucianmachado/e5bc0928da572f898067814c305489c7 to your computer and use it in GitHub Desktop.
this fish function open one or multiple projects in vscode (using ghq to list projects)
function _fzf_open_project_in_code
fzf -m | xargs -I {} code {}
end
function fzf_open_project_in_code
begin
ghq list -p
echo $HOME/.config/fish
echo $HOME/.config/nvim
end | sed -e 's/\/$//' | awk '!a[$0]++' | _fzf_open_project_in_code $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment