HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

Integration with Alfred, LaunchBar #92

Open ylian opened 9 years ago

ylian commented 9 years ago

Lots of power users use app launchers such as Alfred and LaunchBar. It would be nice to be able to run a few basic actions from these apps, e.g., search Quiver notes, create a new note.

What's really needed is to provide scripting support in Quiver. Then it would be easy to integrate with these app launchers.

LeonardoGentile commented 9 years ago

:+1:

marksb commented 9 years ago

:+1:

eliasmaier commented 9 years ago

👍

robdecker commented 9 years ago

:+1:

dkarter commented 9 years ago

:+1:

januz commented 9 years ago

That would be awesome!

ylian commented 9 years ago

After I finish the current update.

lastobelus commented 9 years ago

👍🏻

(but not as important to me as Services ;))

asafge commented 9 years ago

+1

jiamingz42 commented 9 years ago

Great app. What is the process of the Alfred integration of Quiver?

ylian commented 9 years ago

@benjamin19890721 No process at the moment.

pglombardo commented 8 years ago

I'd like to see this too. I've written Alfred workflows in the past. Is there an public API somewhere for Quiver? Couldn't find any docs.

Love v3.0 BTW. Just killed off Evernote for good (finally).

ylian commented 8 years ago

@pglombardo No public API but working on it. Scripting support coming soon.

mAAdhaTTah commented 8 years ago

@ylian Is there an issue for scripting support we can follow? Will it support scripting in JavaScript?

ylian commented 8 years ago

I will set up a ticket when the scripting support is close to ready, to gather feedback. Yes it will support JavaScript.

facetheheat commented 8 years ago

👍🏻

LavareX commented 8 years ago

👍🏻

ylian commented 8 years ago

Created a page for Alfred/LaunchBar workflows: https://github.com/HappenApps/Quiver/wiki/Alfred-LaunchBar-Integration

I'm working on scripting support right now. I will send out a build in a day or two.

Also here is a ticket for scripting support: https://github.com/HappenApps/Quiver/issues/247

I'm not sure at the moment how Alfred/LaunchBar workflows work with AppleScript/JXA, so keep two tickets open for now.

ylian commented 8 years ago

Here is the first draft of scripting support: https://dl.dropboxusercontent.com/u/3445731/Quiver-scripting-draft1.zip

In this first draft, only notebooks, notes, tags and a few basic properties are exposed. And they are read-only.

Let me know what else you need for your scripts and I will try to add.

Check the scripting dictionary for details:

screen shot 2015-12-13 at 4 35 22 pm

segphault commented 8 years ago

I made an experimental Alfred workflow for searching Quiver notes. It uses Quiver's own SearchKit index file in order to perform efficient full-text searches. It's implemented in Python and I used PyObjC to dig into the SearchKit APIs. When the user selects a note from the search results, it uses a quiver:// URL to open it.

Quiver.zip

ylian commented 8 years ago

@segphault Impressive work!

julianmenzler commented 8 years ago

@segphault That sounds nice! Unfortunately I don't get it to work. No output for any keyword.

segphault commented 8 years ago

@jmenzler if you wouldn't mind, could you try it with the debug panel open in the Alfred workspace view and let me know what error message pops up? I've found a few bugs that I'm working out (it breaks when the path to your Quiver files has a space in it because I forgot to have it reverse the url encoding for the path that SearchKit returns for the matched notes). I'll have an updated version shortly.

julianmenzler commented 8 years ago

@segphault Of course, here you go:

`[ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last): File "", line 12, in File "quiver.py", line 26, in getData with open (metaFile, "r") as f: IOError: [Errno 2] No such file or directory: u'/Users/username/Dropbox/Macs/App%20Data/Quiver/Quiver.qvlibrary/Tutorial.qvnotebook/D2A1CC36-CC97-4701-A895-EFC98EF47026.qvnote/meta.json' [ERROR: alfred.workflow.input.scriptfilter] XML Parse Error 'The operation couldn’t be completed. (NSXMLParserErrorDomain error 5.)'. Row (null), Col (null): 'Extra content at the end of the document' in XML: <?xml version='1.0'?>

[ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last): File "", line 12, in File "quiver.py", line 26, in getData with open (metaFile, "r") as f: IOError: [Errno 2] No such file or directory: u'/Users/username/Dropbox/Macs/App%20Data/Quiver/Quiver.qvlibrary/47749668-B202-42A1-933D-285D44E164E8.qvnotebook/4E6F7D31-C958-42D6-9B7A-4E1BF3C3885E.qvnote/meta.json'`
segphault commented 8 years ago

@jmenzler yep, it's the URL encoding issue, as I suspected. Thanks for sending the error message. Here's an updated version of the workflow that should work: Quiver.zip

julianmenzler commented 8 years ago

Awesome, works fairly well now! Thanks a lot! Will you put it up on packal.org?

segphault commented 8 years ago

Great, I'm glad it's working now. :smile: I wasn't planning on putting it up on Packal right away, but I'll probably do it in the future as I add more features and want to start updating it regularly.

julianmenzler commented 8 years ago

Great! Looking forward to it.. 😉

underscorephil commented 8 years ago

@ylian are there plans to support note creation?

AmadeusB commented 8 years ago

👍🏻

moubi commented 8 years ago

Using Quiver with Alfred is a good way to go. As a programmer I need to find fairly quick any code related information - snippets, common problems, bookmarks. Usually what we do is to go search google or stackoverflow.

I would like to first search my own knowledge base and then go to google. And this should happen faster, so I think Cmd + Space -> quiver action is the way to go. Doing as Mac native as possible.

wonderffee commented 8 years ago

Is it possible to search tags in Quiver with Alfred workflow? I really like one EverNote workflow(Evernote 8.991 (Evernote 6.06+ support): Search, Create, Append, set Reminders... All within Alfred) , it supports search Evernote tag by "ens #tag". I hope Quiver has the similar feature.

JMichaelTX commented 7 years ago

Request for LaunchBar Support

I don't use Alfred, but I use LaunchBar extensively. I could really use the ability to search Quiver from LaunchBar. From there I can use LB's powerful "Send" feature to send it to any app I want.