Giter Site home page Giter Site logo

bordaigorl / sublime-evernote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timlockridge/sublimeevernote

1.2K 1.2K 106.0 2.32 MB

Open and Save Evernote notes from Sublime Text 3 using Markdown

License: Other

Python 91.38% C 8.62%
evernote plugin sublime-text-3

sublime-evernote's People

Contributors

bordaigorl avatar danielfrg avatar jamiesun avatar pimlock avatar rahul-ramadas avatar ranmocy avatar rayou avatar timlockridge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sublime-evernote's Issues

Evernote plugin error: Bad version in readMessageBegin: -272908484

When I try to run any command I am getting the following error:

Evernote plugin error: Bad version in readMessageBegin: -272908484
error: Evernote plugin error, please contact developer at
https://github.com/bordaigorl/sublime-evernote/issues

Windows 8.1 / Sublime 3065

Edit: could be a proxy issue? The plugin was working fine on my home wifi.

EventListener for updating on save

See timlockridge#4.

It would be nice if we could decouple and optionally couple again the action of saving to file and of updating the note.

The key binding is currently inhibiting the binding for save, although the note can be still saved using the menus/pallette.

The EventListener of timlockridge#4 is not allowing one to choose to save to file only without updating, so it needs at least an option to disable.

Incompatible with MarkdownEditing package

The MarkdownEditing package for Sublime Text replaces the default Markdown.tmLanguage file, and disables the built-in Markdown plugin. This causes set_syntax_file to not work, since the file Package/Markdown/Markdown.tmLanguage is not usable.

I forked the repo and changed the path to Package/MarkdownEditing/Markdown.tmLanguage, which works for me, but obviously that's not a proper solution. I'm not yet familiar enough with Sublime Text's API to propose a solution. I looked briefly to see if there was a way to retrieve a list of packages, but didn't come up with anything particular aside from just scanning the packages path for the MarkdownEditing package, and I'd prefer to avoid that.

Is this issue something you care about? If so, any ideas? If not, feel free to close this.

Underline syntax not properly converted

It can correctly convert the star emphasis (word surrounded by *) syntax into italics, but not the underline syntax (word surrounded by _). Same for the bold syntax. Could you look into that? Thanks!

Licensing

Since this plugin is based and includes several libraries each licensed differently, we should check what is the best way of putting all these together.

Licenses of submodules:

  • Evernote Python SDK: APACHE 2.0
  • HTML2Text: GPL 3
  • Markdown 2: MIT
  • Pygments: BSD
  • OAuth and httplib2 (not needed/used for 3?): MIT

Most plugins seem to be licensed with the MIT license which makes sense since ST itself is not open source.

Any suggestions?

Inline CSS and md extras from settings

The plugin should be fetching options for some of the extras from the settings.

  • code_friendly should be optional
  • inline_css should be customisable and documented

Customize font-size

Hello,

It seems to me that adding custom css doesn't affect the note font size, like

    "inline_css": {
        "pre": "font-size:12px",
    }

The font size is fixed to 10px, as seen from Evernote client. Am I missing something?

Thank you.

open search panel with text enhancement

I allways use "alt+q" open search panel , It's better if I can with text eg 'tag:'

{ "keys": ["alt+q"], "command": "open_evernote_note", "args": {"by_searching": true, "text": "tag:"} }

Enhancement: Support strikethrough

Please consider adding support for strikethrough, GFM-style. Like this.

Currently, text that has been striked through in an Evernote client shows up like this:

<strike>Striked out text</strike>

Markdown problem with list of empty items

I am very sure I have configure the authorization well for I can read note from Sublime.
But when I select Send to evernote as new note but I can not get the note in evernote. And if I choose Clip to evernote as new note I can get the pure text(not Evernote) in it.
Is there anyone has the same problem?

Nested list markdown rendering

The html2text library seems to bail on nested lists, adding an extra list item character (*) and extra spaces at the beginning of the first LI element of any nested list.

Insert Image?

Hi,

It's a greate plugin, but how to insert image in the document?

Created and updated date in metadata

This is a feature request.

Currently the opened notes has the meta info of title, tags and notebook.
I'm wondering if it could add more info.
Such as created_at and updated_at, it may read-only fields, but at least it's useful if we can read when they are created.

