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

press <esc> to close preview window conflicts with vim normal model key-bindings #5

Open
Kcalb35 opened this issue Apr 26, 2022 · 1 comment

Comments

@Kcalb35
Copy link

Kcalb35 commented Apr 26, 2022

Describe the bug
插件的渲染窗口需要按esc关闭,这与vim退出到normal mode的按键冲突了,导致需要按两次esc才能回到normal mode

Screenshots
bug

Version

  • VS Code Version: 1.6.6
  • Extension Version: 0.2.4
@yfzhao20
Copy link
Owner

感谢反馈!应该可以到快捷键设置(ctrl +k ctrl +s)里面把这个键删掉。


还有个简单粗暴的方法是,将这两个快捷键在快捷键设置的json文件(keybindings.json)里面各copy一份,并且把vim的快捷键放在上面。这是因为,默认添加时,关闭预览的快捷键(ultra math preview 是 u 开头)在vim快捷键(v开头)的上面,于是总是先关闭预览。放在json中能覆盖默认的设置。不过这个方法过于令人生草🤣,也很久没试过了,不保证能行。

image


或者可以对照着修改一下when表达式。
image

我不太会用vim,可能需要慢慢摸索一下用when的用法。


可能我还需要多摸索一些解决冲突的方法。

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