Closed mesqueeb closed 5 years ago
オーサーが日本語の方が強いと思い、日本語でも説明します。
👍🏻 fisher add decors/fish-ghq
をiTerm 2で実行すれば、
GHQのrepo一覧が⌘+G
で普通に出てきます。
👎🏻 ただし、一度terminal windowを閉じれば、⌘+G
が壊れてしまう。
新しいwindowで再度⌘+G
を押すと、なぜか Music
フォルダから初め、長いフォルダ一覧が出てきます。
要するに、terminalを開くたび、fisher add decors/fish-ghq
を再実行しない限り、このプラグイン使えません。
なにかセットアップでも間違えたのかなかと思います、、、、、 なにかアドバイスあれば大変助かります!!
It worked when I did:
touch ~/.config/fish/functions/fish_user_key_bindings.fish
and paste this inside:
### ghq ###
bind \cg '__ghq_repository_search'
if bind -M insert >/dev/null ^/dev/null
bind -M insert \cg '__ghq_repository_search'
end
### ghq ###
EDIT:
__ghq_crtl_g
to __ghq_repository_search
in the answer above.It seems the author had renamed the function: https://github.com/decors/fish-ghq/commit/6b7d820c19b1d9f85fb2f4272ca93e87ca12e9f6#diff-88d8c7864bce76000521ece291496116
@decors キーボード・ショートカットを自分で fish_user_key_bindings.fish
で設定しないといけないのが普通のやり方ですか?
なぜか、わたしの場合 fisher add decors/fish-ghq
をインストールするだけだと、iTermを再起動したら、ctrl + G のショートカットが使えなくなる・・・・
でも上記の投稿のように、自分で fish_user_key_bindings.fish
を設定すれば、ずっといける。
わたしの環境では何かだめな何かあるのかな・・・
@mesqueeb 日本語でありがとうございます jethrokuan/fzf をインストールされていますでしょうか?
その場合、jethrokuan/fzf でも crtl-G のキーバインディングが追加されたため、コンフリクトします
set -U FZF_LEGACY_KEYBINDINGS 0
で jethrokuan/fzf の新しいキーバインディングに変更すると、利用できるかと思います
(日本語下) Hi. I'm using iTerm 2 terminal and fish & fisher. I did a global install of
fzf
withbrew install fzf
.👍🏻 If I do:
fisher add decors/fish-ghq
then ⌘+G works and points to my.ghq
folder in my User folder.👎🏻 If I close the terminal window and open it again, or if I open a new tab: then ⌘+G starts generating a giant list with folders starting with
Music
...This means: Every time I want to use ⌘+G for the ghq list, I need to reinstall fish-ghq by doing
fisher add decors/fish-ghq
... Then it works again, until I close the terminal window.Any ideas for me?