It's even better if it could be customized in settings.

Thank you.

Syntax highlighting in code blocks

Hello,

Does the syntax highlighting works on basic code blocks without the github syntax (code) when it is exported in rich text in evernote?
It seems that only the github syntax works, with backticks.

I'm on OS X 10.9 ST 3 build 3065.

Thanks

screen shot 2014-09-13 at 00 25 06
screen shot 2014-09-13 at 00 25 31

Search note feature

The open note command only allows you to search for notes only after you selected a Notebook.

It would be nice if there was a search_note command with a prompt for a query and a panel displaying the results.

Also, the open note command should support an optional from_notebook argument so that one could bind a shortcut to opening notes from a particular notebook.

Disable typewriter scroll?

I am new to this plugin. It seems the typewriter scroll is enabled, and the cursor is kept at the center of the viewport all the time. Is there a way to disable it?

Feature: Leverage ExportHtml package for syntax highlighting

Before finding this plugin, my workflow was to use @facelessuser's package ExportHtml to create the highlighting for my browser, then copy/paste the page into Evernote (since web-clipping doesn't work on local files).

I love this package, but I prefer the configurability and product of ExportHtml. Is there any way to make use of the ExportHtml package or commands to create the ENML content for the notes?

Can't create new note

when i send new note to evernote,the console shows like below:
ValueError: need more than 1 value to unpack

i can update note successfully

Auth Issues

Developer token is not working - no error, but every time I go to send a note to Evernote, I am put through the same flow of requesting a developer token (browser loads this page)

Steps to Reproduce

  1. Installed the package (ST3), and followed directions under "First Use"
  2. Entered my developer token from Evernote into the field in ST3. The filed goes away, but the note is never sent to Evernote.
  3. Repeated the step. The browser loads the page to request a developer token. I try again, and nothing happens.

I did notice that there does not seem to be the file 'SublimeEvernote.sublime-settings' in 'Sublime Text 3/Packages/User/' after these steps. I tried creating manually using the following format:

{                                                                                                                                              
    "noteStoreUrl": "share_note_url_from_evernote",
    "oauth_token": "auth_key_from_evernote"
}

... but still no luck.

Better error messages

The error messages derived from validation of contents should be more informative:

EDAMUserException(errorCode=11, parameter='Attribute "class" must be declared for element type "div".')
EDAMUserException(errorCode=11, parameter='Element type "style" must be declared.')

Both should prompt the user with something like "Evernote does not support 'bla'. Remove the item and retry"

I want make shortcut for evernote and .txt .md file

I want make shortcut for evernote and .txt .md file
this is my key binding, it just work in .txt .md file, don't work in evernote

{ "keys": ["alt+/"],
    "command": "insert_snippet",
    "args": {"contents": "-| "},
    "context": [
        {"key": "evernote_note", "operator": "equal", "operand": false},
        {"key": "selector", "operator": "equal", "operand": "text.plain, text.html.markdown"},
    ]
},

when I change {"key": "evernote_note", "operator": "equal", "operand": false}, to {"key": "evernote_note"}
it just work in evernote not other file

Unordered list markdown rendering

It'd be great if there were a way to specify an alternative to the built-in * character used when rendering UL elements as Markdown. I have a fix for this, so this is more just a note to myself to create a pull request.

Hope for supporting more inline_css elements!

This is a great plugin for sublime text!
A gift from heaven!
I really appreciate your effort!

This plugin will be much pleasant if it support more inline_css elemetns!
Below is what I need to support:

