"Better" Evernote Integration for Launchbar

Sharing and discussing custom actions for LaunchBar
lukas.pustina
Posts: 8
Joined: Sun May 14, 2017 2:24 pm

"Better" Evernote Integration for Launchbar

Postby lukas.pustina » Sun May 14, 2017 2:32 pm

Hi guys,

out of my own suffering, I created a "Better" Evernote Integration for Launchbar. It mitigates the current short comings of the build-in integration like search terms are concatenated with %20 as in URL encoded space, there is no preview of found notes you could select from, and creating new notes does not work with Evernote more recent than version 5.

It currently offers the following features:

  • Search queries may make use of the full Evernote Search Grammar.

    For example:
    search terms -- matches notes that contain these terms in its full text
    intitle:"Words in title" -- maches notes with these words in the title
    created:day-1 -- matches notes created yesterday or today
    todo:* -- matches notes that contain todos

    You can open any matching note by navigating to the search result and pressing <Return>.
  • Create new note

    You can easily create a new note in the default notebook by entering the new note's title as a search query and then pressing <Shift>+<Return>.
  • Open Evernote

    In case you want to open Evernote's main window, just press enter before entering a search query.

You can find the source code at https://github.com/lukaspustina/Evernote.lbaction and can download a release version at https://github.com/lukaspustina/Evernote.lbaction/archive/v0.1.0.zip.

I hope it helps you and eases the pain when working with Evernote.

Cheers,
Lukas

agentcross
Posts: 6
Joined: Mon May 15, 2017 12:53 pm

Re: "Better" Evernote Integration for Launchbar

Postby agentcross » Mon May 15, 2017 1:02 pm

Hi Lukas,

that's a great timing ! I am using launchbar just for 3 days now but this action is what I already was looking for ! Thanks a lot, I really love the way it works !

Just one question, when I downloaded your .zip it didn't contain a .lbaction file so I couldn't just launch and install it. Instead I opened the action editor and created a new action by copying your scripts into the action. Hence, I have a different info.plist now etc..

I guess this is not how you intended people to use it? What did I do wrong so that I couldn't just double click and install it?

Thanks,
Christian

lukas.pustina
Posts: 8
Joined: Sun May 14, 2017 2:24 pm

Re: "Better" Evernote Integration for Launchbar

Postby lukas.pustina » Mon May 15, 2017 7:52 pm

Hello Christian,

I'm happy you can make any use of the action.

Regarding your question, you have two options to install the action:
1. You clone the Github repository and double click the directory -- cf. the readme.
2. You download the a "release zip". The release zip file name contains the release version, e.g.,

Code: Select all

Evernote.lbaction-0.1.1
. Just remove the version from the filename like

Code: Select all

Evernote.lbaction
and then you can double click the action.

Feel free to ask any other question. You can also use the issue tracker of the Github repository.

Cheers,
Lukas

lukas.pustina
Posts: 8
Joined: Sun May 14, 2017 2:24 pm

Re: "Better" Evernote Integration for Launchbar

Postby lukas.pustina » Mon May 15, 2017 7:54 pm

New Version 0.1.1

The search results now support tags and show the title, the date of the last modification, the tags -- if any --, and the notebook of each matching note.

agentcross
Posts: 6
Joined: Mon May 15, 2017 12:53 pm

Re: "Better" Evernote Integration for Launchbar

Postby agentcross » Mon May 15, 2017 10:26 pm

Ok great, got it.

I also added the functionality known from file and folder action to directly delete note from the suggestion list. Unfortunately I do not know how to trigger this with ⌘+ delete (backspace) so I am using ⌘+return instead (for the moment) but this feels really unnatural ..

Do you have any idea how to trigger the deletion directly by pressing ⌘+ delete?

lukas.pustina
Posts: 8
Joined: Sun May 14, 2017 2:24 pm

Re: "Better" Evernote Integration for Launchbar

Postby lukas.pustina » Tue May 16, 2017 7:46 am

I'm afraid this is not possible, because Launchbar does not trigger scripts when the <delete> key is pressed; regardless of the state of the modifier keys.

agentcross
Posts: 6
Joined: Mon May 15, 2017 12:53 pm

Re: "Better" Evernote Integration for Launchbar

Postby agentcross » Tue May 16, 2017 10:18 am

Oh, that would be a real drawback.. I would love to implement different shortcuts to my customized actions. That would make it even more powerful. I just contacted the customer service just in case they know any solution or work around.

Anyway, your action is awesome and I made some little adaptions to fit my needs even better. When hitting spacebar after slecting Evernote in LaunchBar the suggestions do not only show the recent notes, but also show some of the modifiers that I use the most. This makes it even quicker to use for me and when I start typing to perform the basic search they disappear to not be disrupting when selecting one of the found notes.

Perhaps this is something that might be useful for you as well.
Attachments
Bildschirmfoto 2017-05-16 um 10.10.39.png

lukas.pustina
Posts: 8
Joined: Sun May 14, 2017 2:24 pm

Re: "Better" Evernote Integration for Launchbar

Postby lukas.pustina » Tue May 16, 2017 10:25 am

Hi Christian,

let me know what customer service will say.

Regarding your "Saved Searches" I have to say I like the idea. I don't know how to generalise this; different people will likely want to have different searches. Let me think about this. You can create an issue / feature request for this on Github https://github.com/lukaspustina/Evernote.lbaction/issues, so we can track it.

Cheers,
Lukas

agentcross
Posts: 6
Joined: Mon May 15, 2017 12:53 pm

Re: "Better" Evernote Integration for Launchbar

Postby agentcross » Wed May 17, 2017 1:15 pm

Just got the reply from customer service.

Using other short cuts than modifier key + return to trigger an action is unfortunately only possible for index-searches due to different reasons.

lukas.pustina
Posts: 8
Joined: Sun May 14, 2017 2:24 pm

Re: "Better" Evernote Integration for Launchbar

Postby lukas.pustina » Sun May 21, 2017 9:20 pm

New version 0.1.2

Adds support for notes with `'` in title.

lukas.pustina
Posts: 8
Joined: Sun May 14, 2017 2:24 pm

re: "Better" Evernote Integration for Launchbar

Postby lukas.pustina » Tue Jun 13, 2017 8:32 pm

New Version 0.2.0

Link to Github release: https://github.com/lukaspustina/Evernote.lbaction/releases/tag/v0.2.0
Link to documentation and screenshots: https://github.com/lukaspustina/Evernote.lbaction/blob/master/README.md

All new Features
    * Open Evernote
    * Search for Notes with the full power of Evernote's search grammar
    * Open Search Result
    * Copy Note Link of Search Result
    * Open Evernote Window with Search Query for narrowing down your search
    * Favorite Notes for shortcuts to frequently used notes
    * Saved Searches for shortcuts to frequently used searches
    * Create new Note
    * Synchronize Now to trigger notes synchronisation
    * Action Settings configure debug output, number of search results, favorite notes, saved searches

Under the hood
    Unit tests
    Automatic tests using Travis CI
    Better AppleScript support with escaping of ' in all titles, tags, and notebook names

Thanks to agentcross for his support, opinions, and testing.


Return to “LaunchBar Actions”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests