inkdropapp / inkdrop-vim

Provides Vim modal control for Inkdrop, blending the best of Vim and Inkdrop
https://www.inkdrop.app/
MIT License
99 stars 9 forks source link

Plugin breaks Alfred snippet expansion #12

Closed prurph closed 4 years ago

prurph commented 4 years ago

Alfred is a popular OS X app. One of its features is snippets: you define a shortcut which, when typed, expands to some other text.

This functionality does not work inside of Inkdrop when the inkdrop-vim plugin is enabled.

One interesting note. If you:

  1. Enter insert mode
  2. Log out/in of macOS (this might reset secure text entry?)
  3. Snippets work temporarily

As soon as you exit insert mode and then re-enter it, snippets are broken again. I'm not too knowledgeable about how this works under the hood so I'm not sure if this is an easy fix or if the plugin/inkdrop can handle this somehow.

craftzdog commented 4 years ago

Thanks for the report. Does it work here?

https://codemirror.net/demo/vim.html

If not, it would be hard to fix the issue by design.

prurph commented 4 years ago

Oh cool--didn't realize there was a demo site.

It does not work there. I'll just go ahead and close this since the issue seems tied to the use of codemirror.

craftzdog commented 4 years ago

Seems like so, unfortunately. Thanks for letting me know!

prurph commented 4 years ago

For anyone finding this later: I've discovered a workaround:

  1. Enter insert mode
  2. Alt+tab to another application, then back to Inkdrop (the editor should be in insert mode in the background at this time)
  3. Snippets will work until you exit insert mode

This is actually pretty fast given you usually only need to use snippets sparingly.