{"inline_css": {
        "del":"position:relative;display:block",
        "a" : "position: absolute;color: #FFF;text-decoration: none;font-size: 12px;height: 25px;border-radius: 0;margin-top: -30px;right: 15px;background: rgba(0, 0, 0, 0);border-left: 10px solid #BB3A34;border-right: 10px solid #BB3A34;border-bottom: 5px solid rgba(0, 0, 0, 0);width: 0;",
        "div": "line-height: 1.6; font-family: Helvetica Neue, Arial, Hiragino Sans GB, STHeiti, Microsoft YaHei, WenQuanYi Micro Hei, SimSun, Song, sans-serif;",
        "h1" : "font-size: 36px; margin: 0.67em 0; font-family: inherit; font-weight: bold; line-height: 1.1; color: inherit; margin-top: 0px; margin-bottom: 20px;",
        "h3" : "font-family: inherit; font-weight: bold; line-height: 1.1; color: inherit; margin-top: 30px; margin-bottom: 20px; font-size: 24px;",
        "h4" : "font-family: inherit; font-weight: bold; line-height: 1.1; color: inherit; margin-top: 25px; margin-bottom: 15px; font-size: 18px;",
        "p" : "margin: 0 0 10px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word;",
        "strong" : "font-weight: bold;",
        "ul" : "margin-top: 0; margin-bottom: 0; line-height: 1.6;",
        "ol" : "margin-top: 0; margin-bottom: 10px; line-height: 1.6;",
        "li" : "line-height: 1.6;",
        "blockquote": "padding: 15px 20px; margin: 0 0 15px 0; font-size: 14px; border-left: 5px solid #ddd; background-color: rgba(102, 128, 153, 0.05);",
        "hr":   "-moz-box-sizing: content-box; box-sizing: content-box; height: 0; line-height: 1.6; margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid rgba(102, 128, 153, 0.15);",
        "a": "background: transparent;",
        "code": "font-family: Menlo, Monaco, Consolas, Courier New, monospace; font-size: 90%; padding: 2px 4px; color: #c7254e; background-color: #f9f2f4; white-space: nowrap; border-radius: 4px;",
        "pre" : "overflow: initial; font-family: Menlo, Monaco, Consolas, Courier New, monospace; font-size: 14px; display: block; padding: 0; margin: 0 0 10px; line-height: 1.6; word-break: break-all; word-wrap: break-word; color: #333333; background-color: #f5f5f5; border: none; border-radius: 0; white-space: pre-wrap;",
        "span": "color: #a6e22e;",
        "table": "border-collapse: collapse; border-spacing: 0; margin-bottom: 20px;",
        "th": "text-align: left; padding: 8px; line-height: 20px; vertical-align: top; border: 1px solid #DDD;"
    }}

Document new features

The Readme is too long now.
Should migrate detailed info to wiki and put pointers in Readme.
Additionally, the new commands in devel need documentation.

Preserve tables in html2text

As for aaronsw/html2text#55, html2text currently strips the tags in a table.

This is a milder problem here since we only use the script when the note has been changed from other apps but it should be fixed.

Proposal: add a self.verbatim flag that can be used to preserve some html at will.

Open All Notes option

One may want to open all the notes associated with a search/notebook.
Adding an open_all option to the open note command should not be too difficult.

It would also offer a way to solve jamiesun#25

markdown for table is not working

markdown for table is not working in evernote.
like this

|Year | Temperature (low) | Temperature (high) |
| 1900 | -10 | 25 |
| 1910 | -15 | 30 |
| 1920 | -10 | 32 |
| 1920 | -10 | 32 |
| 1920 | -10 | 32 |
| 1920 | -10 | dd2 |

or this

og | bird | cat
:-- | :--: | --:
foo | foo  | foo
bar | bar  | bar
baz | baz  | baz

is that a bug?

Marxico's Way to manage title, notebook and tags

