forked from timlockridge/SublimeEvernote
-
Notifications
You must be signed in to change notification settings - Fork 106
Getting Note Links
Emanuele edited this page Jun 12, 2016
·
1 revision
Selecting Evernote: Insert link to a note
from the command palette will let you select a note and insert a link to it in the currently opened one.
The underlying command is however more flexible and is called
insert_link_to_evernote_note
it accepts the following arguments:
Argument | Description |
---|---|
template |
The template to use when formatting the link (default: "[{title}]({url})" ) |
to |
Either "view" or "clipboard" (default: "view" ) |
In a keymap
{ "keys": ["super+l"], "command": "insert_link_to_evernote_note", "args": {"template": "[Follow this link]({url})"} }
{ "keys": ["super+c"], "command": "insert_link_to_evernote_note", "args": {"template": "{url}", "to": "clipboard"} }
or from the console/a plugin
window.run_command("insert_link_to_evernote_note", {"template": "{url}", "to": "clipboard"})
The template
argument can take a python template string using the fields {url}
(the link to the note) and {title}
(the linked note's title).
The to
argument determines where the formatted link will be output.
The default is "view"
, which inserts the link into the current view.
To copy the link in the clipboard instead use "clipboard"
.