decors / fish-ghq

ghq completion and keybinding for fish shell
MIT License
108 stars 26 forks source link

GHQ shortcut is always reset after new terminal window (日本語ok) #7

Closed mesqueeb closed 5 years ago

mesqueeb commented 5 years ago

(日本語下) Hi. I'm using iTerm 2 terminal and fish & fisher. I did a global install of fzf with brew 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...

image

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?

mesqueeb commented 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を再実行しない限り、このプラグイン使えません。

なにかセットアップでも間違えたのかなかと思います、、、、、 なにかアドバイスあれば大変助かります!!

mesqueeb commented 5 years ago

It worked when I did:

EDIT:

It seems the author had renamed the function: https://github.com/decors/fish-ghq/commit/6b7d820c19b1d9f85fb2f4272ca93e87ca12e9f6#diff-88d8c7864bce76000521ece291496116

mesqueeb commented 4 years ago

@decors キーボード・ショートカットを自分で fish_user_key_bindings.fish で設定しないといけないのが普通のやり方ですか?

なぜか、わたしの場合 fisher add decors/fish-ghq をインストールするだけだと、iTermを再起動したら、ctrl + G のショートカットが使えなくなる・・・・

でも上記の投稿のように、自分で fish_user_key_bindings.fish を設定すれば、ずっといける。

わたしの環境では何かだめな何かあるのかな・・・

decors commented 4 years ago

@mesqueeb 日本語でありがとうございます jethrokuan/fzf をインストールされていますでしょうか?

その場合、jethrokuan/fzf でも crtl-G のキーバインディングが追加されたため、コンフリクトします set -U FZF_LEGACY_KEYBINDINGS 0 で jethrokuan/fzf の新しいキーバインディングに変更すると、利用できるかと思います