Coder Social home page Coder Social logo

coc-imselect's Issues

在其他app中切换输入法再切回终端的vim后插件会失效

试了几个切换输入法的插件都有这个问题

  • 版本 neovim v0.4.4
  • 终端 iterm2
  • OS macos catalina

复现方式:

  1. 编辑完中文按esc回到normal模式
  2. 切换到浏览器
  3. 切换到中文输入法 搜索
  4. 搜索完毕后切换应用回到vim
  5. 按下i进入编辑模式

此时虽然输入法切换回中文了,mac顶部的bar也显示是中文输入法状态,但是只能输入英文 ,需要手动重新点选一下中文输入法

如果要避免这种情况 只能在浏览器输入完中文后手动切换回英语 再切回vim

不支持 sudo

感谢作者开发的插件,但是发现 sudo 似乎有问题:

  1. sudo vim
  2. i 进入 insert,切到中文
  3. ESC 退出 insert
  4. i 进入 insert
  5. 输入法仍为英文

这种场景可能比较少见,偶尔编辑一下 /etc/hosts 之类的才会碰到

供参考,谢谢

neovim进入目录之后会闪退

Mac m2 air, item2

类似nvim .的方式,不过直接在当前目录nvim就没事

❯ nvim --version
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

Wrong Input Source

从中文输入法退出的时候报错了:

Command failed: /Users/foobar/.vim/bundles/.cache/init.vim/.dein/bin/sel ect com.apple.keylayout.US

实际上我没有使用US这个layout而是ABC

我打印出来的Input Method有这些:

    "<TSMInputSource 0x7f9d6b4132e0> KB Layout: ABC (id=252)",
    "<TSMInputSource 0x7f9d6b40d4c0> Palette Input Method: com.apple.PressAndHold",
    "<TSMInputSource 0x7f9d6b417b20> Palette Input Method: com.apple.CharacterPaletteIM",
    "<TSMInputSource 0x7f9d6b417aa0> Palette Input Method: com.apple.KeyboardViewer",
    "<TSMInputSource 0x7f9d6b417ac0> Input Mode: com.sogou.inputmethod.pinyin (Parent = com.sogou.inputmethod.sogou)",
    "<TSMInputSource 0x7f9d6b417b40> Input Method: com.sogou.inputmethod.sogou"

解决办法是我把 ABC 改成 US 就好了,但是这里应该能检测到我使用的是ABC吧?

关于normal到insert模式

我在insert模式是搜狗的英文,如果切到normal会到ABC,然后再切回insert 就变成了搜狗拼音,这种情况如何设置呢?谢谢

missing `bin/select`

Install by CocInstall coc-imselect

2019-07-09T23:11:03.765 ERROR (pid:95111) [coc-imselect] - Command failed: /Users/aioiyuuko/.config/coc/extensions/node_modules/coc-imselect/bin/select com.apple.keylayout.ABC
/bin/sh: /Users/aioiyuuko/.config/coc/extensions/node_modules/coc-imselect/bin/select: No such file or directory

coc-imselect/bin/select 不工作。

您好,我是在neovim上使用的这个插件,发现不能切换输入法。(正常提示当前输入法)
coc-nvim.log

2021-05-20T10:09:50.694 ERROR (pid:22707) [coc-imselect] - Command failed: /Users/xxx/.config/coc/extensions/node_modules/coc-imselect/bin/select com.apple.keylayout.US`

在终端执行 `bin/select    com.apple.keylayout.US`没有反应。
❯ nvim --version
NVIM v0.4.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/config -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/src/nvim/auto -I/tmp/neovim-20210318-48132-k7r45c/neovim-0.4.4/build/include
Compiled by brew@BigSur

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.4.4_2/share/nvim"

Run :checkhealth for more info
❯ node --version                                                                                              
v16.1.0   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.