门国产乱子视频观看,久激情内射婷内射蜜桃人妖,精品一区二区三区波多野结衣 http://wscjj.cn Sun, 25 Sep 2016 15:29:32 +0000 zh-CN hourly 1 https://wordpress.org/?v=5.7.12 http://wscjj.cn/wp-content/uploads/2016/08/cropped-logo-2-32x32.png Sublime Text 3 – Mac玩兒法 http://wscjj.cn 32 32 Sublime Text 變身 Evernote 大咖 http://wscjj.cn/write-and-save-evernote-by-sublime-text-3 http://wscjj.cn/write-and-save-evernote-by-sublime-text-3#comments Tue, 06 May 2014 08:30:43 +0000 http://wscjj.cn/?p=19736 關(guān)于對(duì)Evernote自帶編輯器的吐糟在網(wǎng)絡(luò)上從來沒有中斷過,比如大象支持HTML格式內(nèi)容的粘貼,但自己卻不能編輯這類內(nèi)容,不能清空文本格式等等,不過抱怨終歸抱怨,能解決問題才是最重要的,而且我想Evernote自己也從來沒有想認(rèn)真改進(jìn)過這個(gè)模塊,更多時(shí)候他只是WebClipper的一個(gè)存儲(chǔ)地(個(gè)人意見),對(duì)于這么一個(gè)龐大的平臺(tái)級(jí)產(chǎn)品,編輯器功能會(huì)交由第三方團(tuán)隊(duì)來做,比如專供Markdown語(yǔ)法的馬克飛象,但今天主角不是他,而是一款名為“sublime-evernote”的Sublime Text插件,如果你是SL的忠實(shí)簇?fù)?,可以嘗試一番,安裝后可在ST上直接同步,編輯,新建Evernote筆記(包括MD格式)。

這款插件有兩個(gè)版本,分別支持SL的第二代第三代

安裝

  1. ?+?+p打開Command Palette,啟動(dòng)Package Control – Install Package,搜索Evernote就可以直接看到2款插件,選擇安裝。
  2. 訪問https://app.yinxiang.com/api/DeveloperToken.action,記錄下網(wǎng)頁(yè)中生成的“Developer Token”。

  1. SL – Preferences – Package Settings – Evernote – Settings User,把Developer Token輸入在底部,完成授權(quán)。

  1. 這里再?gòu)U話幾句,如果你初次接觸Sublime,需要部署Package Control,可以看官方的教程,就是把一段Python代碼粘入命令操作臺(tái)(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)

使用場(chǎng)景

在初次安裝插件時(shí),會(huì)自動(dòng)彈出一個(gè)瀏覽器窗口進(jìn)入Evernote Developer Tokens頁(yè)面,你需要記錄下Developer Tokens并粘貼在Sublime的這個(gè)位置里(數(shù)據(jù)存儲(chǔ)位置:Sublime Text 3/Packages/User/SublimeEvernote.sublime-settings)。如果你想重新配置Token,可以到 Preferences > Package Settings > Evernote > Reconfigure Authorisation 或 使用Command Palette > Evernote: Reconfigure進(jìn)行配置。

自定義功能熱鍵

插件的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)建新筆記,底部輸入筆記標(biāo)題,然后就可以編輯正文了,注意:你可以使用Metadata對(duì)筆記標(biāo)題,標(biāo)簽,所屬筆記本進(jìn)行定義,格式:

---
title: My Note's Title
tags: misc, sublime
notebook: My Notebook
---

Open Note

Command Palette > Evernote: Open Evernote Note 此功能可以直接在SL瀏覽并打開Evernote各個(gè)筆記本下的筆記,所有內(nèi)容會(huì)自動(dòng)以Markdown格式打開,其他文本格式,圖片等附件均會(huì)被消除。

Search Note

Command Palette > Evernote: Search Note 筆記搜索功能,可以參考大象官方Developer文檔編輯自己的關(guān)鍵詞語(yǔ)法。

Update Note

Command Palette > Evernote: Update Evernote Note 筆記編輯

Attach to Note

Command Palette > Evernote: Attach current file to a note 可將當(dāng)前打開的文件嵌入正在編輯的筆記中

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 將當(dāng)前筆記轉(zhuǎn)入Evernote網(wǎng)頁(yè)版打開

設(shè)置

我們可以利用插件的Evernote.sublime-settings(Preferences > Package Settings > Evernote)進(jìn)行更深入的個(gè)性化配置工作,比如:

  1. md_syntax:定義md語(yǔ)法
  2. inline_css:定義部分css元素樣式,包括:pre, code, h1, hr, blockquote,sup
  3. 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
  4. evernote_autocomplete:開啟此項(xiàng),后續(xù)所有筆記在加載時(shí)會(huì)自動(dòng)補(bǔ)全筆記所屬筆記本和標(biāo)簽
  5. notes_order:使用以下條件對(duì)筆記進(jìn)行排序:created, updated, relevance, update_sequence_number, title,或者通過‘notes_order_ascending’來對(duì)順序進(jìn)行顛倒。
]]>
7