deerawan / vscode-dash

Dash, Zeal and Velocity documentation integration in Visual Studio Code 🔎📖
MIT License
289 stars 23 forks source link

Getting Zeal working: Install location #103

Open GHSoCoder opened 2 years ago

GHSoCoder commented 2 years ago

First an happy and succesfull year 2022,

yep, how I can get that extension working with Zeal. Zeal is installed in an non-standard location.

Many thanks and greetings GHSoCoder

Patabugen commented 2 years ago

I installed Zeal using scoop - which didn't register the "dash-plugin://" handler.

I've got mine to work by manually adding it to the registry (Actually I installed Zeal with the installer, checked what it did and exported it before uninstalling that version).

Register the dash-plugin handler

Save this as dash-zeal.reg and run it to import the keys into your registry.

Change the path c:\\users\\user\\scoop\\apps\\zeal\\current\\zeal.exe below to match your installation location.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dash-plugin]
@="Dash Plugin Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\dash-plugin\DefaultIcon]
@="\"c:\\users\\user\\scoop\\apps\\zeal\\current\\zeal.exe,1\""

[HKEY_CLASSES_ROOT\dash-plugin\shell]

[HKEY_CLASSES_ROOT\dash-plugin\shell\open]

[HKEY_CLASSES_ROOT\dash-plugin\shell\open\command]
@="\"c:\\users\\user\\scoop\\apps\\zeal\\current\\zeal.exe\" \"%1\""

Powershell Note

This could be written as PowerShell commands which would make it easier for others to use, unfortunately I've not got the time today.

Scoop Note

After installing with scoop which zeal actually returns C:\Users\user\scoop\shims\zeal.EXE - but I've used the direct path to avoid having a CMD window appear when I launch Zeal from VS Code. I don't imagine this will cause any problems.

tomesparon commented 4 weeks ago

If installing Zeal from scoop, in a powershell window ,do zeal --register And that should register it as the default handler for searches. This is better in case you have no access to registry editor. Thanks for the extension!