I found the Marxico's method to manage notebook and tags is easy to use. Is there any possibility to add that method?
The detail of that method is:

  1. The first line of note is set default as the Title(without the # symbol)
  2. @(Note) this is interpreted to the notebook. When I input @( there would be a autocomplete of the notebook
  3. [tags1|tags2] this string is interpreted as the tag(two tags)

Evernote Note File Extension

I'm currently saving notes as with a .md extension in sublime text, then manually adding meta data, then sending to evernote. Prior to "sending to evernote" the file type is listed as markdown. After sending to evernote, the file type is "Evernote Note".

In my Evernote.sublime-settings file I set the following option:

"update_on_save": "true"

When I close the note and reopen it, it opens as a markdown file, not an "Evernote Note".
If I update the file, the changes are not automatically synchronized. If I reissue "send to evernote" they are, but again I have to do this every time.

I assume this is because I'm using the standard .md extension (which sublime automatically detects as a "Markdown" filetype, rather than an "Evernote Note." My guess is that there is an evernote note filetype specific file extension that I could use, but I am unsure what it is - I looked through the source, but was unsure where to look for this bindings and did not find it.

Code block background color

I notice the background color for different code_highlighting_style is different, but I think there are something wrong with the "github" style because it does not have background color.

If I change the background_color in "code" of inline_css, it will only change the area behind the text, not the whole div/span.

So is there any way to change the background color of code block?

evernote_premium
evernote_premium

Can't use plug-ins After upgrading to 3065

Hello

You have upgraded to Sublime text3 build 3065, was no longer available plug-ins.

It was a phenomenon that occurred in OSX, but similar error has occurred after the upgrade even Windows.

The following message was being displayed on the console.

Evernote plugin error: unpack requires a bytes object of length 1
error: Evernote plugin error, please contact developer at
https://github.com/bordaigorl/sublime-evernote/issues

Not Using default browser to Open Note in Web App.

Maybe you would like change the open_url method in line:675 in sublime_evernote.py

- self.view.window().run_command("open_url", {"url": url % self.view.settings().get("$evernote_guid")})
+ webbrowser.open_new_tab(url % self.view.settings().get("$evernote_guid"))

Repository cleanup and reconsidering ST2 support

We should decide whether to support Sublime Text 2 or not.
This requires a lot of work and expertise.
I am personally inclined to drop support for ST2 and clean the repo from ST2 related code.

If there's anybody willing to add support for ST2 I'd be glad to know.

Non-ASCII characters are dropped

I wrote a note on my mobile phone using german umlaute (äöü). When I open the note in SublimeEvernote the umlaute are dropped to their normal version (aou).

Settings not populated with Developer API

After generating a developer API key, it is not added to the package settings as the readme suggests. I can't see the syntax for the key documented anywhere to add it in myself?

Support note guid metadata

It could be nice to support a metadata field for the note's guid so that one could maintain a local markdown version of some of his/her notes with full two-way synch facilities.

This needs a "Synch" command that downloads new versions of the note and updates the current view, plus support for user supplied guids in new notes metadata.

Cannot configure plugin for first use

I've just discovered this plugin, and have installed it. But it only gives me one command: "Evernote Settings", not the "Evernote: Reconfigure" or others that are mentioned in the README. When checking the ST3 directory I see in Installed Packages that SublimeEvernote.sublime-package is present. But under Packages there's no equivalent folder. I have tried removing and reinstalling, as well as disabling and re-enabling the package, all to no avail.

I'm running ST3 Build 3059 on Mac OS X 10.9.4.

Evernote "complains" if file contains certain characters (<, >, some regex code too)

I'm writing an article about something that involves regex, here's a line from it:

"file_regex": "(.*?)[(]([0-9]*)[)]",

(yes, silly regex is silly, ignore that!)
When I hit ctrl+s, I see this:

image

I also got a similar error when encasing something in angle brackets, presumably something relating to XML/HTML in evernote. I simply replaced these with </> escape codes (which is rather awkward as I usually forget these codes).

I'm not sure how to fix the first complaint as I don't really know what in that regex is causing the error, or even how to escape it correctly.

No closing </em> error - Grab Evernote Markdown before sync?

I'm getting this error when trying to export a .md file to Evernote. It's probably an issue in my Markdown, rather than an export issue, but is there some way to grab the EML file from this plugin so I can look at it to see where the issue is?

Plugin isn't working behind proxy

If you are using sublime text behind a company proxy, you basically have to set the proxy settings per module right to get this module working right now.

I had to set the company proxy for example for the plugin package control in the settings of the package control, because the sublime own proxy settings were ignored (see https://sublime.wbond.net/docs/settings#setting-http_proxy).

The possibility to set custom proxy settings for this module would be nice. For now, the plugin isn't working behind a proxy, even if the .bash_profile of the user or something similar is set up correctly.

Checkbox does not map correctly to Evernote

If I use a github-style checkbox, it doesn't quite look the same as using checkboxes in Evernote. If I open a note that has Evernote checkboxes in it, the items have a <en-todo/> tag. It would be nice if SublimeEvernote can properly map the github-style checkboxes to and from Evernote en-todos.

Evernote complained

When i am saving html as a note i get this error:
2014-03-13_21h33_46

and this error if its php
2014-03-13_21h35_46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.