Skip to content

Instantly share code, notes, and snippets.

@kylpo
Last active August 3, 2017 01:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylpo/95d9888e88a033c5ae64cc4e841f2296 to your computer and use it in GitHub Desktop.
Save kylpo/95d9888e88a033c5ae64cc4e841f2296 to your computer and use it in GitHub Desktop.
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# console.log "Saved! #{editor.getPath()}"
# workspace
'atom-workspace:not([mini])':
'ctrl-g': 'core:cancel'
'ctrl-[': 'core:cancel'
# This key override window:toggle-full-screen(I'm not using it).
'ctrl-cmd-f': 'project-find-navigation:activate-results-pane'
'ctrl-cmd-n': 'project-find-navigation:next'
'ctrl-cmd-p': 'project-find-navigation:prev'
# text-editor
'atom-text-editor:not([mini])':
'ctrl-i': 'cursor-history:next'
'ctrl-o': 'cursor-history:prev'
'ctrl-cmd-i': 'cursor-history:next-within-editor'
'ctrl-cmd-o': 'cursor-history:prev-within-editor'
# text-editor.mini
'atom-text-editor[mini]':
'ctrl-u': 'editor:delete-to-beginning-of-line'
'ctrl-w': 'editor:delete-to-beginning-of-word'
# normal
'atom-text-editor.vim-mode-plus.normal-mode':
'ctrl-j': 'window:focus-pane-below'
'ctrl-k': 'window:focus-pane-above'
'ctrl-h': 'window:focus-pane-on-left'
'ctrl-l': 'window:focus-pane-on-right'
'space j': 'pane:split-down-and-copy-active-item'
'space k': 'pane:split-up-and-copy-active-item'
'space h': 'pane:split-left-and-copy-active-item'
'space l': 'pane:split-right-and-copy-active-item'
'g f': 'open-this:here'
'ctrl-w f': 'open-this:split-down'
'ctrl-w F': 'open-this:split-right'
'g x': 'link:open'
'cmd-enter': 'vim-mode-plus:maximize-pane'
'ctrl-g': 'vim-mode-plus:reset-normal-mode'
'cmd-z': 'vim-mode-plus:toggle-fold'
'g c': 'vim-mode-plus:select-latest-change'
'S': 'vim-mode-plus:surround-smart-word'
'y s': 'vim-mode-plus:surround'
'm s': 'vim-mode-plus:map-surround'
'd s': 'vim-mode-plus:delete-surround-any-pair'
'c s': 'vim-mode-plus:change-surround-any-pair'
'space n': 'editor:toggle-line-numbers'
'space i': 'user:toggle-show-invisible'
'space I': 'editor:toggle-indent-guide'
'space w': 'editor:toggle-soft-wrap'
'space /': 'vim-mode-plus:clear-highlight-search'
's': 'smalls:start'
'ctrl-w x': 'paner:swap-item'
'ctrl-w X': 'paner:send-item'
'ctrl-w enter': 'paner:maximize'
'ctrl-w K': 'paner:very-top'
'ctrl-w J': 'paner:very-bottom'
'ctrl-w H': 'paner:very-left'
'ctrl-w L': 'paner:very-right'
'ctrl-w s': 'paner:split-up'
'ctrl-w v': 'paner:split-left'
# insert
'atom-text-editor.vim-mode-plus.insert-mode':
'cmd-f': 'editor:move-to-end-of-word'
'cmd-b': 'editor:move-to-beginning-of-word'
'cmd-d': 'editor:delete-to-end-of-word'
'cmd-m': 'editor:select-word'
'ctrl-y': 'clip-history:paste'
'cmd-y': 'clip-history:paste-newer'
'ctrl-Y': 'clip-history:paste-last'
'ctrl-i': 'vim-mode-plus:insert-last-inserted'
# non-insert
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
'g C': 'vim-mode-plus:camel-case'
'ctrl-cmd-k': 'vim-mode-plus:move-up-to-edge'
'ctrl-cmd-j': 'vim-mode-plus:move-down-to-edge'
'[': 'vim-mode-plus:move-to-previous-fold-start'
']': 'vim-mode-plus:move-to-next-fold-start'
'ctrl-p': 'vim-mode-plus:move-to-previous-fold-start'
'ctrl-n': 'vim-mode-plus:move-to-next-fold-start'
#'(': 'vim-mode-plus:move-to-previous-fold-start-with-same-indent'
#')': 'vim-mode-plus:move-to-next-fold-start-with-same-indent'
'-': 'file-explorer:toggle-current-directory'
'(': 'vim-mode-plus-user:move-to-previous-symbol'
')': 'vim-mode-plus-user:move-to-next-symbol'
'alt-p': 'clipboard-plus:toggle'
'ctrl-e': 'vim-mode-plus-user:move-to-end-of-subword'
'Q': 'vim-mode-plus-user:move-to-beginning-of-subword'
'q': 'vim-mode-plus-user:move-to-next-subword'
# <space> y y to copy to clipboard https://github.com/t9md/atom-vim-mode-plus/wiki/TIPS#use-system-clipboard-only-when-you-use-space-as-leaderkey
'space': 'vim-mode-plus:set-register-name-to-*'
# visual, operator-pending
'atom-text-editor.vim-mode-plus.operator-pending-mode, atom-text-editor.vim-mode-plus.visual-mode':
'g _': 'vim-mode-plus:snake-case'
";": 'vim-mode-plus:inner-any-pair-allow-forwarding'
":": 'vim-mode-plus:a-any-pair-allow-forwarding'
"'": 'vim-mode-plus:inner-any-quote',
'i q': 'vim-mode-plus-user:inner-subword'
# visual
'atom-text-editor.vim-mode-plus.visual-mode':
# Need vim-mode-plus-move-selected-text package
'ctrl-k': 'vim-mode-plus-user:move-selected-text-up'
'ctrl-j': 'vim-mode-plus-user:move-selected-text-down'
'ctrl-h': 'vim-mode-plus-user:move-selected-text-left'
'ctrl-l': 'vim-mode-plus-user:move-selected-text-right'
'cmd-K': 'vim-mode-plus-user:duplicate-selected-text-up'
'cmd-J': 'vim-mode-plus-user:duplicate-selected-text-down'
'cmd-H': 'vim-mode-plus-user:duplicate-selected-text-left'
'cmd-L': 'vim-mode-plus-user:duplicate-selected-text-right'
# operator-pending
'atom-text-editor.vim-mode-plus.operator-pending-mode':
'c': 'vim-mode-plus:inner-word'
# normal, visual
'atom-text-editor.vim-mode-plus.normal-mode, atom-text-editor.vim-mode-plus.visual-mode':
'_': 'vim-mode-plus:replace-with-register'
'space m': 'quick-highlight:toggle'
'space M': 'quick-highlight:clear'
'g m': 'vim-mode-plus-user:quick-highlight'
# Input
# -------------------------
'atom-text-editor.vim-mode-plus-input':
'ctrl-g': 'vim-mode-plus:input-cancel'
# Search input
# -------------------------
'atom-text-editor.vim-mode-plus-search:not(.literal-mode)':
'[': 'vim-mode-plus:search-visit-prev'
']': 'vim-mode-plus:search-visit-next'
';': 'vim-mode-plus:search-confirm'
'ctrl-g': 'vim-mode-plus:search-cancel'
'cmd-enter': 'vim-mode-plus-user:project-find-from-search'
# Other
# -------------------------
'.select-list':
';': 'core:confirm'
'ctrl-l': 'pane:split-right'
'ctrl-j': 'pane:split-down'
'ctrl-g': 'core:cancel'
'.file-explorer-view':
'-': 'file-explorer:go-parent'
[
{
"name": "MagicPython",
"version": "1.0.11"
},
{
"name": "Zen",
"version": "0.18.0"
},
{
"name": "about",
"version": "1.7.6"
},
{
"name": "activate-power-mode",
"version": "2.0.0"
},
{
"name": "advanced-open-file",
"version": "0.16.6"
},
{
"name": "archive-view",
"version": "0.63.2"
},
{
"name": "ascii-art",
"version": "1.2.0"
},
{
"name": "atom-auto-prettier",
"version": "0.1.1"
},
{
"name": "atom-dark-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.0",
"theme": "ui"
},
{
"name": "atom-hide-tabs",
"version": "0.3.1"
},
{
"name": "atom-import-js",
"version": "0.10.0"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.0",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "1.0.6",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "2.0.4",
"theme": "ui"
},
{
"name": "atom-react-native-autocomplete",
"version": "0.0.27"
},
{
"name": "atom-reason",
"version": "0.0.5"
},
{
"name": "atom-ternjs",
"version": "0.18.3"
},
{
"name": "atom-wrap-in-tag",
"version": "0.6.0"
},
{
"name": "atomatigit",
"version": "1.5.5"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.1"
},
{
"name": "autocomplete-css",
"version": "0.16.2"
},
{
"name": "autocomplete-html",
"version": "0.8.0"
},
{
"name": "autocomplete-modules",
"version": "1.6.10"
},
{
"name": "autocomplete-plus",
"version": "2.35.4"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autosave",
"version": "0.24.3"
},
{
"name": "background-tips",
"version": "0.27.0"
},
{
"name": "base16-syntax",
"version": "1.8.1",
"theme": "syntax"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.44.4"
},
{
"name": "bracket-matcher",
"version": "0.85.5"
},
{
"name": "cake-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "chester-atom-syntax",
"version": "0.2.1",
"theme": "syntax"
},
{
"name": "clipboard-plus",
"version": "0.5.1"
},
{
"name": "command-palette",
"version": "0.40.4"
},
{
"name": "copy-as-rtf",
"version": "0.9.3"
},
{
"name": "cursor-history",
"version": "0.11.1"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "deprecation-cop",
"version": "0.56.7"
},
{
"name": "dev-live-reload",
"version": "0.47.1"
},
{
"name": "dracula-syntax",
"version": "2.0.5",
"theme": "syntax"
},
{
"name": "dracula-theme",
"version": "2.0.3",
"theme": "syntax"
},
{
"name": "dracula-ui",
"version": "0.6.0",
"theme": "ui"
},
{
"name": "duotone-dark-sea-syntax",
"version": "2.1.0",
"theme": "syntax"
},
{
"name": "eclectic-syntax",
"version": "0.3.0",
"theme": "syntax"
},
{
"name": "encoding-selector",
"version": "0.23.4"
},
{
"name": "enhanced-tabs",
"version": "1.7.0"
},
{
"name": "ex-mode",
"version": "0.17.0"
},
{
"name": "exception-reporting",
"version": "0.41.4"
},
{
"name": "file-explorer",
"version": "0.3.0"
},
{
"name": "file-icons",
"version": "2.1.9"
},
{
"name": "filecolor",
"version": "0.4.0"
},
{
"name": "find-and-replace",
"version": "0.208.3"
},
{
"name": "firewatch-syntax",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "fuzzy-finder",
"version": "1.5.8"
},
{
"name": "git-blame",
"version": "1.2.0"
},
{
"name": "git-control",
"version": "0.9.0"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "github",
"version": "0.3.3"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "golden-ratio",
"version": "0.3.0"
},
{
"name": "goto",
"version": "1.8.3"
},
{
"name": "grammar-selector",
"version": "0.49.5"
},
{
"name": "haskell-grammar",
"version": "0.4.0"
},
{
"name": "highlight-selected",
"version": "0.13.1"
},
{
"name": "image-view",
"version": "0.61.2"
},
{
"name": "imdone-atom",
"version": "2.2.6"
},
{
"name": "imdone-atom-github",
"version": "0.1.11"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "keybinding-resolver",
"version": "0.38.0"
},
{
"name": "language-babel",
"version": "2.68.0"
},
{
"name": "language-c",
"version": "0.58.0"
},
{
"name": "language-clojure",
"version": "0.22.2"
},
{
"name": "language-coffee-script",
"version": "0.48.7"
},
{
"name": "language-csharp",
"version": "0.14.2"
},
{
"name": "language-css",
"version": "0.42.2"
},
{
"name": "language-diff",
"version": "0.7.0"
},
{
"name": "language-gfm",
"version": "0.89.0"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.44.0"
},
{
"name": "language-graphql",
"version": "0.9.0"
},
{
"name": "language-html",
"version": "0.47.2"
},
{
"name": "language-hyperlink",
"version": "0.16.1"
},
{
"name": "language-ini",
"version": "1.19.0"
},
{
"name": "language-java",
"version": "0.27.1"
},
{
"name": "language-javascript",
"version": "0.126.1"
},
{
"name": "language-javascript-jsx",
"version": "0.3.7"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-less",
"version": "0.32.0"
},
{
"name": "language-lua",
"version": "0.9.11"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.14.1"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-ocaml",
"version": "1.9.5"
},
{
"name": "language-perl",
"version": "0.37.0"
},
{
"name": "language-php",
"version": "0.38.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.45.2"
},
{
"name": "language-reason",
"version": "0.0.10"
},
{
"name": "language-ruby",
"version": "0.71.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.2"
},
{
"name": "language-rust",
"version": "0.4.11"
},
{
"name": "language-sass",
"version": "0.59.0"
},
{
"name": "language-shellscript",
"version": "0.25.0"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.5"
},
{
"name": "language-swift",
"version": "0.5.0"
},
{
"name": "language-text",
"version": "0.7.2"
},
{
"name": "language-thrift",
"version": "1.0.2"
},
{
"name": "language-todo",
"version": "0.29.1"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-xml",
"version": "0.35.0"
},
{
"name": "language-yaml",
"version": "0.29.0"
},
{
"name": "less-than-slash",
"version": "0.17.0"
},
{
"name": "line-ending-selector",
"version": "0.7.1"
},
{
"name": "link",
"version": "0.31.3"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-eslint",
"version": "8.2.1"
},
{
"name": "linter-flow-plus",
"version": "3.1.0"
},
{
"name": "local-history",
"version": "4.3.0"
},
{
"name": "markdown-preview",
"version": "0.159.12"
},
{
"name": "merge-conflicts",
"version": "1.4.5"
},
{
"name": "metrics",
"version": "1.2.5"
},
{
"name": "narrow",
"version": "0.45.3"
},
{
"name": "nerd-treeview",
"version": "0.5.4"
},
{
"name": "notifications",
"version": "0.67.2"
},
{
"name": "nova-atom-syntax",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "nova-atom-ui",
"version": "1.3.0",
"theme": "ui"
},
{
"name": "nuclide",
"version": "0.243.0"
},
{
"name": "nuclide-format-js",
"version": "0.0.40"
},
{
"name": "one-dark-syntax",
"version": "1.7.1",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.10.4",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.7.1",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.10.4",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.1"
},
{
"name": "open-recent",
"version": "5.0.0"
},
{
"name": "open-terminal-here",
"version": "2.3.1"
},
{
"name": "open-this",
"version": "0.4.0"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "paner",
"version": "1.0.0"
},
{
"name": "pigments",
"version": "0.39.1"
},
{
"name": "prettier-atom",
"version": "0.37.0"
},
{
"name": "project-find-navigation",
"version": "0.5.1"
},
{
"name": "project-folder",
"version": "1.4.0"
},
{
"name": "quick-highlight",
"version": "0.10.0"
},
{
"name": "react",
"version": "0.16.2"
},
{
"name": "relative-numbers",
"version": "0.8.0"
},
{
"name": "set-syntax",
"version": "0.3.2"
},
{
"name": "settings-view",
"version": "0.249.4"
},
{
"name": "smalls",
"version": "0.3.0"
},
{
"name": "smart-tab-name",
"version": "1.0.5"
},
{
"name": "snippets",
"version": "1.1.4"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "sort-lines",
"version": "0.14.0"
},
{
"name": "spacegray-dark-syntax",
"version": "0.2.0",
"theme": "syntax"
},
{
"name": "spacegray-dark-ui",
"version": "0.13.0",
"theme": "ui"
},
{
"name": "spell-check",
"version": "0.71.4"
},
{
"name": "status-bar",
"version": "1.8.11"
},
{
"name": "styleguide",
"version": "0.49.6"
},
{
"name": "symbols-view",
"version": "0.116.0"
},
{
"name": "sync-settings",
"version": "0.8.2"
},
{
"name": "tab-toggler",
"version": "0.1.1"
},
{
"name": "tabs",
"version": "0.106.2"
},
{
"name": "terminal-plus",
"version": "0.14.5"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "todo-show",
"version": "1.11.0"
},
{
"name": "tomatimer",
"version": "1.2.3"
},
{
"name": "tool-bar",
"version": "1.1.0"
},
{
"name": "tree-view",
"version": "0.217.1"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "vim-mode-clipboard-plus",
"version": "0.2.0"
},
{
"name": "vim-mode-plus",
"version": "0.96.2"
},
{
"name": "vim-mode-plus-move-to-symbols",
"version": "0.3.0"
},
{
"name": "vim-mode-plus-project-find-from-search",
"version": "0.2.0"
},
{
"name": "vim-mode-plus-subword-movement",
"version": "0.2.2"
},
{
"name": "welcome",
"version": "0.36.4"
},
{
"name": "whitespace",
"version": "0.36.2"
},
{
"name": "wrap-guide",
"version": "0.40.2"
},
{
"name": "zenburn",
"version": "3.1.0",
"theme": "syntax"
}
]
{
"Zen": {
"fullscreen": false,
"minimap": true,
"width": 120
},
"advanced-open-file": {},
"api-docs": {
"_theme": "Dark"
},
"atom-material-ui": {
"fonts": {},
"ui": {
"panelContrast": true
}
},
"base16-syntax": {
"scheme": "Atelier Plateau"
},
"command-palette": {
"preserveLastSearch": true
},
"copy-as-rtf": {
"style": "native"
},
"core": {
"customFileTypes": {
"source.ini": [
".buckconfig",
".flowconfig"
],
"source.json": [
".arcconfig",
"BUCK.autodeps"
],
"source.python": [
"BUCK"
]
},
"disabledPackages": [
"hyperclick",
"nuclide-arcanist",
"nuclide-blame",
"nuclide-blame-provider-hg",
"nuclide-blame-ui",
"nuclide-buck-files",
"nuclide-busy-signal",
"nuclide-clang-atom",
"nuclide-clipboard-path",
"nuclide-code-format",
"nuclide-code-highlight",
"nuclide-debugger-atom",
"nuclide-debugger-hhvm",
"nuclide-debugger-lldb",
"nuclide-diagnostics-store",
"nuclide-diagnostics-ui",
"nuclide-diff-view",
"nuclide-file-tree",
"nuclide-file-watcher",
"nuclide-find-references",
"nuclide-flow",
"nuclide-format-js",
"nuclide-fuzzy-filename-provider",
"nuclide-hack",
"nuclide-hack-symbol-provider",
"nuclide-hg-repository",
"nuclide-installer",
"nuclide-language-hack",
"nuclide-move-pane",
"nuclide-objc",
"nuclide-ocaml",
"nuclide-open-filenames-provider",
"nuclide-quick-open",
"nuclide-react-native-inspector",
"nuclide-recent-files-provider",
"nuclide-remote-projects",
"nuclide-test-runner",
"nuclide-type-hint",
"nuclide-url-hyperclick",
"language-ocaml",
"language-javascript-jsx",
"highlight-line",
"highlight-selected",
"linter",
"git-plus",
"imdone-atom",
"imdone-atom-github",
"minimap",
"atom-hide-tabs",
"clip-history",
"language-thrift",
"linter-flow-plus",
"tool-bar",
"haskell-grammar",
"atom-ternjs",
"react",
"activate-power-mode",
"atomatigit",
"enhanced-tabs",
"open-terminal-here",
"language-ini",
"language-swift",
"language-c",
"language-clojure",
"language-coffee-script",
"language-csharp",
"language-go",
"language-java",
"language-mustache",
"language-objective-c",
"language-perl",
"language-php",
"language-python",
"language-ruby",
"language-ruby-on-rails",
"language-sass",
"autocomplete-modules",
"vim-mode-plus-subword-movement",
"linter-eslint",
"nuclide"
],
"packagesWithKeymapsDisabled": [
"file-explorer",
"git-blame"
],
"telemetryConsent": "limited",
"themes": [
"dracula-ui",
"one-dark-syntax"
],
"titleBar": "custom"
},
"easy-motion-redux": {},
"editor": {
"fontFamily": "Fira Code",
"fontSize": 15,
"invisibles": {},
"scrollPastEnd": true,
"softWrap": true,
"softWrapHangingIndent": 2
},
"exception-reporting": {
"userId": "e9609e3d-ec6a-bd14-f7a2-e7a08ae02bf9"
},
"file-explorer": {
"excludeActiveFile": false
},
"file-icons": {},
"fuzzy-finder": {},
"git-plus": {},
"language-babel": {},
"linter": {},
"linter-eslint": {},
"nuclide": {
"installRecommendedPackages": true,
"nuclide-adb-logcat": {},
"nuclide-arcanist": {},
"nuclide-buck-files": {},
"nuclide-code-format": {
"formatOnSave": true
},
"nuclide-console": {},
"nuclide-datatip": {},
"nuclide-diagnostics-store": {
"legacyLintOnTheFly": true
},
"nuclide-diff-view": {
"toolbarVisible": true
},
"nuclide-distraction-free-mode": {},
"nuclide-file-tree": {
"hideIgnoredNames": false,
"revealFileOnSwitch": true,
"showOpenFiles": false
},
"nuclide-flow": {
"canUseFlowBin": true,
"diagnosticsOnFly": true,
"enableStructuredTypeHints": true
},
"nuclide-format-js": {},
"nuclide-hack": {},
"nuclide-health": {},
"nuclide-home": {
"showHome": false
},
"nuclide-ios-simulator-logs": {},
"nuclide-ocaml": {},
"nuclide-outline-view": {},
"nuclide-output": {},
"nuclide-python": {},
"nuclide-react-native": {},
"nuclide-working-sets": {},
"use": {
"nuclide-arcanist": false,
"nuclide-blame-provider-hg": false,
"nuclide-bookshelf": false,
"nuclide-buck": false,
"nuclide-busy-signal": false,
"nuclide-clang": false,
"nuclide-clang-atom": false,
"nuclide-clipboard-path": false,
"nuclide-debugger-php": false,
"nuclide-hack": false,
"nuclide-hack-symbol-provider": false,
"nuclide-hg-conflict-resolver": false,
"nuclide-hg-repository": false,
"nuclide-hhvm": false,
"nuclide-language-hack": false,
"nuclide-objc": false,
"nuclide-ocaml": false,
"nuclide-python": false,
"nuclide-source-control-side-bar": false,
"nuclide-swift": false,
"nuclide-vcs-log": false
}
},
"one-light-ui": {},
"open-recent": {},
"pigments": {},
"project-find-navigation": {
"showDeprecationWarning": false,
"showEndOfLifeWarning": false
},
"react": {
"enabledForAllJavascriptFiles": true
},
"smalls": {
"jumpTriggerInputLength": 2,
"showDeprecationWarning": false
},
"sync-settings": {
"analytics": false,
"quietUpdateCheck": true
},
"tabs": {},
"terminal-plus": {
"toggles": {
"autoClose": true
}
},
"tool-bar": {
"iconSize": "16px",
"position": "Left"
},
"tree-view": {
"hideVcsIgnoredFiles": true
},
"vim-mode": {
"useClipboardAsDefaultRegister": true
},
"vim-mode-clipboard-plus": {
"useVimModePlus": true
},
"vim-mode-plus": {
"clearHighlightSearchOnResetNormalMode": true,
"highlightSearch": true,
"ignoreCaseForSearch": true,
"incrementalSearch": true,
"smoothScrollOnFullScrollMotion": true,
"smoothScrollOnFullScrollMotionDuration": 200,
"smoothScrollOnHalfScrollMotion": true,
"smoothScrollOnHalfScrollMotionDuration": 200,
"stayOnDelete": true,
"stayOnTransformString": true,
"stayOnYank": true,
"useClipboardAsDefaultRegister": true,
"useSmartcaseForSearch": true
},
"vim-mode-plus-ex-mode": {
"notifiedUseExMode": true
},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": false
}
}
# 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
'.source.js':
#- React
'state':
prefix: 's'
body: 'this.state.'
'prop':
prefix: 'p'
body: 'this.props.'
'React.ProptTypes':
prefix: 'pt'
body: 'React.PropTypes.'
# https://github.com/georgebonnr/bug
'bug':
'prefix': 'bug'
'body': '(() => { debugger })() ||'
'Console debug':
'prefix': 'debug'
'body': 'console.debug($1);'
'Console log':
'prefix': 'log'
'body': 'console.log($1);'
'Console warn':
'prefix': 'warn'
'body': 'console.warn($1);'
"return":
prefix: "r"
body: "return ${0}"
# Objects
"key/value pair":
prefix: ":"
body: "${1:key}: ${2:'value'}"
"method":
prefix: "m"
body: """
${1:method}( ${2:arguments} ) {
\t${0}
}
"""
# Modules
"module export":
prefix: "ex"
body: "export ${1:member}"
"module default export":
prefix: "exd"
body: "export default ${1:member}"
"import module":
prefix: "im"
body: "import ${1:*} from '${2:module}'"
"import module as":
prefix: "ima"
body: "import ${1:*} as ${2:name} from '${3:module}'"
"import module destructured":
prefix: "imd"
body: "import { $1 } from '${2:module}'"
'JS Import':
'prefix': 'imp'
'body': 'import $1 from \'$1\';'
# Functions
"forEach loop":
prefix: "fe"
body: """
${1:iterable}.forEach((${2:item}) => {
\t${0}
})
"""
"chain forEach":
prefix: ".fe"
body: ".forEach((${1:item}) => {${0}})"
"map":
prefix: "map"
body: """
${1:iterable}.map((${2:item}) => {
\t${0}
})
"""
"chain map":
prefix: ".map"
body: ".map((${1:item}) => {${0}})"
"reduce":
prefix: "reduce"
body: """
${1:iterable}.reduce((${2:previous}, ${3:current}) => {
\t${0}
}${4:, initial})
"""
"chain reduce":
prefix: ".reduce"
body: ".reduce((${1:previous}, ${2:current}) => {${0}}${4:, initial})"
"filter":
prefix: "filter"
body: """
${1:iterable}.filter((${2:item}) => {
\t${0}
})
"""
"chain filter":
prefix: ".filter"
body: ".filter((${1:item}) => {${0}})"
"find":
prefix: "find"
body: """
${1:iterable}.find((${2:item}) => {
\t${0}
})
"""
"chain find":
prefix: ".find"
body: ".find((${1:item}) => {${0}})"
"every":
prefix: "every"
body: """
${1:iterable}.every((${2:item}) => {
\t${0}
})
"""
"chain every":
prefix: ".every"
body: ".every((${1:item}) => {${0}})"
"some":
prefix: "some"
body: """
${1:iterable}.some((${2:item}) => {
\t${0}
})
"""
"chain some":
prefix: ".some"
body: ".some((${1:item}) => {${0}})"
"anonymous function":
prefix: "f"
body: "function (${1:arguments}) {${0}}"
"named function":
prefix: "fn"
body: """
function ${1:name} (${2:arguments}) {
\t${0}
}
"""
"immediately-invoked function expression":
prefix: "iife"
body: """
;(function (${1:arguments}) {
\t${0}
})(${2})
"""
"arrow function":
prefix: "af"
body: """
(${1:arguments}) => ${2:statement}
"""
"arrow function with body":
prefix: "afb"
body: """
(${1:arguments}) => {
\t${0}
}
"""
# Flow-control
"if statement":
prefix: "if"
body: """
if (${1:condition}) {
\t${0}
}
"""
"else statement":
prefix: "el"
body: """
else {
\t${0}
}
"""
"if/else statement":
prefix: "ife"
body: """
if (${1:condition}) {
\t${0}
}
else {
\t
}
"""
"else if statement":
prefix: "ei"
body: """
else if (${1:condition}) {
\t${0}
}
"""
# Declarations
"let statement":
prefix: "l"
body: "let ${1:name}"
"let assignment":
prefix: "l="
body: "let ${1:name} = ${2:value}"
"const statement":
prefix: "c"
body: "const ${1:name}"
"const assignment":
prefix: "c="
body: "const ${1:name} = ${2:value}"
"const assignment yielded":
prefix: "cy"
body: "const ${1:name} = yield ${2:value}"
"let assignment yielded":
prefix: "ly"
body: "let ${1:name} = yield ${2:value}"
"const object":
prefix: "co"
body: """
const ${1:name} = {
\t${0}
}
"""
"const array":
prefix: "ca"
body: """
const ${1:name} = [
\t${0}
]
"""
".source.json":
"JSON key/value pair":
prefix: ":"
body: """
"${1:key}": "${2:value}"
"""
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
/*
* Examples
* (To see them, uncomment and save)
*/
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
text-rendering: optimizeLegibility; //for Fira Code font
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
.cursor-line-background(@mode, @color) {
atom-text-editor.vim-mode-plus.@{mode}.is-focused::shadow {
& .lines .line.cursor-line {
background-color: @color
}
}
}
.cursor-line-background(normal-mode, fadeout(gray, 80%));
.cursor-line-background(insert-mode, fadeout(gray, 95%));
.cursor-line-background(operator-pending-mode, fadeout(yellow, 80%));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment