Skip to content

Instantly share code, notes, and snippets.

@Dallardtech
Last active August 22, 2020 15:09
Show Gist options
  • Save Dallardtech/58cd2511fe676c743163525bd641eb43 to your computer and use it in GitHub Desktop.
Save Dallardtech/58cd2511fe676c743163525bd641eb43 to your computer and use it in GitHub Desktop.
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()}"
# 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. Unlike style sheets however,
# each selector can only be declared once.
#
# 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':w
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'atom-text-editor[data-grammar~="js"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'atom-text-editor[data-grammar~="tsx"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'atom-text-editor[data-grammar~="liquid"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
'atom-text-editor':
'alt-ctrl-l': 'formatter:format-code'
'alt-cmd-l': 'formatter:format-code'
'alt-cmd-l': 'formatter:format-code'
'alt-cmd-s': 'sort-lines:by-length'
{
"about": {
"version": "1.9.1"
},
"apex-syntax": {
"version": "0.2.0",
"theme": "syntax"
},
"archive-view": {
"version": "0.65.2"
},
"atom-beautify": {
"version": "0.33.4"
},
"atom-dark-fusion-syntax": {
"version": "2.2.1",
"theme": "syntax"
},
"atom-dark-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-dark-ui": {
"version": "0.53.3",
"theme": "ui"
},
"atom-formatter-jsbeautify": {
"version": "1.1.2"
},
"atom-ide-ui": {
"version": "0.13.0"
},
"atom-ide-vue": {
"version": "1.3.1"
},
"atom-ignore": {
"version": "0.2.0"
},
"atom-light-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-light-ui": {
"version": "0.46.3",
"theme": "ui"
},
"atom-monokai": {
"version": "0.10.9",
"theme": "syntax"
},
"atom-typescript": {
"version": "13.6.0"
},
"atom-vue": {
"version": "0.6.0"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-css": {
"version": "0.17.5"
},
"autocomplete-html": {
"version": "0.8.8"
},
"autocomplete-js-import": {
"version": "1.4.0"
},
"autocomplete-modules": {
"version": "2.3.0"
},
"autocomplete-plus": {
"version": "2.42.3"
},
"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.91.2"
},
"busy-signal": {
"version": "2.0.1"
},
"command-palette": {
"version": "0.43.5"
},
"dalek": {
"version": "0.2.2"
},
"deprecation-cop": {
"version": "0.56.9"
},
"dev-live-reload": {
"version": "0.48.1"
},
"emmet": {
"version": "2.4.3"
},
"encoding-selector": {
"version": "0.23.9"
},
"exception-reporting": {
"version": "0.43.1"
},
"find-and-replace": {
"version": "0.219.3"
},
"fuzzy-finder": {
"version": "1.14.2"
},
"git-diff": {
"version": "1.3.9"
},
"git-hide": {
"version": "1.0.0"
},
"github": {
"version": "0.34.2"
},
"go-to-line": {
"version": "0.33.0"
},
"grammar-selector": {
"version": "0.50.1"
},
"ide-vue": {
"version": "0.1.9"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"intentions": {
"version": "1.1.5"
},
"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-gfm": {
"version": "0.90.7"
},
"language-git": {
"version": "0.19.1"
},
"language-go": {
"version": "0.47.2"
},
"language-html": {
"version": "0.53.1"
},
"language-hyperlink": {
"version": "0.17.1"
},
"language-java": {
"version": "0.31.5"
},
"language-javascript": {
"version": "0.134.1"
},
"language-javascript-jsx": {
"version": "0.3.7"
},
"language-json": {
"version": "1.0.5"
},
"language-jsx": {
"version": "0.1.1"
},
"language-less": {
"version": "0.34.3"
},
"language-liquid": {
"version": "0.7.0"
},
"language-make": {
"version": "0.23.0"
},
"language-mustache": {
"version": "0.14.5"
},
"language-next": {
"version": "0.2.0"
},
"language-objective-c": {
"version": "0.16.0"
},
"language-perl": {
"version": "0.38.1"
},
"language-php": {
"version": "0.44.4"
},
"language-postcss": {
"version": "1.3.1"
},
"language-property-list": {
"version": "0.9.1"
},
"language-python": {
"version": "0.53.4"
},
"language-ruby": {
"version": "0.72.23"
},
"language-ruby-on-rails": {
"version": "0.25.3"
},
"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-stencil": {
"version": "0.2.1"
},
"language-styled-jsx": {
"version": "1.0.4"
},
"language-text": {
"version": "0.7.4"
},
"language-todo": {
"version": "0.29.4"
},
"language-toml": {
"version": "0.20.0"
},
"language-ts": {
"version": "1.0.2"
},
"language-typescript": {
"version": "0.6.2"
},
"language-vue": {
"version": "0.26.0"
},
"language-vue-component": {
"version": "0.5.0"
},
"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": "2.3.1"
},
"linter-js-standard": {
"version": "7.0.0"
},
"linter-ui-default": {
"version": "1.8.1"
},
"markdown-preview": {
"version": "0.160.2"
},
"metrics": {
"version": "1.8.1"
},
"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"
},
"platformio-ide-terminal": {
"version": "2.10.0"
},
"pp-markdown": {
"version": "0.0.2"
},
"prettier-atom": {
"version": "0.60.0"
},
"settings-view": {
"version": "0.261.4"
},
"snippets": {
"version": "1.5.1"
},
"solarized-dark-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"solarized-light-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"sort-lines": {
"version": "0.19.0"
},
"spell-check": {
"version": "0.76.1"
},
"status-bar": {
"version": "1.8.17"
},
"styleguide": {
"version": "0.49.12"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "4.3.3"
},
"tabs": {
"version": "0.110.0"
},
"terminal-plus": {
"version": "0.14.5"
},
"timecop": {
"version": "0.36.2"
},
"tool-bar": {
"version": "1.3.0"
},
"tree-view": {
"version": "0.228.0"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"vue-fmt": {
"version": "0.1.1"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.7"
},
"wrap-guide": {
"version": "0.41.0"
}
}
{
"*": {
"atom-toolbar": {
"visible": false
},
"color-picker": {
"preferredFormat": "HEX"
},
"core": {
"audioBeep": false,
"closeDeletedFileTabs": true,
"disabledPackages": [
"wrap-guide",
"split-diff",
"linter"
],
"packagesWithKeymapsDisabled": [],
"telemetryConsent": "no",
"themes": [
"one-dark-ui",
"atom-dark-fusion-syntax"
],
"titleBar": "custom",
"useTreeSitterParsers": false
},
"editor": {
"fontSize": 12,
"scrollPastEnd": true
},
"exception-reporting": {
"userId": "1629cc05-8cda-457e-a378-d0a74ae0c658"
},
"git-blame": {
"columnWidth": 375
},
"git-plus": {
"experimental": {
"useSplitDiff": true
}
},
"linter-ui-default": {
"panelHeight": 300
},
"platformio-ide-terminal": {
"ansiColors": {
"normal": {
"green": "#00ce00",
"white": "#6a3cee",
"yellow": "#c4cd00"
}
},
"customTexts": {
"customText1": "test",
"customText2": "dfsaas"
},
"iconColors": {
"yellow": "#ecff00"
},
"style": {
"fontFamily": "'BlinkMacSystemFont', 'Lucida Grande', 'Matrix Code NFI', 'Segoe UI', Ubuntu, Cantarell, sans-serif",
"fontSize": "12"
}
},
"prettier-atom": {
"formatOnSaveOptions": {
"enabled": true
}
},
"split-diff": {
"colors": {
"addedColor": "#1a6129",
"overrideThemeColors": true,
"removedColor": "#af0205"
},
"ignoreWhitespace": true,
"leftEditorColor": "red",
"rightEditorColor": "green"
},
"sync-settings": {
"extraFiles": [
"toolbar.cson"
],
"hiddenSettings": {}
},
"tool-bar": {
"fullWidth": false,
"iconSize": "12px",
"position": "Right"
},
"tree-view": {
"hideIgnoredNames": true,
"hideVcsIgnoredFiles": true
},
"welcome": {
"showOnStartup": 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:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'.source.js':
'console.log':
'prefix': 'log'
'body': 'console.log($1)'
'input':
'prefix': 'input'
'body': """
<div className='row'>
<div className='col-sm-6'>
</div>
<div className='col-sm-6'>
</div>
</div>
"""
'column':
'prefix': 'col'
'body': """
<div className='row'>
<div className='col-sm-6'>
</div>
<div className='col-sm-6'>
</div>
</div>
"""
'setStateAsync':
'prefix': 'sta'
'body': """
this.setState({products: products}, () => {
this.props.$1
})
"""
'cdm':
'prefix': 'cdm'
'body': """
componentDidMount () {
$1
}
"""
'cdu':
'prefix': 'cdu'
'body': """
componentDidUpdate () {
$1
}
"""
'string.print':
'prefix': 'str'
'body': '{`$1 ${$2}`}'
'small.pre1':
'prefix': 'pre'
'body': """
<pre>{JSON.stringify(this.${1:""}, null, 2) }</pre>
"""
'small.pre2':
'prefix': 'pre2'
'body': """
<div className="small"><pre>{JSON.stringify(this.${1:""}, null, 2) }</pre></div>
"""
'*.jsx':
'set state1':
'prefix': 'st'
'body': 'this.setState((state) => ({$1 : $2}))'
'set string':
'prefix': 'str'
'body': 'JSON.stringify($1)'
'set state':
'prefix': 'st'
'body': """
this.setState({ $1: { ...this.state.agent, key: val } }, () => {
});
"""
'2 cols':
'prefix': 'div.2'
'body': """
<div className='row'>
<div className='col-sm-6'>
$1
</div>
<div className='col-sm-6'>
$2
</div>
</div>
"""
'Map':
'prefix': 'map'
'body': """
import classNames from 'classnames' $1
const $2 = this.props.budgets.map((item, index) => {
const classes = classNames({ $3: false })
return (
<div className={classes}>
$3
</div>
)
})
"""
'*.scss':
'Mobile Media Query':
'prefix': 'media'
'body': """
@media (max-width: 769px) {
$1
}
"""
.theme-one-dark-ui {
.tab-bar { font-size: 12px;}
.tree-view { font-size: 12px; }
.status-bar { font-size: 12px; }
}
.tool-panel .tool-bar > button:nth-child(1) {
color: lightblue;
}
.tool-panel .tool-bar > button:nth-child(2) {
color: orange;
}
.tool-panel .tool-bar > button:nth-child(3) {
color: orange;
}
.tool-panel .tool-bar > button:nth-child(5) {
color: blue;
}
.tool-panel .tool-bar > button:nth-child(6) {
color: #fff;
}
.tool-panel .tool-bar > button:nth-child(7) {
color: #2bda77;
}
.tool-panel .tool-bar > button:nth-child(9) {
color: yellow;
}
.tool-panel .tool-bar > button:nth-child(10) {
color: purple;
}
.github-ChangedFilesCount {
color: yellow!important;
}
@mid: #2f3542;
.terminal-view .standard {
background-color: @mid;
}
.terminal-view .standard {
color: #eee;
}
.platformio-ide-terminal.terminal-view .xterm > .terminal > div > span {
color: #d1bc92!important;
}
.tree-view::-webkit-scrollbar, .tree-view::-webkit-scrollbar-track {
opacity: 0.1;
display: none;
}
.text-error {
color: #c74545;
text-shadow: none;
}
.syntax--punctuation.syntax--section.syntax--embedded {
color: #b7b7b7;
}
.tab-bar .tab:first-child {
margin-left: 8px;
}
.list-group li:not(.list-nested-item).status-modified, .list-tree li:not(.list-nested-item).status-modified, .list-group li.list-nested-item.status-modified > .list-item, .list-tree li.list-nested-item.status-modified > .list-item {
color: #D1BC92;
}
.tab-bar .tab:first-child {
margin-left: 0px;
}
.icon-git-commit {
background: #5b5b63;
margin: -2px -1px -1px -1px;
border-bottom: 1px solid black;
}
[
{
faLink: '//http://fontawesome.io/icons/',
type: 'button'
tooltip: 'Auto indent (selection)'
callback: 'editor:auto-indent'
icon: 'indent'
iconset: 'fa'
}
{
type: 'button'
tooltip: 'Previous cursor position alt--'
callback: 'last-cursor-position:previous'
icon: 'level-up'
iconset: 'fa'
}
{
type: 'button'
tooltip: 'Next cursor position alt-_'
callback: ' last-cursor-position:next'
icon: 'level-down'
iconset: 'fa'
}
{
type: 'spacer'
}
{
type: 'button'
tooltip: 'Reload Window'
callback: 'window:reload'
icon: 'refresh'
iconset: 'ion'
}
{
type: 'button'
tooltip: 'Open Settings View'
callback: 'window:toggle-dev-tools'
icon: 'cursor-default-outline'
iconset: 'mdi'
}
{
type: 'button'
tooltip: 'Open Settings View'
callback: 'settings-view:open'
icon: 'gear-a'
iconset: 'ion'
}
{
type: 'spacer'
}
{
type: 'button'
tooltip: 'Diff ctrl-alt-t'
callback: 'split-diff:toggle'
icon: 'usb'
iconset: 'ion'
}
{
type: 'spacer'
}
{
type: 'button'
tooltip: 'key-binding-resolver:toggle'
callback: 'key-binding-resolver:toggle'
icon: 'key'
iconset: 'ion'
}
{
type: 'button'
tooltip: 'pane:split-right cmd-alt-2'
callback: 'pane:split-right'
icon: 'columns'
iconset: 'fa'
}
{
type: 'button'
tooltip: 'todo-show:find-in-workspace ctrl-shift-T'
callback: 'todo-show:find-in-workspace'
icon: 'check-square-o'
iconset: 'fa'
}
{
type: 'spacer'
}
{
type: 'button'
tooltip: 'markdown-preview:toggle'
callback: 'markdown-preview:toggle'
icon: 'file-code-o'
iconset: 'fa'
}
{
type: 'spacer'
}
{
type: "url"
url: "https://github.com/twbs/bootstrap/blob/v3.3.7/less/variables.less"
tooltip: "Bootstrap vars"
icon: 'twitter-square'
iconset: 'fa'
}
{
type: 'button'
callback: "color-picker:open"
tooltip: "color-picker:open Cdm-Shit-C"
icon: 'paint-brush'
iconset: 'fa'
}
{
type: 'button'
callback: "open-git-modified-files:open"
tooltip: "open-git-modified-files:open Cdm-Shit-C"
icon: 'github-square'
iconset: 'fa'
}
{
type: 'button'
callback: "git-time-machine:toggle"
tooltip: "Git Timemachine alt-t"
icon: 'clock'
iconset: 'ion'
}
{
type: 'spacer'
}
{
type: "url"
url: "https://meet.google.com/qkz-sxvg-ndd"
tooltip: "SS Stand Up"
icon: 'ios-people'
iconset: 'ion'
}
{
type: "url"
url: "https://meet.google.com/gqe-fbut-euy"
tooltip: "Web Stand Up"
icon: 'ios-people'
iconset: 'ion'
}
{
type: 'spacer'
}
{
type: "button"
callback: "platformio-ide-terminal:insert-custom-text-1"
tooltip: "platformio-ide-terminal:insert-custom-text-1"
icon: 'headphone'
iconset: 'ion'
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment