Skip to content

Instantly share code, notes, and snippets.

@calebmeyer
Last active Nov 16, 2021
Embed
What would you like to do?
Atom Settings Backup by https://atom.io/packages/sync-settings
# 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()}"
# fix path issues for CLI binaries like jshint
# process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":")
# toggle the folding state of the row under the cursor
atom.commands.add 'atom-text-editor',
'editor:open-selected': (event) ->
editor = atom.workspace.getActiveTextEditor()
atom.workspace.open(editor.getSelectedText())
'editor:toggle-current-row-folding': (event) ->
editor = atom.workspace.getActiveTextEditor()
bufferRow = editor.bufferPositionForScreenPosition(editor.getCursorScreenPosition()).row
if editor.isFoldedAtBufferRow(bufferRow)
editor.unfoldBufferRow(bufferRow)
else
editor.foldBufferRow(bufferRow)
'settings:toggle-vcs-ignored': (event) ->
ignored = atom.config.get('core.excludeVcsIgnoredPaths')
atom.config.set('core.excludeVcsIgnoredPaths', !ignored)
'custom:toggle-golden-ratio': (event) ->
target = atom.views.getView(atom.workspace)
atom.commands.dispatch(target, 'golden-ratio:toggle')
atom.commands.dispatch(target, 'editor:toggle-soft-wrap')
'custom:run-rspec-for-line': (event) ->
target = atom.views.getView(atom.workspace)
atom.commands.dispatch(target, 'termination:new')
atom.commands.dispatch(target, 'termination:insert-custom-text-1')
'terminal:open-to-the-right': (event) ->
target = atom.views.getView(atom.workspace)
atom.commands.dispatch(target, 'terminal:open')
target = atom.workspace.getActivePane()
atom.commands.dispatch(target, 'pane:split-right-and-move-active-item')
atom.commands.add 'atom-workspace',
'buffer:delete-buffer': ->
atom.workspace.getActivePane().destroyActiveItem()
'window:close-other-windows': ->
BrowserWindow = require('electron').remote.BrowserWindow;
allWindows = BrowserWindow.getAllWindows()
currentWindow = BrowserWindow.getFocusedWindow()
window.close() for window in allWindows when window.id isnt currentWindow.id
# consumeService = (packageName, providerName, fn) ->
# disposable = atom.packages.onDidActivatePackage (pack) ->
# if pack.name is packageName
# service = pack.mainModule[providerName]()
# fn(service)
# disposable.dispose()
#
# consumeService 'ex-mode', 'provideEx', (Ex) ->
# # buffer delete
# Ex.registerCommand 'bd', -> atom.workspace.getActivePane().destroyActiveItem()
# Ex.registerCommand 'A', -> # A for alternate file (goes to spec)
# currentView = atom.views.getView(atom.workspace.getActiveTextEditor())
# atom.commands.dispatch(currentView, 'atom-spec-finder:toggle')
# some kind of race condition between when this file is loaded and when editors are foldable
# setTimeout(
# ->
# atom.workspace.observeTextEditors (editor) ->
# atom.commands.dispatch(atom.views.getView(editor), 'line-ending-selector:convert-to-LF')
#
# editorScope = editor.getGrammar().scopeName
# # all untitled editors are automatically ruby unless I say otherwise
# # if editorScope? and editorScope is 'text.plain.null-grammar'
# # editor.setGrammar(atom.grammars.grammarForScopeName('source.ruby'))
#
# # also fold things automatically
# fold_at_2_grammars = ['source.js.jsx', 'source.ruby', 'source.ruby.rails', 'source.coffee']
# if editorScope? and editorScope in fold_at_2_grammars
# # use level 2 so class doesn't get folded, just methods
# atom.commands.dispatch(atom.views.getView(editor), 'editor:fold-at-indent-level-2')
#
# fold_at_3_grammars = ['source.cs', 'source.yaml']
# if editorScope? and editorScope in fold_at_3_grammars
# atom.commands.dispatch(atom.views.getView(editor), 'editor:fold-at-indent-level-3')
# 5000
# )
# repos = []
# try
# repos = atom.project.getRepositories() | []
# catch error
# console.warn(error)
#
# repos.forEach (repo) ->
# repo.onDidChangeStatus (event) ->
# if repo.branch == 'refs/heads/master'
# atom.workspace.element.classList.add 'master'
# else
# atom.workspace.element.classList.remove 'master'
# atom.packages.onDidActivatePackage (atompackage) ->
# if atompackage.name === 'prismatic-parens'
# atom.commands.dispatch(atom.workspace, 'prismatic-parens:toggle')
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * https://atom.io/docs/latest/customizing-atom#customizing-key-bindings
# * https://atom.io/docs/latest/advanced/keymaps
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'atom-text-editor':
'ctrl-l': 'vim-mode-plus:redraw-cursor-line-at-upper-middle'
'ctrl-c': 'core:copy'
'atom-text-editor.vim-mode-plus.insert-mode:not(.mini)':
'j k': 'vim-mode-plus:activate-normal-mode'
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
'space space': 'command-palette:toggle'
'space c l': 'editor:toggle-line-comments'
'space r i t': 'termination:insert-selected-text' # run in terminal
'space t d': 'termination:close'
# 'space t n': 'termination:new' # terminal new
'space t n': 'terminal:open-to-the-right' # terminal new
'space p p': 'pretty-json:prettify'
'atom-text-editor.vim-mode-plus.normal-mode':
# leader commands, by starting letter
'space b b': 'fuzzy-finder:toggle-buffer-finder'
'space b n': 'pane:show-next-item'
'space b p': 'pane:show-previous-item'
'space b d': 'buffer:delete-buffer'
'space b D': 'tabs:close-all-tabs' # buffer Delete all
'space f a': 'atom-spec-finder:toggle' # find alternate file (spec or thing it describes)
'space f e d': 'application:open-your-init-script'
'space f e k': 'application:open-your-keymap'
'space f e s': 'application:open-your-stylesheet'
'space f f': 'editor:toggle-current-row-folding'
'space f o': 'advanced-open-file:toggle'
'space f s': 'core:save'
'space f t': 'atom-spec-finder:toggle' # find test file (or go back from test to code)
'space f 0': 'editor:unfold-all'
'space f 1': 'editor:fold-at-indent-level-1'
'space f 2': 'editor:fold-at-indent-level-2'
'space f 3': 'editor:fold-at-indent-level-3'
'space f 4': 'editor:fold-at-indent-level-4'
'space g b': 'git-blame:toggle'
'space g c j': 'git-plus:add-all-and-commit'
'space g d': 'inline-git-diff:toggle'
'space g f': 'git-plus:pull'
'space g l c': 'git-links:copy-absolute-link-for-current-commit'
'space g l f': 'git-links:copy-absolute-link-for-current-file'
'space g l l': 'git-links:copy-absolute-link-for-current-line'
'space g p': 'git-plus:push'
'space g s': 'github:toggle-git-tab-focus'
'space j f': 'symbols-view:toggle-file-symbols' # jump to symbol in file
'space j j': 'symbols-view:toggle-project_symbols' # jump to any symbol
'space l n': 'linter-ui-default:next'
'space l p': 'linter-ui-default:previous'
'space l s': 'editor:log-cursor-scope'
'space p s': 'project-manager:list-projects' # projects - switch
'space q a': 'tabs:close-all-tabs'
'space q q': 'application:quit'
'space q o': 'pane:close-other-items' # quit other tabs
'space q w': 'window:close'
'space r f': 'run:file'
'space r r': 'custom:run-rspec-for-line'
'space s r': 'pane:split-right-and-move-active-item'
'space t a': 'rspec:run-all'
'space t c': 'rspec:run-for-line' # run the current spec
'space t f': 'rspec:run' # run the current file
'space T I': 'settings:toggle-vcs-ignored'
'space T F': 'hey-pane:toggle-focus-of-active-pane'
'space T G': 'custom:toggle-golden-ratio'
'space v': 'expand-region:expand'
'space w l': 'window:focus-pane-on-right'
'space w h': 'window:focus-pane-on-left'
'space w n': 'window:focus-next-pane'
'space w N': 'application:new-window'
'space w p': 'window:focus-previous-pane'
'space w r': 'window:reload'
'space w w': 'window:focus-next-pane'
'space w 1': 'window:close-other-windows'
'c c': 'vim-mode-plus:substitute-line'
's': 'vim-mode-plus:surround-smart-word'
';': 'ex-mode:open' # shortcut for : (so you don't have to type shift)
'K': 'editor:newline' # mirrors J in vim mode, since there's no help yet
'F': 'editor:toggle-current-row-folding'
'tab': 'pane:show-next-item'
'shift-tab': 'pane:show-previous-item'
# 'escape': 'core:cancel'
'atom-text-editor.vim-mode-plus.visual-mode':
'v': 'expand-region:expand'
'V': 'expand-region:shrink'
'/': 'project-find:show'
'ctrl-shift-l': 'editor:split-selections-into-lines'
'atom-text-editor.vim-mode-plus.normal-mode.has-inline-git-diff':
'space g c': 'inline-git-diff:copy-removed-text'
'r': 'inline-git-diff:revert'
'atom-workspace':
'ctrl-alt-cmd-i': 'settings:toggle-vcs-ignored'
'ctrl-p': 'fuzzy-finder:toggle-file-finder'
'ctrl-b': 'symbols-view:go-to-declaration'
'ctrl-~': 'terminal:open'
'.platform-darwin':
'cmd-b': 'symbols-view:go-to-declaration'
'cmd-k right': 'pane:split-right-moving-current-tab'
'ctrl-n': 'tree-view:toggle-focus'
'.tree-view':
'n': 'tree-view:add-file'
'.github-StagingView':
'c': 'core:focus-next' # commit
'd': 'github:discard-changes-in-selected-files'
'D': 'github:discard-all-changes'
'j': 'core:move-down'
'k': 'core:move-up'
'o': 'github:open-file'
's': 'core:confirm' # stage/unstage
'S': 'github:stage-all-changes'
'u': 'core:undo'
'U': 'github:unstage-all-changes'
'q': 'github:toggle-git-tab'
'atom-text-editor:not(.mini).vim-mode-plus:not(.insert-mode):not(.jumpy-jump-mode), .tree-view':
'f': 'jumpy:toggle'
{
"about": {
"version": "1.9.1"
},
"archive-view": {
"version": "0.66.0"
},
"ariake-dark-syntax": {
"version": "0.2.1",
"theme": "syntax"
},
"atom-dark-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-dark-ui": {
"version": "0.53.3",
"theme": "ui"
},
"atom-jest-snippets": {
"version": "2.2.0"
},
"atom-light-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-light-ui": {
"version": "0.46.3",
"theme": "ui"
},
"atom-panda-syntax": {
"version": "0.18.0",
"theme": "syntax"
},
"atom-typescript": {
"version": "14.4.0"
},
"auto-detect-indentation": {
"version": "1.3.0"
},
"auto-update-plus": {
"version": "0.11.4"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-css": {
"version": "0.17.5"
},
"autocomplete-html": {
"version": "0.8.8"
},
"autocomplete-plus": {
"version": "2.42.4"
},
"autocomplete-snippets": {
"version": "1.12.1"
},
"autoflow": {
"version": "0.29.4"
},
"autosave": {
"version": "0.24.6"
},
"background-tips": {
"version": "0.28.0"
},
"base16-tomorrow-dark-theme": {
"version": "1.6.0",
"theme": "syntax"
},
"base16-tomorrow-light-theme": {
"version": "1.6.0",
"theme": "syntax"
},
"bookmarks": {
"version": "0.46.0"
},
"bracket-matcher": {
"version": "0.92.0"
},
"busy-signal": {
"version": "2.0.1"
},
"city-lights-syntax": {
"version": "1.1.8",
"theme": "syntax"
},
"city-lights-ui": {
"version": "1.5.3",
"theme": "ui"
},
"command-palette": {
"version": "0.43.5"
},
"dalek": {
"version": "0.2.2"
},
"dark-one-dark-syntax": {
"version": "2.3.0",
"theme": "syntax"
},
"deprecation-cop": {
"version": "0.56.9"
},
"dev-live-reload": {
"version": "0.48.1"
},
"duotone-dark-amethyst-syntax": {
"version": "2.0.4",
"theme": "syntax"
},
"duotone-dark-earth-syntax": {
"version": "2.1.0",
"theme": "syntax"
},
"duotone-dark-forest-syntax": {
"version": "2.1.0",
"theme": "syntax"
},
"duotone-dark-sea-syntax": {
"version": "2.1.0",
"theme": "syntax"
},
"duotone-snow": {
"version": "2.2.0",
"theme": "syntax"
},
"encoding-selector": {
"version": "0.23.9"
},
"exception-reporting": {
"version": "0.43.1"
},
"find-and-replace": {
"version": "0.219.8"
},
"fuzzy-finder": {
"version": "1.14.3"
},
"gist-it": {
"version": "0.9.2"
},
"git-blame": {
"version": "1.8.0"
},
"git-diff": {
"version": "1.3.9"
},
"git-links": {
"version": "0.3.3"
},
"git-plus": {
"version": "8.7.1"
},
"git-time-machine": {
"version": "2.1.0"
},
"github": {
"version": "0.36.9"
},
"go-to-line": {
"version": "0.33.0"
},
"gradient-syntax-theme": {
"version": "0.2.0",
"theme": "syntax"
},
"grammar-selector": {
"version": "0.50.1"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"intentions": {
"version": "2.1.1"
},
"jumpy": {
"version": "5.0.2"
},
"keybinding-resolver": {
"version": "0.39.0"
},
"language-babel": {
"version": "2.85.0"
},
"language-c": {
"version": "0.60.19"
},
"language-clojure": {
"version": "0.22.8"
},
"language-coffee-script": {
"version": "0.50.0"
},
"language-csharp": {
"version": "1.1.0"
},
"language-css": {
"version": "0.44.4"
},
"language-csv": {
"version": "1.1.2"
},
"language-diff": {
"version": "0.7.0"
},
"language-docker": {
"version": "1.1.8"
},
"language-dotenv": {
"version": "1.2.0"
},
"language-fish-shell": {
"version": "1.1.0"
},
"language-gfm": {
"version": "0.90.8"
},
"language-git": {
"version": "0.19.1"
},
"language-go": {
"version": "0.47.2"
},
"language-haml": {
"version": "0.32.1"
},
"language-html": {
"version": "0.53.1"
},
"language-hyperlink": {
"version": "0.17.1"
},
"language-java": {
"version": "0.32.1"
},
"language-javascript": {
"version": "0.134.1"
},
"language-json": {
"version": "1.0.5"
},
"language-less": {
"version": "0.34.3"
},
"language-make": {
"version": "0.23.0"
},
"language-mustache": {
"version": "0.14.5"
},
"language-objective-c": {
"version": "0.16.0"
},
"language-perl": {
"version": "0.38.1"
},
"language-php": {
"version": "0.47.0"
},
"language-powershell": {
"version": "5.0.0"
},
"language-property-list": {
"version": "0.9.1"
},
"language-python": {
"version": "0.53.6"
},
"language-ruby": {
"version": "0.72.23"
},
"language-ruby-on-rails": {
"version": "0.25.3"
},
"language-rust": {
"version": "0.4.12"
},
"language-rust-bundled": {
"version": "0.1.0"
},
"language-sass": {
"version": "0.62.1"
},
"language-shellscript": {
"version": "0.28.2"
},
"language-source": {
"version": "0.9.0"
},
"language-sql": {
"version": "0.25.10"
},
"language-text": {
"version": "0.7.4"
},
"language-todo": {
"version": "0.29.4"
},
"language-toml": {
"version": "0.20.0"
},
"language-typescript": {
"version": "0.6.3"
},
"language-xml": {
"version": "0.35.3"
},
"language-yaml": {
"version": "0.32.0"
},
"line-ending-selector": {
"version": "0.7.7"
},
"link": {
"version": "0.31.6"
},
"linter": {
"version": "3.4.0"
},
"linter-eslint": {
"version": "9.0.0"
},
"linter-rubocop": {
"version": "2.5.7"
},
"linter-ui-default": {
"version": "3.4.1"
},
"markdown-preview": {
"version": "0.160.2"
},
"metrics": {
"version": "1.8.1"
},
"monokai": {
"version": "0.28.0",
"theme": "syntax"
},
"nebula-syntax": {
"version": "0.4.5",
"theme": "syntax"
},
"nebula-ui": {
"version": "0.9.3",
"theme": "ui"
},
"nord-atom-syntax": {
"version": "0.10.0",
"theme": "syntax"
},
"nord-atom-ui": {
"version": "0.12.0",
"theme": "ui"
},
"northem-dark-atom-syntax": {
"version": "2.1.0",
"theme": "syntax"
},
"notifications": {
"version": "0.71.0"
},
"one-dark-syntax": {
"version": "1.8.4",
"theme": "syntax"
},
"one-dark-ui": {
"version": "1.12.5",
"theme": "ui"
},
"one-light-syntax": {
"version": "1.8.4",
"theme": "syntax"
},
"one-light-ui": {
"version": "1.12.5",
"theme": "ui"
},
"open-on-github": {
"version": "1.3.2"
},
"package-generator": {
"version": "1.3.0"
},
"pretty-json": {
"version": "2.1.2"
},
"process-palette": {
"version": "0.19.3"
},
"project-manager": {
"version": "3.3.8"
},
"pure-ui": {
"version": "1.0.4",
"theme": "ui"
},
"rainbow-csv": {
"version": "1.4.0"
},
"rainglow": {
"version": "1.5.5",
"theme": "syntax"
},
"react": {
"version": "0.18.0"
},
"sequential-number": {
"version": "0.5.0"
},
"set-syntax": {
"version": "0.4.0"
},
"settings-view": {
"version": "0.261.8"
},
"snippets": {
"version": "1.5.1"
},
"solarized-dark-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"solarized-light-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"spacemacs-dark-syntax": {
"version": "0.5.0",
"theme": "syntax"
},
"spell-check": {
"version": "0.77.1"
},
"split-diff": {
"version": "1.6.1"
},
"status-bar": {
"version": "1.8.17"
},
"status-bar-blame": {
"version": "2.0.3"
},
"styleguide": {
"version": "0.49.12"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "5.2.15"
},
"tabs": {
"version": "0.110.0"
},
"terminal-tab": {
"version": "0.6.0"
},
"termination": {
"version": "0.7.6"
},
"timecop": {
"version": "0.36.2"
},
"tree-view": {
"version": "0.228.3"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"vim-mode-plus": {
"version": "1.36.7"
},
"vim-mode-plus-exchange": {
"version": "0.4.0"
},
"vim-mode-plus-keymaps-for-surround": {
"version": "0.2.1"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.8"
},
"wrap-guide": {
"version": "0.41.0"
},
"Zen": {
"version": "0.18.0"
}
}
{
"*": {
"Zen": {
"width": 80
},
"accents-ui": {
"accentColor": {
"alpha": 1,
"blue": 200,
"green": 157,
"red": 50
},
"hexColor": "#329dc8"
},
"atom-beautify": {
"general": {
"_analyticsUserId": "095a40eb-6cc8-4637-ab7f-2770be2560be"
}
},
"atom-jshint": {
"hintOnModify": false
},
"autocomplete-plus": {
"confirmCompletion": "enter",
"fileBlacklist": [
".log"
]
},
"autosave": {
"enabled": true
},
"build-cargo": {
"verbose": true
},
"city-lights-ui": {
"fontSize": 14,
"showTabsInTreeView": true,
"tabSize": "large"
},
"color-picker": {
"preferredFormat": "HEX"
},
"core": {
"allowPendingPaneItems": false,
"disabledPackages": [
"outline-selection",
"linter-mysql",
"spell-check",
"react",
"linter-rubocop"
],
"packagesWithKeymapsDisabled": [
"ruby-test-switcher",
"git-time-machine",
"git-blame",
"terminal-tab",
"hey-pane",
"inline-git-diff"
],
"telemetryConsent": "limited",
"themes": [
"one-dark-ui",
"atom-panda-syntax"
],
"titleBar": "custom-inset",
"uriHandlerRegistration": "always"
},
"docblockr": {
"align_tags": "shallow"
},
"editor": {
"fontFamily": "Hack",
"preferredLineLength": 120,
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true,
"softWrap": true,
"softWrapHangingIndent": 4,
"tabType": "soft"
},
"exception-reporting": {
"userId": "a98159d9-1fe0-0af8-8f55-d78a80ba6738"
},
"filetype-color": {
"enabled": "false"
},
"find-and-replace": {
"focusEditorAfterSearch": true,
"projectSearchResultsPaneSplitDirection": "right"
},
"fuzzy-finder": {
"preserveLastSearch": true,
"useAlternateScoring": true
},
"gist-it": {
"gitHubEnterpriseHost": "github.cerner.com",
"newGistsDefaultToPrivate": true,
"openAfterCreate": true
},
"git-blame": {
"colorCommitAuthors": true,
"columnWidth": 418,
"customCommitUrlTemplateString": "https://github.cerner.com/<%- project %>/<%- repo %>/commit/<%- revision %>",
"useCustomUrlTemplateIfStandardRemotesFail": true
},
"git-plus": {
"experimental": {
"autoFetch": 15
},
"remoteInteractions": {
"pullBeforePush": true,
"pullRebase": true
}
},
"glowing-cursor": {
"cursorWidth": 2,
"glowColor": {
"alpha": 1,
"blue": 255,
"green": 213,
"red": 65
},
"innerColor": {
"alpha": 1,
"blue": 255,
"green": 213,
"red": 54
}
},
"inline-git-diff": {
"showInStatusBar": false
},
"isotope-ui": {
"backgroundColor": "false",
"backgroundImagePath": "/Users/cm022291/PIctures/rainy_night.png",
"customBackgroundColor": true,
"customBackgroundColorPicker": {
"alpha": 1,
"blue": 52,
"green": 39,
"red": 41
},
"fontFamily": "Ubuntu",
"fontWeight": "Regular",
"lowContrastTooltip": true,
"spaciousMode": true
},
"jshint": {
"validateOnlyOnSave": true
},
"language-babel": {
"autoIndentJSX": true
},
"language-dotenv": {
"dotenvFileNames": [
".env",
".env.staging",
".env.development"
]
},
"line-ending-selector": {
"defaultLineEnding": "LF"
},
"linter": {
"clearOnChange": true,
"errorPanelHeight": 151,
"ignoreGlob": "**/app/assets/**/*.js",
"ignoredLinterErrors": [
"foodcritic"
],
"lintOnChange": false,
"lintOnChangeInterval": 1000,
"lintOnFly": false,
"showErrorPanel": false,
"statusBar": "Show error of the selected line"
},
"linter-eslint": {
"disabling": {
"rulesToSilenceWhileTyping": [
"no-trailing-spaces"
]
}
},
"linter-jshint": {
"jshintExecutablePath": "/usr/local/bin/jshint"
},
"linter-rubocop": {
"command": "/Users/cm022291/.rvm/gems/ruby-2.7.0@healtheanalytics/bin/rubocop",
"fixOnSave": true,
"useBundler": true
},
"linter-ui-default": {
"panelHeight": 331
},
"minimap": {
"disablePythonDocLinks": true,
"plugins": {
"codeglance": true,
"codeglanceDecorationsZIndex": 0,
"cursorline": true,
"cursorlineDecorationsZIndex": 0,
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"minimap-autohide": false,
"minimap-autohideDecorationsZIndex": 0
}
},
"minimap-codeglance": {
"numberOfLines": 9
},
"multi-wrap-guide": {
"columns": [
80,
120
],
"locked": true,
"silent": true
},
"nyan-indent": {
"color": "midnight",
"customColors": {
"0": "#148bf8",
"1": "#52aafa",
"2": "#7cbffc",
"3": "#a8d5fd",
"4": "#cde7fe"
},
"opacity": 8,
"useCustomColors": true
},
"omni-ruler": {
"columns": [
"80",
"120"
]
},
"one-dark-ui": {
"fontSize": 14
},
"open-recent": {
"listDirectoriesAddedToProject": true,
"maxRecentFiles": 20
},
"outline-selection": {
"outlineColor": "#33aaff",
"outlineOpacity": 0.75,
"outlineRadius": 2,
"outlineWidth": 2
},
"package-generator": {
"packageSyntax": "coffeescript"
},
"platformio-ide-terminal": {
"core": {
"scrollback": 10000
},
"style": {
"defaultPanelHeight": "45%"
},
"toggles": {
"autoClose": true
}
},
"process-palette": {
"palettePanel": {
"showOutputTarget": false
}
},
"project-manager": {
"includeGitRepositories": true,
"savePathsRelativeToHome": true,
"sortBy": "last modified"
},
"pure-ui": {
"general": {
"baseFontSize": 14
},
"imageBackground": {
"accent": "#36c6fc",
"workspaceAlpha": 0.8
}
},
"racer": {
"cargoHome": "~/.cargo",
"racerBinPath": "/Users/cm022291/.cargo/bin/racer"
},
"rainglow": {
"SelectSyntax": "codecourse-rainglow-syntax"
},
"relative-numbers": {
"softWrapsCount": false
},
"remote-ftp": {
"statusbar": {
"enable": true
}
},
"rspec": {
"command": "bundle exec rspec"
},
"runner": {
"extensions": {
"ps1": "powershell –file",
"spec.coffee": "mocha"
},
"scopes": {
"coffee": "coffee",
"go": "go run",
"js": "node",
"powershell": "powershell -noninteractive -noprofile -c -",
"python": "ipython",
"ruby": "ruby",
"shell": "bash"
}
},
"spell-check": {
"locales": [
"en-US",
"fr-FR"
],
"useSystem": false
},
"split-diff": {
"diffWords": true,
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green",
"scrollSyncType": "Vertical + Horizontal",
"syncHorizontalScroll": true
},
"steam-pirate-ui": {
"blurBackground": "5"
},
"swackets": {
"colorParens": true,
"colorSquareBrackets": true,
"colors": [
"#c454bf",
"#429ada",
"#3dda3d",
"#f7f748",
"#e78326",
"#c40708"
]
},
"sync-settings": {
"autoCheckForUpdatedBackup": "no",
"disallowedSettings": [
"gist-it.userToken"
],
"hiddenSettings": {},
"quietUpdateCheck": true
},
"tabs": {
"enableVcsColoring": true
},
"term2": {
"cursorBlink": false,
"shellArguments": "--login"
},
"terminal-plus": {
"style": {
"animationSpeed": 2
},
"toggles": {
"autoClose": true,
"cursorBlink": false
}
},
"terminal-tab": {
"defaultLocation": "center",
"shellSettings": {}
},
"termination": {
"core": {
"scrollback": 10000
},
"customTexts": {
"customText1": "rr $D/$F:$L"
},
"style": {
"animationSpeed": 5,
"defaultPanelHeight": "25%",
"theme": "dracula"
},
"toggles": {
"cloneTerminalPlus": false,
"cursorBlink": false
}
},
"tree-view": {
"focusOnReveal": false,
"squashDirectoryNames": true
},
"vim-mode": {
"useClipboardAsDefaultRegister": true,
"useSmartcaseForSearch": true
},
"vim-mode-plus": {
"automaticallyEscapeInsertModeOnActivePaneItemChange": true,
"keymapBackslashToInnerCommentOrParagraphWhenToggleLineCommentsIsPending": true,
"keymapCCToChangeInnerSmartWord": true,
"keymapPToPutWithAutoIndent": true,
"keymapSToSelect": true,
"keymapUnderscoreToReplaceWithRegister": true,
"keymapYToYankToLastCharacterOfLine": true,
"showHoverSearchCounter": true,
"statusBarModeStringStyle": "long",
"useSmartcaseForSearch": true,
"useSmartcaseForSearchCurrentWord": true,
"wrapLeftRightMotion": true
},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": false
},
"wrap-guide": {
"columns": [
80,
120
]
}
}
}
# 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'
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'.source.js':
'Console log':
'prefix': 'con'
'body': "console.log(${1:''});$2"
'beforeEach':
'prefix': 'bef'
'body':'''
beforeEach(() => {
$1
});$2
'''
'describe':
'prefix': 'desc'
'body':'''
describe('${1:The thing described}', () => {
${2://body of the suite/context}
});$3
'''
'it':
'prefix': 'it'
'body':'''
it('${1:The test description}', () => {
${2://body of the test}
});$3
'''
'spyOn':
'prefix': 'spyOn'
'body': "spyOn(${1:window}, '${2:functionName}');"
'.source.ruby':
'Pry':
'prefix': 'pry'
'body': 'require "pry"; binding.pry'
'do..end':
'prefix': 'do'
'body': '''
do${1: |${2:param}|}
$3
end$4
'''
'context':
'prefix': 'con'
'body': '''
context '$1' do
$2
end$3
'''
'before':
'prefix': 'bef'
'body': '''
before do
$1
end
'''
'describe':
'prefix': 'desc'
'body': '''
describe '$1' do
$2
end$3
'''
'it':
'prefix': 'it'
'body': '''
it '$1' do
$2
end$3
'''
'it renders a template':
'prefix': 'itr'
'body': '''
it { is_expected.to render_template ${1::show} }$0
'''
'it has an http status':
'prefix': 'ith'
'body': '''
it { is_expected.to have_http_status ${1::ok} }$0
'''
'it (short form)':
'prefix': 'its'
'body': '''
it { is_expected.to ${1:eq} ${2:expected} }$0
'''
'let':
'prefix': 'let'
'body': '''
let(:$1) { $2 }$3
'''
'let params':
'prefix': 'letp'
'body': '''
let(:params) { { $1 } }$0
'''
'FactoryBot.create_list':
'prefix': 'fbcl'
'body': '''
FactoryBot.create_list(:${1:model_name}, ${2:2})$0
'''
'FactoryBot.create':
'prefix': 'fbcr'
'body': '''
FactoryBot.create(:${1:model_name})$0
'''
'.source.python':
'Interact':
'prefix': 'interact'
'body': 'import code; code.interact(local=locals())'
'Pry':
'prefix': 'pry'
'body': 'from IPython import embed; embed()'
"*":
test:
prefix: "foo"
body: """
- CLIPBOARD: $CLIPBOARD
- TM_SELECTED_TEXT: $TM_SELECTED_TEXT
- TM_CURRENT_LINE: $TM_CURRENT_LINE
- TM_CURRENT_WORD: $TM_CURRENT_WORD
- TM_LINE_INDEX: $TM_LINE_INDEX
- TM_LINE_NUMBER: $TM_LINE_NUMBER
- TM_FILENAME: $TM_FILENAME
- TM_FILENAME_BASE: $TM_FILENAME_BASE
- TM_DIRECTORY: $TM_DIRECTORY
- TM_FILEPATH: $TM_FILEPATH
- CURRENT_YEAR: $CURRENT_YEAR
- CURRENT_YEAR_SHORT: $CURRENT_YEAR_SHORT
- CURRENT_MONTH: $CURRENT_MONTH
- CURRENT_MONTH_NAME: $CURRENT_MONTH_NAME
- CURRENT_MONTH_NAME_SHORT: $CURRENT_MONTH_NAME_SHORT
- CURRENT_DATE: $CURRENT_DATE
- CURRENT_DAY_NAME: $CURRENT_DAY_NAME
- CURRENT_DAY_NAME_SHORT: $CURRENT_DAY_NAME_SHORT
- CURRENT_HOUR: $CURRENT_HOUR
- CURRENT_MINUTE: $CURRENT_MINUTE
- CURRENT_SECOND: $CURRENT_SECOND
- BLOCK_COMMENT_START: $BLOCK_COMMENT_START
- BLOCK_COMMENT_END: $BLOCK_COMMENT_END
- LINE_COMMENT: $LINE_COMMENT
"""
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
@import "ui-variables";
@import "syntax-variables";
@city-lights-base: #1d252c;
// @base-background-color: @city-lights-base; // this makes the background of text editors a certain color
@blueish: #00c4ff;
@batman-yellow: #FDE311;
@gold: #F5C504;
@command-color: @gold;
@insert-color: #0F4;
@selection-color: #3AF;
atom-text-editor {
background-color: @base-background-color;
.gutter {
background-color: darken(@base-background-color, 2%);
.line-number.git-line-modified {
border-left: 2px solid @blueish;
}
}
.indent-guide {
color: lighten(@base-background-color, 5%);
}
.wrap-guide {
margin-left: 0.2em; // fix rulers being slightly off
}
}
.tree-view {
.status-modified, .status-modified > * {
color: fadeOut(@blueish, 20%) !important;
}
// hide city lights' circles
.list-item:after, .list-item.file:before {
display: none !important;
}
}
.tab {
.status-modified, .status-modified > * {
color: @blueish !important;
}
&:not(.active) .status-modified {
color: fade(@blueish, 50%) !important;
}
}
// Use blue for modified rather than orange.
.minimap {
.git-line-modified{
background: fadeOut(@blueish, 50%);
}
}
.line-highlight(@color) {
.cursor-line {
// box-shadow: 0 0 1px @color;
background-color: fadeOut(@color, 95%);
}
}
// Make I-beam cursor the color I want
atom-text-editor.vim-mode-plus.insert-mode.editor {
.cursor {
border-color: @insert-color !important;
opacity: 1;
}
.line-highlight(@insert-color);
}
.block-cursor(@color) {
border: 1.5px solid @color !important;
border-radius: 3px;
box-shadow: 0 0 7px @color;
background: none !important;
opacity: 1 !important;
}
// Make block cursor more visible
atom-text-editor.vim-mode-plus.normal-mode.editor {
&.is-focused {
.line-highlight(@command-color);
.cursor { .block-cursor(@command-color) }
}
.cursor { .block-cursor(darken(desaturate(@command-color, 20%), 20%)) }
}
atom-text-editor.vim-mode-plus.visual-mode.editor {
.cursor { .block-cursor(@selection-color) }
}
atom-text-editor .selection .region {
background-color: darken(desaturate(@selection-color, 50%), 40%);
}
// Make Vim states more visible
.status-bar-vim-mode-plus-insert {
color: @insert-color;
}
.status-bar-vim-mode-plus-normal {
color: @command-color;
}
.status-bar-vim-mode-plus-visual {
color: @selection-color;
}
// terminal styles
terminal-view {
.xterm {
font-family: 'Source Code Pro', Consolas, monospace;
}
}
// https://discuss.atom.io/t/crazy-3d-angled-tree-view/18765
#atom-perspective() {
@viewing-distance: 12in;
@rotation: 20deg;
// .tree-view, .github-StubItem-git-tab-controller {
// Don't use this for views which aren't entirely read-only (like the git tab) since cursors don't render right.
.tree-view {
transform: translateY(-10vh) perspective(@viewing-distance) rotateY(@rotation);
padding-top: 12vh;
padding-bottom: 12vh;
transform-origin: left;
width: 120%;
height: 120%;
}
body atom-text-editor-minimap {
transform: perspective(@viewing-distance) rotateY(-@rotation);
transform-origin: right;
}
}
// Comment or uncomment the next line to control whether the atom-perspective feature is enabled
// #atom-perspective;
#zen() {
// Zen coding, courtesy of @as-cii 🧘‍♂️💻
//
// Focus on your content and avoid visual noise. When you're viewing/editing a
// file, reduce the opacity of other Atom components, including the docks, the
// status bar, and inactive tabs. When you focus any of those components or
// hover over them, restore their full opacity.
atom-dock, status-bar, .tab-bar .tab, atom-text-editor, .termination.terminal-view {
opacity: 0.5;
transition: 0.2s;
&:hover, &:focus-within {
opacity: 1.0;
}
}
.tab-bar .tab.active, atom-text-editor.is-focused {
opacity: 1;
}
}
// comment or uncomment this to turn off zen
// #zen;
.termination.status-bar {
display: inline-flex;
}
// This was getting highligted red instead of following the syntax theme, and it was ruining the color palettes
.syntax--source.syntax--ruby.syntax--embedded, .syntax--string.syntax--regexp.syntax--arbitrary-repitition {
color: inherit;
}
.terminal-view .dracula, .terminal-view .standard {
background-color: @base-background-color;
}
atom-text-editor .line-number.cursor-line {
opacity: 1;
}
atom-text-editor.editor .line-numbers .relative.current-line {
color: @blueish;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment