Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIS配列のmacOSで \ を入力できない #534

Closed
shiena opened this issue May 3, 2024 · 2 comments
Closed

JIS配列のmacOSで \ を入力できない #534

shiena opened this issue May 3, 2024 · 2 comments

Comments

@shiena
Copy link
Contributor

shiena commented May 3, 2024

OS: macOS 14.4.1
キーボード: JIS配列

インサートモードで Option + ¥ を入力すると \ が入力されずノーマルモードへ戻ってしまいます。
neovim-qtも同じ挙動で、neovideは \ を入力できているのでqtの仕様かもしれません。
現状は ¥ を使わないので以下の設定で回避しています。

if has('mac') && exists('g:gonvim_running')
	noremap! <Bslash> <Char-165>
	noremap! <Char-165> <Bslash>
	tnoremap <Bslash> <Char-165>
	tnoremap <Char-165> <Bslash>
endif
@akiyosi
Copy link
Owner

akiyosi commented May 3, 2024

イシュー報告ありがとうございます。
e339a3a にて修正してみました。
ご確認いただけますと幸いです。

ちなみに、neovim-qt側で同じ挙動なのは、goneovimのkey input処理をNeovim-qtの実装を参考に実装しているため、同様の問題がNeovim-qt側にも存在している構造となっているのだと思われます。

@shiena
Copy link
Contributor Author

shiena commented May 3, 2024

@akiyosi 修正ありがとうございます。
Option + ¥ で \ 、上記remapでは ¥ を入力できるようになりました。

ちなみに、neovim-qt側で同じ挙動なのは、goneovimのkey input処理をNeovim-qtの実装を参考に実装しているため、同様の問題がNeovim-qt側にも存在している構造となっているのだと思われます。

なるほど、順番が逆だったんですね。

@shiena shiena closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants