Jump to content

Evernote plugin for Sublime Text 3 (supports Markdown!)


bordaigorl

Recommended Posts

Do you use Sublime Text 3 for your coding/editing and would love to use it to edit Evernote notes?

This plugin is for you!

 

https://packagecontrol.io/packages/Evernote

 

Sublime Text 3 is a popular text editor. This plugin allows you to work with your Evernote notes using the convenient Markdown notation.

 

It features:

  • Conversion from and to Markdown: open your note in Sublime Text as a Markdown document, save it to get it converted back to rich text
  • List/Search/Create/Upload notes from within Sublime Text
  • Upload/List/Open Attachments

 

Any feedback welcome!

Link to comment
  • Level 5*

From a quick look,  the installation process is not for the technologically faint-hearted,  and presumably using the plugin means that all my input goes through your hands on its way to Evernote.  What levels of security do you support?

Link to comment

From a quick look,  the installation process is not for the technologically faint-hearted,

 

If you are already using Sublime Text 3 with Package Control the installation procedure should be as easy as Ctrl+P > Install > Evernote.

If you encounter problems you are most welcome to post an issue at https://github.com/bordaigorl/sublime-evernote

 

and presumably using the plugin means that all my input goes through your hands on its way to Evernote.

 

It depends what you mean by "my hands" ;)

Not a single bit of your data will leave your editor unless you issue Evernote related commands, in which case your data will be sent directly to Evernote's servers through their own libraries.

Everything the plugin does is done locally on the client's side, apart from downloading and uploading notes from/to your Evernote account.

 

What levels of security do you support?

 

Unfortunately, due to restrictions to some of the libraries shipped with Sublime Text the plugin does not support https.

This is going to change when Sublime Text will add support for it.

The authentication is done using Developer API Tokens.

Link to comment

Ha, this is really cool!  Sublime is my favorite editor.

 

I might not use the web interface ever again... this is much more convenient. 

 

One thing that seems a little unnatural is having to select "update note" from the menu instead of Ctrl+S to save the changes.

 

Link to comment

@gazumped: you are welcome :) btw the next version is going to support HTTPS provided you use the new Package Control version 3!

 

@foonote: I did not want to override the ctrl+s binding since it's such a basic one, plus somebody may want to save the note to a local file in addition to updating the cloud version.

In the readme there's a note about how to set ctrl+s to do what you ask: just add to your user keymap a variation of the following

{ "keys": ["super+e"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Evernote: "} }, { "keys": ["ctrl+s"], "command": "save_evernote_note", "context": [{"key": "evernote_note"}, {"key": "evernote_has_guid"}] }, { "keys": ["ctrl+s"], "command": "send_to_evernote", "context": [{"key": "evernote_note"}, {"key": "evernote_has_guid", "operator": "equal", "operand": false}] },

This would bind ctrl+s to "Send to Evernote" if you are in a view displaying a new note, "Update Evernote note" if you are in a view displaying an existing note.

Link to comment
  • 3 weeks later...

I just released a new version (2.6.0).

It features substancial enhancements such as

  • asynchronous communication with the server,
  • GFM tables, strikethrough and underlined support,
  • support for HTTPS for Package Control v3 users.

 

The full details and documentation can be found in the wiki.

Link to comment

Hi DutchPete what do you mean by "export" a markdown note?

Once you write a note using markdown syntax in Sublime Text you can do what you want with it: you can save it to a file, use a converter on it to get a preview (there are ST plugins for that as well) etc.

 

As for the broken link it's a glitch in Package Control's rendering of the readme, you  can find the original (with working links) here

https://github.com/bordaigorl/sublime-evernote#first-use

Link to comment

What I mean is that, after having saved many notes from ST to Evernote only (i.e. not having saved them to an external folder), one might want to export them at a later stage. Is that possible, or can they only be exported as enex or HTML files?

 

Hi DutchPete what do you mean by "export" a markdown note?

Once you write a note using markdown syntax in Sublime Text you can do what you want with it: you can save it to a file, use a converter on it to get a preview (there are ST plugins for that as well) etc.

 

As for the broken link it's a glitch in Package Control's rendering of the readme, you  can find the original (with working links) here

https://github.com/bordaigorl/sublime-evernote#first-use

Link to comment

Well, the plugin allows you to save notes to Evernote as well as opening them.

So, for instance, you can open the command pallette, write "Open Evernote" select the entry, navigate the desired Notebook, select the note from the list et voilà you get the markdown of your note. From there you can use the note's contents as you prefer.

Does this answer your question?

Link to comment

Yes it does, thanks a lot :)

 

Well, the plugin allows you to save notes to Evernote as well as opening them.

So, for instance, you can open the command pallette, write "Open Evernote" select the entry, navigate the desired Notebook, select the note from the list et voilà you get the markdown of your note. From there you can use the note's contents as you prefer.

Does this answer your question?

Link to comment

Any way to make MarkdownEditing the standard syntax, when opening an Evernote Note in sublime text?

Yes, see menu Preferences / Package Settings / Evernote / Settings - User 

and add this to the existing json key/value pairs:

"md_syntax": "Packages/MarkdownEditing/Markdown.tmLanguage",

Link to comment

 

Any way to make MarkdownEditing the standard syntax, when opening an Evernote Note in sublime text?

Yes, see menu Preferences / Package Settings / Evernote / Settings - User 

and add this to the existing json key/value pairs:

"md_syntax": "Packages/MarkdownEditing/Markdown.tmLanguage",

 

Yay! Have been looking for this a while now. Thank you so much! 

Link to comment
  • 2 months later...

Hey nice work! I've been looking for something better than the web interface that will allow markdown to be used for composing notes. It was a pleasant surprise to see that it has been provided through the editor that I use daily. Very well done.

 

I'm wondering if there is any plans for expanding the syntax. If so, I'd like to put forth a request for the following:

 

```

// a bunch of code

```

 

and 

 

```[some language name]

// syntax highlighted code

```

 

This is something used pretty often on github, as I'm sure you're aware.

 

All the best!

Link to comment

Wow! Well, brave new world. I'm glad to find a consensus that there is a solution to this persistent weakness of wheezy or no markup. I'm looking forward to reading up more and hoping to join ranks. TIA!

Link to comment
  • 3 weeks later...

Oh this is brilliant! I tend to use Brackets for coding, so that leaevs me free to use Sublime Text purely for Evernote. I especially love the overriding of key bindings for the open and "smart" save. Thanks for this :)

Link to comment
  • 1 month later...

 

Any way to make MarkdownEditing the standard syntax, when opening an Evernote Note in sublime text?

Yes, see menu Preferences / Package Settings / Evernote / Settings - User 

and add this to the existing json key/value pairs:

"md_syntax": "Packages/MarkdownEditing/Markdown.tmLanguage",

 

 

Odd that I don't have a Packages/MarkdownEditing folder even though I have the add-on installed (via package control). I downloaded the file here and just added it to my Packages/User folder.

 

It works however, when activated the metadata in a note no longer autocompletes, which is a massive drag. Has anyone else managed to get this working with MarkdownEditing syntax and the metadata auto complete working?

Link to comment
  • 1 month later...

@Panda_Bear The plugin uses the `Evernote.tmLanguage` syntax definition by default.

It defines the scopes for the metadata headers and then imports the gfm markdown syntax (from MarkdownEditing) if installed and the default one.

Hence you should be able to see the MarkdownEditing highlighting and get the autocompletion (which only works on the scope defined by Evernote.tmLanguage).

Link to comment
  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...