Surfingkeys icon indicating copy to clipboard operation
Surfingkeys copied to clipboard

Fail to setup neovim integration at edge

Open fecet opened this issue 2 years ago • 2 comments

Error details

SurfingKeys: 1.0.3

Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36 Edg/99.0.1150.30

URL: <The_URL_Where_You_Find_The_Issue>

Context

I follow the guide to setup neovim, but nothing happen when I use ctrl+i to insert(just work as usual), and extension://gfbliohnnapiefjpjlpjnehglfpaknnc/pages/neovim.html just display Failed to connect neovim, please make sure your neovim version 0.5 or above.

Is there any error log to trace what's wrong?

fecet avatar Mar 04 '22 11:03 fecet

The same config work at chrome, so it's an edge unique bug, I'm trying to modify the json file to

 {
     "allowed_origins": [
         "chrome-extension://aajlcoiaogpknhgninhopncaldipjdnp/",
         "chrome-extension://gfbliohnnapiefjpjlpjnehglfpaknnc/",
         "extension://gfbliohnnapiefjpjlpjnehglfpaknnc/",
         "extension://aajlcoiaogpknhgninhopncaldipjdnp/"

     ],
     "description": "Neovim UI client from Surfingkeys",
     "name": "surfingkeys",
     "type": "stdio",
     "path": "/home/username/.config/surfingkeys/start.sh"
 }

But it's not work. As Surfingkey 1.0 have not support edge officially, I just write it down and hope it will be fixed.

fecet avatar Mar 04 '22 12:03 fecet

I got it working in Edge using the surfingkeys extension from Edge store. The extension URL in your manifest (json) file, need to use "chrome-extension://" as the URL prefix instead of "extension://".

And the URL actually works is

     "allowed_origins": [
         "chrome-extension://kgnghhfkloifoabeaobjkgagcecbnppg/"
     ]

If you use the chrome store's version, your file is correct. But you need to remove the 2 "extension://" URLs. This also worked in my edge browser.

In either case, the registry key path is HKEY_CURRENT_USER\Software\Microsoft\Edge\NativeMessagingHosts\surfingkeys.

ZhichaoHong avatar Apr 21 '22 03:04 ZhichaoHong