fish + peco で git の色んなものを楽に選択する


gitのブランチやファイル、コミットのハッシュ、タグをpecoで楽に選択できるプラグインを作ってみました
github: peco_select_git_misc

インストール

fisher tamanugi/peco_select_git_misc 

使い方

細かい関数に分かれているので、それぞれ適当なキーバインドに割り当てて使用してください

config.fish
function fish_user_key_bindings
  bind \cx\cb peco_select_git_branch
  bind \cx\cf peco_select_git_file
  bind \cx\cs peco_select_git_file_with_status
  bind \cx\ct peco_select_git_tag
  bind \cx\ch peco_select_git_hash
end

各関数の実行結果は既存のコマンドバッファに追加するようになっています