關(guān)于對Evernote自帶編輯器的吐糟在網(wǎng)絡(luò)上從來沒有中斷過,比如大象支持HTML格式內(nèi)容的粘貼,但自己卻不能編輯這類內(nèi)容,不能清空文本格式等等,不過抱怨終歸抱怨,能解決問題才是最重要的,而且我想Evernote自己也從來沒有想認真改進過這個模塊,更多時候他只是WebClipper的一個存儲地(個人意見),對于這么一個龐大的平臺級產(chǎn)品,編輯器功能會交由第三方團隊來做,比如專供Markdown語法的馬克飛象,但今天主角不是他,而是一款名為“sublime-evernote”的Sublime Text插件,如果你是SL的忠實簇擁,可以嘗試一番,安裝后可在ST上直接同步,編輯,新建Evernote筆記(包括MD格式)。
安裝
- ?+?+p打開Command Palette,啟動Package Control – Install Package,搜索Evernote就可以直接看到2款插件,選擇安裝。
- 訪問https://app.yinxiang.com/api/DeveloperToken.action,記錄下網(wǎng)頁中生成的“Developer Token”。
- SL – Preferences – Package Settings – Evernote – Settings User,把Developer Token輸入在底部,完成授權(quán)。
- 這里再廢話幾句,如果你初次接觸Sublime,需要部署Package Control,可以看官方的教程,就是把一段Python代碼粘入命令操作臺(CTRL+`)執(zhí)行一下即可:
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
使用場景
在初次安裝插件時,會自動彈出一個瀏覽器窗口進入Evernote Developer Tokens頁面,你需要記錄下Developer Tokens并粘貼在Sublime的這個位置里(數(shù)據(jù)存儲位置:Sublime Text 3/Packages/User/SublimeEvernote.sublime-settings)。如果你想重新配置Token,可以到 Preferences > Package Settings > Evernote > Reconfigure Authorisation 或 使用Command Palette > Evernote: Reconfigure進行配置。
自定義功能熱鍵
插件的keymap案例:
{ "keys": ["super+e"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Evernote: "} },
{ "keys": ["ctrl+e", "ctrl+s"], "command": "send_to_evernote" },
{ "keys": ["ctrl+e", "ctrl+o"], "command": "open_evernote_note" },
{ "keys": ["ctrl+e", "ctrl+u"], "command": "save_evernote_note" },
保存Evernote筆記
{ "keys": ["ctrl+s"], "command": "save_evernote_note", "context": [{"key": "evernote_note"}] },
{ "keys": ["ctrl+s"], "command": "send_to_evernote", "context": [{"key": "evernote_note", "operator": "equal", "operand": false}, {"key": "selector", "operator": "equal", "operand": "text.html.markdown.evernote"}] },
下面一起來看看在CP下引入的插件功能:
Send to Evernote
Command Palette > Evernote: Send to Evernote
主要功能:創(chuàng)建新筆記,底部輸入筆記標題,然后就可以編輯正文了,注意:你可以使用Metadata對筆記標題,標簽,所屬筆記本進行定義,格式:
---
title: My Note's Title
tags: misc, sublime
notebook: My Notebook
---
Open Note
Command Palette > Evernote: Open Evernote Note 此功能可以直接在SL瀏覽并打開Evernote各個筆記本下的筆記,所有內(nèi)容會自動以Markdown格式打開,其他文本格式,圖片等附件均會被消除。
Search Note
Command Palette > Evernote: Search Note 筆記搜索功能,可以參考大象官方Developer文檔編輯自己的關(guān)鍵詞語法。
Update Note
Command Palette > Evernote: Update Evernote Note 筆記編輯
Attach to Note
Command Palette > Evernote: Attach current file to a note 可將當前打開的文件嵌入正在編輯的筆記中
Clip as new Note
Command Palette > Evernote: Clip to Evernote as a new note 將剪切板的內(nèi)容直接作為新筆記創(chuàng)建出來
View note in WebApp
Command Palette > Evernote: View note in WebApp 將當前筆記轉(zhuǎn)入Evernote網(wǎng)頁版打開
設(shè)置
我們可以利用插件的Evernote.sublime-settings(Preferences > Package Settings > Evernote)進行更深入的個性化配置工作,比如:
- md_syntax:定義md語法
- inline_css:定義部分css元素樣式,包括:pre, code, h1, hr, blockquote,sup
- code_highlighting_style:提供了豐富的代碼高亮樣式,可定義的包括:autumn, default, github, monokai, perldoc, vim, borland, emacs, igor, murphy, rrt, vs, bw, friendly, native, tango, xcode, colorful, fruity, manni, pastie, trac
- evernote_autocomplete:開啟此項,后續(xù)所有筆記在加載時會自動補全筆記所屬筆記本和標簽
- notes_order:使用以下條件對筆記進行排序:created, updated, relevance, update_sequence_number, title,或者通過‘notes_order_ascending’來對順序進行顛倒。
michael_翔
博主,為何我按照這么做,最后同步到印象筆記時,連最近本的
加文字 這種標題格式都沒顯示出來的,其他的,引用什么的,效果都出來了
2015-11-09 16:48
萬事屋
沒想到能在這里搜到。感謝mac玩法!
2015-06-16 08:18
亦然__
神器配神器神馬的太爽了?。≡捳f現(xiàn)在Code筆記不是直接SL云過去了嗎?。?!
2014-05-11 22:13
ahui
好高級的樣子。但是這個寫的覺著好復(fù)雜
2014-05-08 20:10
skystar
好專業(yè)的插件,不過Evernote的確是支持去除格式的啊,而且還有兩檔可選。普通的編輯也是支持的。倒是HTML粘貼以后圖片都沒了,也不能導(dǎo)入,不知道怎么解決?
2014-05-06 22:39
白手套
windows下就沒有好用的markdown編輯器
2014-05-06 17:16
玩兒法
這個不必糾結(jié),許多Web App也可以勝任。
2014-05-06 21:04