docs » EvernoteOpenAndTag

Add some missing hotkeys for opening a note in Evernote, and for common tag sets

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/EvernoteOpenAndTag.spoon.zip

API Overview

API Documentation

Variables

logger
Signature EvernoteOpenAndTag.logger
Type Variable
Description

Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.

Source Source/EvernoteOpenAndTag.spoon/init.lua line 17

Methods

bindHotkeys
Signature EvernoteOpenAndTag:bindHotkeys(mapping)
Type Method
Description

Binds hotkeys for EvernoteOpenAndTag

Parameters
  • mapping - A table containing hotkey objifier/key details for the following items:
    • open_note - open the current note in a new window
    • open_and_tag-<tag1>,<tag2>... - open the current note and apply all the comma-separated tags given. The tags must already exist in Evernote for the tagging to succeed.
    • tag-<tag1>,<tag2>... - open the current note and apply all the comma-separated tags given. The tags must already exist in Evernote for the tagging to succeed.
Returns
Source Source/EvernoteOpenAndTag.spoon/init.lua line 130
evernoteIsFrontmost
Signature EvernoteOpenAndTag:evernoteIsFrontmost()
Type Method
Description

Returns true if Evernote is the frontmost application

Parameters
  • None
Returns
  • true if Evernote is the frontmost application, false otherwise
Source Source/EvernoteOpenAndTag.spoon/init.lua line 22
inlineTagCurrentNote
Signature EvernoteOpenAndTag:inlineTagCurrentNote(tags)
Type Method
Description

Apply the given tags to the selected Evernote notes

Parameters
  • tags - a table containing a list of tags to apply. The tags must already exist in Evernote.
Returns
  • None
Notes
  • If multiple notes are selected, the tags are applied to all of them
Source Source/EvernoteOpenAndTag.spoon/init.lua line 103
openAndTagCurrentNote
Signature EvernoteOpenAndTag:openAndTagCurrentNote(tags)
Type Method
Description

Open the current Evernote note in a new window and apply the given tags to it

Parameters
  • tags - a table containing a list of tags to apply. The tags must already exist in Evernote.
Returns
  • None
Notes
  • Even if multiple notes are selected, only the first one is tagged, as it will become the "current one" after it's opened in a new window
Source Source/EvernoteOpenAndTag.spoon/init.lua line 84
openCurrentNoteInWindow
Signature EvernoteOpenAndTag:openCurrentNoteInWindow()
Type Method
Description

Open the currently-selected Evernote notes in new windows.

Parameters
  • None
Returns
  • None
Notes
  • Uses Applescript from https://discussion.evernote.com/topic/85685-feature-request-open-note-in-separate-window-keyboard-shortcut/#comment-366797
Source Source/EvernoteOpenAndTag.spoon/init.lua line 36
tagCurrentNote
Signature EvernoteOpenAndTag:tagCurrentNote(tags)
Type Method
Description

Assigns tags to the currently-selected Evernote notes

Parameters
  • tags - a table containing a list of tags to apply. The tags must already exist in Evernote.
Returns
  • None
Source Source/EvernoteOpenAndTag.spoon/init.lua line 61