Last active
January 16, 2016 01:05
-
-
Save zsytssk/2da0d26fbc65f3969245 to your computer and use it in GitHub Desktop.
automatic update by http://atom.io/packages/sync-settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# user | |
# 复制文件名 | |
user = require './inits/zsy' | |
# user = require './inits/atom-evernote/main' | |
# user = require './inits/expandselect' | |
atom.commands.add 'atom-workspace', | |
'user:test': (event) -> test(event) | |
test=(event) -> | |
atom.commands.dispatch(atom.views.getView(atom.workspace.getActiveTextEditor()), 'user:evernote-test') | |
return | |
# activeEditcontent = atom.views.getView(atom.workspace.getActiveTextEditor()).shadowRoot.querySelector('.editor--private') | |
# activeEditcontent.onmousedown =(event) -> | |
# # 监听鼠标中键事件 | |
# if event.button != 1 | |
# return true | |
# console.log event.target.innerText | |
# editor = atom.workspace.getActiveTextEditor() | |
# cursorMoved = false | |
# for cursor in editor.getCursors() | |
# range = cursor.getCurrentWordBufferRange(wordRegex: SymbolRegex) | |
# console.log range | |
# unless range.isEmpty() | |
# cursor.setBufferPosition(range.end) | |
# cursorMoved = true | |
# event.abortKeyBinding() unless cursorMoved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 复制图片的大小 | |
-> 将光标放在 图片文件的路劲上面 | |
-> 点击快捷键, 将图片的大小复制到 剪贴板上面 | |
## expand select | |
-> 向前 向后寻找 [], (), {} | |
-| 先在 当前行 寻找 向前寻找,如果找不到,向后寻找 | |
-| 还是找不到,继续向前找 一直要找到为止 | |
-| 找到之后 再向后寻找他的match | |
---&&--- | |
-> 如果找到记录 位置,以及 match 对象 | |
-? 如何将自己的快捷键定义在第一位 | |
---&&--- | |
-> " ' 如果不在 quote里面 不做考虑 | |
---&&--- | |
-| "inside" 先选择inside,然后包括 " 然后再去寻找其他的 | |
## open Path | |
-| 下划线 用中键 打开 | |
-> 必须找到相应的文字 | |
-> 必须将文字用 span.open-path 包裹起来 | |
---&&--- | |
-> create Dom | |
-> 其他的都好办 | |
-> 这样在每次页面加载的时候都需要遍历整个页面 | |
-> 会不会带来性能问题 | |
## 问题 | |
-| 怎么打开panel | |
-| 如何筛选 | |
-| 太慢了 | |
-> https://github.com/atom/fuzzy-finder 借用这里的代码 | |
---&&--- | |
-| 解决思路 提取10个之后立即 提交 同时在后台在继续遍历 | |
-> 只显示10个在上面 筛选框中 | |
-? 如何在 输入的时候 再去筛选 | |
---&&--- | |
-| fuzzy-finder 好像只需要一次 搜索 下次 执行命令 就不需要再去搜索所有文件了 | |
-> 这个搜索的结果保存在什么地方 | |
---&&--- | |
-| 在搜索的时候如何显示搜索信息 | |
☐ 参考 | |
-| https://github.com/atom/atom-space-pen-views | |
-> 高亮 可以参考 project folder | |
getProjectFolder: -> | |
allPath = [] | |
for projectPath in atom.project.getPaths() | |
# listSync 只能遍历当前文件夹 文件 | |
project_paths = _fs.listTreeSync(projectPath) | |
allPath.push.apply(allPath, project_paths) | |
console.log project_paths | |
return allPath.slice(0, 10) | |
## pane | |
-| 和sublime 上面还有差距 | |
-> 首先列出 我有哪些具体的需求 然后再看 能不能优化这些需求 | |
---&--- | |
-| split to left 如果left没有pane, 就创建一个pane | |
-| 如果有就直接将文件移动过去就可以了 | |
☐ split panel 关闭原文件 | |
-> 等待系统支持 | |
atom.workspace.onDidAddPane (pane) -> | |
eitor = pane.pane.items[0] | |
panes = atom.workspace.getPanes() | |
for pane in panes | |
paneEditors = pane.getItems() | |
for item in paneEditors | |
if item is eitor or item.getPath() != eitor.getPath() | |
continue | |
else | |
pane.destroyItem(item) | |
## ctrl+shift+d | |
-| 只能以行为单位进行复制 | |
-| 能不能判断 如果只在一行的话,就复制这部分, 然后将原来的事件禁用掉 | |
# 插入字符 | |
-| 移动到行首再去插入字符, 这样需要重新的移动光标 | |
-| 行首 行尾 插入的字符 都可以用参数表示 就好了 | |
---&&--- | |
-| 不能重复添加 修改已经添加的 | |
---&&--- | |
-| 行尾添加两个空格 | |
## exec == BufferedProcess | |
stdout = (line) -> console.log(line) | |
stderr = (line) -> console.log(line) | |
exit = (code) -> console.log("The process exited with code: #{code}") | |
args = ["#{@path}"] | |
process = new BufferedProcess({'start', args, stderr, exit}) | |
exec "#{@path}" | |
## keymap | |
-| "atom-text-editor[data-grammar='source js']": 只对js文件 | |
## 快捷键禁用 vim 插件 | |
-| 我有一个想法 | |
-> 如果我只需要vim mode 来移动或者选择字符 其他的功能我不需要 | |
-> 这就需要一键开启关闭 vim 模式 | |
-? 如何实现这一功能 | |
https://atom.io/docs/api/v1.2.4/PackageManager | |
## 需要的功能 | |
-| evernote | |
-| zsy_convert_to_rem | |
-| auhotkey 切换 | |
---&&--- | |
-| 选择 匹配 " [ { , 一个快捷键 | |
-| 而且能够扩大选区, 不包含 ", 包含 寻找上一层 | |
## evernote | |
☐ 需要的功能 | |
-> 删除 添加 搜索 ... 功能 | |
-> 查看 | |
☐ 原理 | |
-> 利用api 从evernote 服务器拿到脚本 | |
-> 将源码渲染在本地, 将 id ... 绑定到 texteditor 上 | |
## menu | |
atom.menu.add [ | |
{ | |
'label': 'View' | |
'submenu': [ | |
{ 'label': 'aaa', 'command': 'tree-view:toggle' } | |
] | |
} | |
] | |
atom.contextMenu.add { | |
'atom-text-editor': [{ | |
label: 'Bookmark', | |
command: 'my-package:toggle' | |
}] | |
} | |
## 问题 | |
'whitespace:remove-trailing-whitespace' | |
这个没作用 | |
## 保存 | |
☐ csscomb | |
"always-semicolon": true | |
"block-indent": "\t" | |
"colon-space": [0, 1] | |
"color-case": "lower" | |
"color-shorthand": true | |
"combinator-space": [1, 1] | |
"element-case": "lower" | |
"eof-newline": true | |
"leading-zero": true | |
"quotes": "single" | |
"remove-empty-rulesets": true | |
"rule-indent": 1 | |
"sort-order": ["..."] | |
"sort-order-fallback": "abc" | |
"space-after-colon": 1 | |
"space-after-declaration": 1 | |
"space-after-opening-brace": "\n" | |
"space-before-closing-brace": "\n" | |
"space-before-selector-delimiter": 0 | |
"stick-brace": 1 | |
"strip-spaces": true | |
"unitless-zero": true | |
"vendor-prefix-align": true | |
☐ keymap | |
'alt-shift-p': 'project-viewer:toggle' | |
'alt-p': 'user:toggle-project-viewer' | |
'alt-insert': 'user:toggle-vim-mode' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path = require 'path' | |
shell = require 'shell' | |
atom.commands.add 'atom-workspace', | |
'user:command-palette(syn settings: )': (event) -> commandPaletteInsert(event) | |
atom.commands.add 'atom-text-editor', | |
'user:insert-bol->': (event) -> insertText.run('-> ', 'bol') | |
'user:insert-bol-#': (event) -> insertText.run('# ', 'bol') | |
'user:insert-bol-##': (event) -> insertText.run('## ', 'bol') | |
'user:insert-bol-?': (event) -> insertText.run('-? ', 'bol') | |
'user:insert-bol-|': (event) -> insertText.run('-| ', 'bol') | |
'user:insert-bol-☐': (event) -> insertText.run('☐ ', 'bol') | |
'user:insert-bol-;': (event) -> insertText.run(';', 'eol') | |
'user:insert-bol-&': (event) -> insertText.run('---&&---') | |
'user:insert-bol-:>': (event) -> insertText.run(':> ') | |
'user:copy-file-name': (event, editor) -> userCopy(event, @getModel(), 'filename') | |
'user:copy-file-path': (event, editor) -> userCopy(event, @getModel(), 'filepath') | |
'user:insert-date': (event) -> inserDate(@getModel()) | |
'user:close-other-pane': (event) -> closeOtherPane() | |
'user:open-in-default-app': (event) -> openFileInDefaultApp(@getModel().getPath()) | |
'user:close-all': (event) -> closeAll() | |
'user:open-container-folder': (event) -> openFolderInExplorer(@getModel().getPath()) | |
'user:toggle-project-viewer': (event) -> togglePackage('project-viewer') | |
'user:toggle-vim-mode': (event) -> togglePackage('vim-mode') | |
commandPaletteInsert=(event)-> | |
if not match = event.type?.match(/\(([^\)]+)\)/) | |
return | |
para = match[1] | |
workspaceElement = atom.views.getView(atom.workspace) | |
atom.commands.dispatch(atom.views.getView(atom.workspace), 'command-palette:toggle') | |
paletteEditor = workspaceElement.querySelector('.command-palette atom-text-editor').getModel() | |
paletteEditor.setText(para) | |
class insertText | |
@inserchar_arr: ['->', '-|', '-?', '#', '##'] | |
@constructor=() -> | |
@containchar=(txt) -> | |
for char in @inserchar_arr | |
if txt.indexOf(char) == 0 | |
return char | |
return false | |
@run=(text, pos) -> | |
editor = atom.workspace.getActiveTextEditor() | |
cursorPs = editor.getCursorBufferPositions() | |
if not pos | |
editor.insertText(text) | |
return | |
buffer = editor.buffer | |
for point in cursorPs | |
if pos is 'bol' | |
if conchar = @containchar(buffer.lineForRow(point.row)) | |
posS = [point.row, 0] | |
posP = [point.row, conchar.length + 1] | |
range = [posS, posP] | |
else | |
posP = [point.row, 0] | |
range = [posP, posP] | |
else | |
posP = [point.row, buffer.lineForRow(point.row) - 1] | |
range = [posP, posP] | |
buffer.setTextInRange(range, text) | |
return | |
userCopy=(event, editor, type)-> | |
if type == 'filename' | |
atom.clipboard.write(editor.getTitle()) | |
else if type == 'filepath' | |
atom.clipboard.write(editor.getPath()) | |
inserDate =(@editor) -> | |
now = new Date() | |
date = now.getFullYear() | |
date += '/' + (now.getMonth() + 1) | |
date += '/' + now.getDate() | |
time = now.getHours() | |
mi = now.getUTCMinutes() | |
time += ':' + if mi < 10 then '0' + mi else mi | |
@editor.insertText(date + ' ' + time) | |
closeOtherPane =() -> | |
panes = atom.workspace.getPanes() | |
activePane = atom.workspace.getActivePane() | |
for pane in panes | |
console.log pane | |
pane.destroy() if pane isnt activePane | |
closeAll =() -> | |
panes = atom.workspace.getPanes() | |
for pane in panes | |
pane.destroy() | |
openFileInDefaultApp=(@path) -> | |
shell.openItem("#{@path}") | |
openFolderInExplorer=(@path) -> | |
shell.showItemInFolder(@path) | |
togglePackage=(packagename) -> | |
if atom.packages.isPackageDisabled(packagename) | |
atom.packages.enablePackage(packagename) | |
else | |
atom.packages.disablePackage(packagename) | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can find more information about keymaps in these guides: | |
# * https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings | |
# * https://atom.io/docs/latest/behind-atom-keymaps-in-depth | |
# Atom Flight Manual: | |
# https://atom.io/docs/latest/using-atom-basic-customization#cson | |
'.tree-view': | |
'alt-o': 'tree-view:show-in-file-manager' | |
'atom-text-editor:not([mini])': | |
'alt-o': 'user:open-container-folder' | |
'alt-c': 'user:copy-file-name' | |
'ctrl-alt-c': 'user:copy-file-path' | |
'atom-workspace': | |
# test | |
'alt-t': 'user:test' | |
'ctrl-b': 'expose:toggle' | |
'ctrl-k ctrl-s': 'user:command-palette(syn settings: )' | |
'ctrl-shift-a': 'activate-power-mode:toggle' | |
'ctrl-alt-o': 'application:add-project-folder' | |
'.platform-win32 atom-workspace atom-text-editor:not([mini]), .platform-linux atom-workspace atom-text-editor:not([mini])': | |
'ctrl-`': 'settings-view:open' | |
'alt-\'': 'expand-selection-to-quotes:toggle' | |
'ctrl-alt-f': 'editor:auto-indent' | |
'ctrl-alt-g': 'whitespace:convert-spaces-to-tabs' | |
'ctrl-\\': 'tree-view:reveal-active-file' | |
'ctrl-\\': 'tree-view:reveal-active-file' | |
'ctrl-alt-w': 'tabs:close-other-tabs' | |
'ctrl-k ctrl-alt-w': 'user:close-other-pane' | |
'ctrl-alt-shift-w': 'user:close-all' | |
# 移动 | |
'alt-h': 'editor:move-to-beginning-of-word' | |
'alt-l': 'editor:move-to-beginning-of-next-word' | |
'alt-k': 'core:move-up' | |
'alt-j': 'core:move-down' | |
'alt-m alt-l': 'editor:move-to-end-of-line' | |
'alt-m alt-h': 'editor:move-to-beginning-of-line' | |
'alt-m alt-k': 'core:move-to-top' | |
'alt-m alt-j': 'core:move-to-bottom' | |
'ctrl-shift-m': 'expand-selection-to-quotes:toggle' | |
# emmet | |
'ctrl-shift-m': 'emmet:balance-outward' | |
'ctrl-alt-;': 'emmet:remove-tag' | |
'ctrl-e': 'emmet:expand-abbreviation' | |
'ctrl-alt-v': 'clipboard-plus:toggle' | |
# init commnad | |
'f5': 'user:insert-date' | |
'f12': 'user:open-in-default-app' | |
'atom-text-editor[data-grammar="source gfm"], atom-text-editor[data-grammar="text plain null-grammar"]': | |
# insert text | |
'alt-\>': 'user:insert-bol->' | |
'alt-\.': 'user:insert-bol-:>' | |
'alt-\;': 'user:insert-bol-;' | |
'alt-enter': 'user:insert-bol-#' | |
'alt-#': 'user:insert-bol-##' | |
'alt-?': 'user:insert-bol-?' | |
'alt-|': 'user:insert-bol-|' | |
'alt-&': 'user:insert-bol-&' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "activate-power-mode", | |
"version": "0.4.1" | |
}, | |
{ | |
"name": "atom-material-ui", | |
"version": "0.8.0", | |
"theme": "ui" | |
}, | |
{ | |
"name": "autocomplete-paths", | |
"version": "1.0.2" | |
}, | |
{ | |
"name": "clipboard-plus", | |
"version": "0.5.1" | |
}, | |
{ | |
"name": "csscomb", | |
"version": "0.3.1" | |
}, | |
{ | |
"name": "emmet", | |
"version": "2.3.17" | |
}, | |
{ | |
"name": "expand-selection-to-quotes", | |
"version": "0.7.0" | |
}, | |
{ | |
"name": "expose", | |
"version": "0.11.1" | |
}, | |
{ | |
"name": "file-icons", | |
"version": "1.6.13" | |
}, | |
{ | |
"name": "highlight-selected", | |
"version": "0.11.1" | |
}, | |
{ | |
"name": "jshint", | |
"version": "1.8.3" | |
}, | |
{ | |
"name": "minimap", | |
"version": "4.19.0" | |
}, | |
{ | |
"name": "open-path", | |
"version": "0.3.5" | |
}, | |
{ | |
"name": "project-manager", | |
"version": "2.7.3" | |
}, | |
{ | |
"name": "sync-settings", | |
"version": "0.6.0" | |
}, | |
{ | |
"name": "zsy-fuzzy-finder", | |
"version": "0.1.0" | |
}, | |
{ | |
"name": "atom-dark-syntax", | |
"version": "0.27.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "atom-dark-ui", | |
"version": "0.51.0", | |
"theme": "ui" | |
}, | |
{ | |
"name": "atom-light-syntax", | |
"version": "0.28.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "atom-light-ui", | |
"version": "0.43.0", | |
"theme": "ui" | |
}, | |
{ | |
"name": "base16-tomorrow-dark-theme", | |
"version": "1.0.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "base16-tomorrow-light-theme", | |
"version": "1.0.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "one-dark-ui", | |
"version": "1.1.8", | |
"theme": "ui" | |
}, | |
{ | |
"name": "one-dark-syntax", | |
"version": "1.1.1", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "one-light-syntax", | |
"version": "1.1.1", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "one-light-ui", | |
"version": "1.1.8", | |
"theme": "ui" | |
}, | |
{ | |
"name": "solarized-dark-syntax", | |
"version": "0.39.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "solarized-light-syntax", | |
"version": "0.23.0", | |
"theme": "syntax" | |
}, | |
{ | |
"name": "about", | |
"version": "1.3.0" | |
}, | |
{ | |
"name": "archive-view", | |
"version": "0.61.0" | |
}, | |
{ | |
"name": "autocomplete-atom-api", | |
"version": "0.9.2" | |
}, | |
{ | |
"name": "autocomplete-css", | |
"version": "0.11.0" | |
}, | |
{ | |
"name": "autocomplete-html", | |
"version": "0.7.2" | |
}, | |
{ | |
"name": "autocomplete-plus", | |
"version": "2.25.0" | |
}, | |
{ | |
"name": "autocomplete-snippets", | |
"version": "1.9.0" | |
}, | |
{ | |
"name": "autoflow", | |
"version": "0.26.0" | |
}, | |
{ | |
"name": "autosave", | |
"version": "0.23.0" | |
}, | |
{ | |
"name": "background-tips", | |
"version": "0.26.0" | |
}, | |
{ | |
"name": "bookmarks", | |
"version": "0.38.0" | |
}, | |
{ | |
"name": "bracket-matcher", | |
"version": "0.79.0" | |
}, | |
{ | |
"name": "command-palette", | |
"version": "0.38.0" | |
}, | |
{ | |
"name": "deprecation-cop", | |
"version": "0.54.0" | |
}, | |
{ | |
"name": "dev-live-reload", | |
"version": "0.47.0" | |
}, | |
{ | |
"name": "encoding-selector", | |
"version": "0.21.0" | |
}, | |
{ | |
"name": "exception-reporting", | |
"version": "0.37.0" | |
}, | |
{ | |
"name": "find-and-replace", | |
"version": "0.194.0" | |
}, | |
{ | |
"name": "fuzzy-finder", | |
"version": "0.94.0" | |
}, | |
{ | |
"name": "git-diff", | |
"version": "0.57.0" | |
}, | |
{ | |
"name": "go-to-line", | |
"version": "0.30.0" | |
}, | |
{ | |
"name": "grammar-selector", | |
"version": "0.48.0" | |
}, | |
{ | |
"name": "image-view", | |
"version": "0.56.0" | |
}, | |
{ | |
"name": "incompatible-packages", | |
"version": "0.25.0" | |
}, | |
{ | |
"name": "keybinding-resolver", | |
"version": "0.33.0" | |
}, | |
{ | |
"name": "line-ending-selector", | |
"version": "0.3.0" | |
}, | |
{ | |
"name": "link", | |
"version": "0.31.0" | |
}, | |
{ | |
"name": "markdown-preview", | |
"version": "0.157.0" | |
}, | |
{ | |
"name": "metrics", | |
"version": "0.53.1" | |
}, | |
{ | |
"name": "notifications", | |
"version": "0.62.1" | |
}, | |
{ | |
"name": "open-on-github", | |
"version": "0.40.0" | |
}, | |
{ | |
"name": "package-generator", | |
"version": "0.41.0" | |
}, | |
{ | |
"name": "settings-view", | |
"version": "0.232.1" | |
}, | |
{ | |
"name": "snippets", | |
"version": "1.0.1" | |
}, | |
{ | |
"name": "spell-check", | |
"version": "0.63.0" | |
}, | |
{ | |
"name": "status-bar", | |
"version": "0.80.0" | |
}, | |
{ | |
"name": "styleguide", | |
"version": "0.45.0" | |
}, | |
{ | |
"name": "symbols-view", | |
"version": "0.110.1" | |
}, | |
{ | |
"name": "tabs", | |
"version": "0.88.0" | |
}, | |
{ | |
"name": "timecop", | |
"version": "0.33.0" | |
}, | |
{ | |
"name": "tree-view", | |
"version": "0.198.0" | |
}, | |
{ | |
"name": "update-package-dependencies", | |
"version": "0.10.0" | |
}, | |
{ | |
"name": "welcome", | |
"version": "0.33.0" | |
}, | |
{ | |
"name": "whitespace", | |
"version": "0.32.1" | |
}, | |
{ | |
"name": "wrap-guide", | |
"version": "0.38.1" | |
}, | |
{ | |
"name": "language-c", | |
"version": "0.51.1" | |
}, | |
{ | |
"name": "language-clojure", | |
"version": "0.19.0" | |
}, | |
{ | |
"name": "language-coffee-script", | |
"version": "0.46.0" | |
}, | |
{ | |
"name": "language-csharp", | |
"version": "0.11.0" | |
}, | |
{ | |
"name": "language-css", | |
"version": "0.36.0" | |
}, | |
{ | |
"name": "language-gfm", | |
"version": "0.82.0" | |
}, | |
{ | |
"name": "language-git", | |
"version": "0.11.0" | |
}, | |
{ | |
"name": "language-go", | |
"version": "0.42.0" | |
}, | |
{ | |
"name": "language-html", | |
"version": "0.43.1" | |
}, | |
{ | |
"name": "language-hyperlink", | |
"version": "0.16.0" | |
}, | |
{ | |
"name": "language-java", | |
"version": "0.17.0" | |
}, | |
{ | |
"name": "language-javascript", | |
"version": "0.104.0" | |
}, | |
{ | |
"name": "language-json", | |
"version": "0.17.2" | |
}, | |
{ | |
"name": "language-less", | |
"version": "0.29.0" | |
}, | |
{ | |
"name": "language-make", | |
"version": "0.21.0" | |
}, | |
{ | |
"name": "language-mustache", | |
"version": "0.13.0" | |
}, | |
{ | |
"name": "language-objective-c", | |
"version": "0.15.1" | |
}, | |
{ | |
"name": "language-perl", | |
"version": "0.32.0" | |
}, | |
{ | |
"name": "language-php", | |
"version": "0.34.0" | |
}, | |
{ | |
"name": "language-property-list", | |
"version": "0.8.0" | |
}, | |
{ | |
"name": "language-python", | |
"version": "0.42.1" | |
}, | |
{ | |
"name": "language-ruby", | |
"version": "0.65.0" | |
}, | |
{ | |
"name": "language-ruby-on-rails", | |
"version": "0.24.0" | |
}, | |
{ | |
"name": "language-sass", | |
"version": "0.45.0" | |
}, | |
{ | |
"name": "language-shellscript", | |
"version": "0.21.0" | |
}, | |
{ | |
"name": "language-source", | |
"version": "0.9.0" | |
}, | |
{ | |
"name": "language-sql", | |
"version": "0.20.0" | |
}, | |
{ | |
"name": "language-text", | |
"version": "0.7.0" | |
}, | |
{ | |
"name": "language-todo", | |
"version": "0.27.0" | |
}, | |
{ | |
"name": "language-toml", | |
"version": "0.18.0" | |
}, | |
{ | |
"name": "language-xml", | |
"version": "0.34.2" | |
}, | |
{ | |
"name": "language-yaml", | |
"version": "0.25.0" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"activate-power-mode": { | |
"screenShake": { | |
"enabled": false | |
} | |
}, | |
"atom-beautify": { | |
"_analyticsUserId": "474050e3-4d7c-498f-976f-272f4d154814", | |
"css_align_assignments": true, | |
"css_convert_quotes": "single", | |
"css_force_indentation": true, | |
"css_indent_size": 1, | |
"js_indent_with_tabs": true, | |
"js_keep_array_indentation": true | |
}, | |
"atom-material-ui": { | |
"fonts": {}, | |
"panels": { | |
"depth": true | |
}, | |
"tabs": { | |
"rippleAccentColor": true, | |
"tabMinWidth": true | |
}, | |
"treeView": { | |
"compactList": false | |
}, | |
"ui": { | |
"animations": true, | |
"panelContrast": true, | |
"slimScrollbar": true | |
} | |
}, | |
"autocomplete-plus": {}, | |
"autosave": { | |
"enabled": true | |
}, | |
"clipboard-plus": { | |
"limit": 10 | |
}, | |
"command-palette": { | |
"useAlternateScoring": true | |
}, | |
"core": { | |
"autoHideMenuBar": true, | |
"themes": [ | |
"atom-material-ui", | |
"solarized-dark-syntax" | |
] | |
}, | |
"csscomb": { | |
"always-semicolon": true, | |
"block-indent": "\t", | |
"colon-space": [ | |
0, | |
1 | |
], | |
"color-case": "lower", | |
"color-shorthand": true, | |
"combinator-space": [ | |
1, | |
1 | |
], | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "single", | |
"remove-empty-rulesets": true, | |
"rule-indent": 1, | |
"sort-order": [ | |
"..." | |
], | |
"sort-order-fallback": "abc", | |
"space-after-colon": 1, | |
"space-after-declaration": 1, | |
"space-after-opening-brace": " \n ", | |
"space-before-closing-brace": " \n ", | |
"space-before-selector-delimiter": 0, | |
"stick-brace": 1, | |
"strip-spaces": true, | |
"unitless-zero": true, | |
"vendor-prefix-align": true | |
}, | |
"date": {}, | |
"editor": { | |
"fontFamily": "'Source Code Pro', '思源黑体'", | |
"fontSize": 15, | |
"invisibles": {}, | |
"nonWordCharacters": "./\\\\()\\\"':,;<>~!@#$%^&*|+=[]{}`~?", | |
"showInvisibles": true | |
}, | |
"emmet": {}, | |
"exception-reporting": { | |
"userId": "3d59c576-2d94-43eb-7d84-196736cacdc9" | |
}, | |
"fuzzy-finder": { | |
"preserveLastSearch": true | |
}, | |
"highlight-selected": { | |
"hideHighlightOnSelectedWord": true | |
}, | |
"jshint": {}, | |
"minimap": {}, | |
"one-dark-ui": {}, | |
"project-manager": { | |
"closeCurrent": true | |
}, | |
"status-bar": {}, | |
"tabs": { | |
"usePreviewTabs": true | |
}, | |
"travis-ci-status": {}, | |
"tree-view": { | |
"hideIgnoredNames": true, | |
"hideVcsIgnoredFiles": true | |
}, | |
"tree-view-open-files": {}, | |
"vim-mode": {}, | |
"welcome": { | |
"showOnStartup": false | |
}, | |
"whitespace": {}, | |
"zsy-finder": { | |
"preserveLastSearch": true | |
}, | |
"zsy-fuzzy-finder": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# | |
# '.source.coffee': | |
# 'Console log': | |
# 'prefix': 'log' | |
# 'body': 'console.log $1' | |
# | |
# Each scope (e.g. '.source.coffee' above) can only be declared once. | |
# | |
# This file uses CoffeeScript Object Notation (CSON). | |
# If you are unfamiliar with CSON, you can read more about it in the | |
# Atom Flight Manual: | |
# https://atom.io/docs/latest/using-atom-basic-customization#cson | |
'.text.html': | |
'html:t': | |
'prefix': 'html:test' | |
'body': ''' | |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>test</title> | |
<!-- css --> | |
<style> | |
</style> | |
<!-- js --> | |
<script src="http://libs.baidu.com/jquery/2.0.3/jquery.min.js"></script> | |
</head> | |
<body> | |
${1} | |
<script> | |
${2} | |
</script> | |
</body> | |
</html> | |
''' | |
'html:n': | |
'prefix': 'html:normal' | |
'body': ''' | |
<!DOCTYPE HTML> | |
<!--[if IE 6 ]><html class="ie6"> <![endif]--> | |
<!--[if IE 7 ]><html class="ie7"> <![endif]--> | |
<!--[if IE 8 ]><html class="ie8"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--> | |
<html lang="zh-CN"> | |
<!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>第一数码</title> | |
<link rel="stylesheet" href="style/base.css" media="all" /> | |
<link rel="stylesheet" href="style/style.css" media="all" /> | |
<!--[if (gte IE 9)|!(IE)]><!--> | |
<script src="js/jquery-2.1.3.min.js"></script> | |
<!--<![endif]--> | |
<!--[if lt IE 9 ]> | |
<link rel="stylesheet" href="other/ie/ie.css" media="all" /> | |
<script src="other/ie/html5.js"></script> | |
<script src="other/ie/jquery-1.11.2.min.js"></script> | |
<script src="other/ie/ie.js"></script> | |
<![endif]--> | |
</head> | |
<body> | |
<section class="Index"> | |
<!-- head --> | |
<header class="header"></header> | |
<!-- /head --> | |
<!-- content --> | |
<section class="content"> | |
</section> | |
<!-- /content --> | |
<!-- footer --> | |
<footer class="footer"></footer> | |
<!-- /footer --> | |
</section> | |
</body> | |
</html> | |
''' | |
'.source.css': | |
'ellipsis': | |
'prefix': 'ellipsis' | |
'body': ''' | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
''' | |
'.text.plain': | |
'mklink': | |
'prefix': 'mklink' | |
'body': 'mklink /${1:d} "${2:目标文件}" "${3:源文件}"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@color: @text-color-info; | |
atom-text-editor { | |
text-rendering: optimizeLegibility; | |
} | |
atom-text-editor::shadow { | |
// link | |
.link { | |
text-decoration: underline; | |
} | |
// hightlight current line | |
.line.cursor-line { | |
background: @background-color-highlight; | |
} | |
// 空格tab 样式 | |
.invisible-character { | |
color: transparent; | |
opacity: 0.2; | |
&.trailing-whitespace, | |
&.leading-whitespace { | |
color: @color; | |
position: relative; | |
} | |
&.hard-tab { | |
color: transparent; | |
position: relative; | |
&:before { | |
border-bottom: 1px solid @color; | |
content: ''; | |
left: 1px; | |
position: absolute; | |
right: 1px; | |
top: 50%; | |
} | |
} | |
} | |
} | |
// minimap | |
atom-text-editor .vertical-scrollbar, | |
atom-text-editor::shadow .vertical-scrollbar { | |
opacity: 0; | |
width: 0; | |
} | |
atom-text-editor atom-text-editor-minimap::shadow .minimap-scroll-indicator, | |
atom-text-editor::shadow atom-text-editor-minimap::shadow .minimap-scroll-indicator { | |
background-color: green; | |
} | |
// material ui | |
.tab-size-normal .tree-view .project-root.list-nested-item::before, | |
.tab-size-normal .tree-view .project-root.list-nested-item > div { | |
height: 35px; | |
line-height: 35px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment