-
Notifications
You must be signed in to change notification settings - Fork 782
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
API: Installed docsets #400
Comments
Well other ways left are socket or dBus isn't it ? |
D-Bus almost does not exist outside of *nix world (I am aware about Windows ports). A local socket might be the best option. Zeal already creates one for the single instance mode and handling custom URL schemes. It shouldn't be hard to utilise it for other purposes. |
I just read the code so:
It could evolve in this way: prefix=somebytestatic (like shebang or binary prefixing for format)
Of course there would be a need to include a jsonlib. Also although i understand the c++ zeal code, i don't actually know the detailed characteristic of the socket just a name "ZealLocalServer". Meaning the address and port so i could connect trough with nodejs or vala for my use case. EDIT: EDIT2: |
Some sort of JSON interface should be fine. It's pretty easy to detect whether payload contains JSON or something else. I am not sure there's much sense in implementing a binary protocol. |
Well the bin protocol is just proposal to make changes simplier. Edit:
Knowing that we can launch zeal with dash:// or from cli this will give all to abilities to make use of zeal by another program. (launching either dash://php:constants or just dash://constants) Also i'm not sure if you will be glad for this but since there is a button "Open URL" it could give the url like
That way complete page info could be easily embed from results EDIT2:
So even if there is no results in a docset it would be sent but with empty array. This would keep things simple as possible. |
I'd love to see the same API provided via stdin/stdout when called with "zeal --api". This would allow to easily integrate it with various scripts (in my case it's my dotfiles bootstrap script, which ensures that I have all necessary development environment) |
Hi I am the author of albert launcher. I think this api wrapped in an albert extension would be the absolute killer workflow. Unfortunately I dont use zeal anymore because using the launcher to google is simply faster. However I like the idea of a dedicated app for documentation and I really would like to use Zeal through albert. Please give this issue some priority. |
This is something I'd like to address with the new backend, which is currently in works. |
Any updates? |
Several requests (#368, #371 and #375) have been submitted about providing a way to retrieve the list of installed docsets.
I do not consider CLI a reliable, and portable interface, so a better alternative is wanted here.
The text was updated successfully, but these errors were encountered: