Skip to content

Instantly share code, notes, and snippets.

@dnnsmnstrr
Last active June 21, 2022 14:57
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 dnnsmnstrr/92968648b5ea54edbee216e87e52c15e to your computer and use it in GitHub Desktop.
Save dnnsmnstrr/92968648b5ea54edbee216e87e52c15e to your computer and use it in GitHub Desktop.
Atom Settings Backup by https://atom.io/packages/sync-settings
# Init script
# My atom keymap
# @dnnsmnstrr
'atom-text-editor':
'ctrl-shift-M': 'markdown-preview-enhanced:toggle'
'atom-workspace':
'ctrl-shift-b': 'browser-plus:open'
'ctrl-cmd-i': 'node-debug:run'
'ctrl-alt-shift-cmd-n': 'atom-notes:toggle'
'atom-text-editor[data-grammar~=js]':
'ctrl-shift-r': 'atom-react-preview:toggle'
'atom-text-editor:not(.mini)':
'alt-cmd-x': 'snippets:available'
'.tree-view':
'r': 'tree-view:move'
'f': 'tree-view:show-in-file-manager'
'p': 'tree-view:copy-project-path'
'body':
'ctrl-tab': 'pane:show-next-item'
'ctrl-tab ^ctrl': 'unset!'
'ctrl-shift-tab': 'pane:show-previous-item'
'ctrl-shift-tab ^ctrl': 'unset!'
{
"about": {
"version": "1.9.1"
},
"activate-power-mode": {
"version": "2.7.0"
},
"archive-view": {
"version": "0.66.0"
},
"atom-bash": {
"version": "1.1.1"
},
"Atom-Bash-Snippets": {
"version": "0.0.3"
},
"atom-beautify": {
"version": "0.33.4"
},
"atom-clock": {
"version": "0.1.18"
},
"atom-dark-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-dark-ui": {
"version": "0.53.3",
"theme": "ui"
},
"atom-html-preview": {
"version": "0.2.7"
},
"atom-ide-debugger-node": {
"version": "0.7.3"
},
"atom-ide-debugger-react-native": {
"version": "0.7.3"
},
"atom-ide-ui": {
"version": "0.13.0"
},
"atom-jasmine": {
"version": "0.10.0"
},
"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-material-syntax": {
"version": "1.0.8",
"theme": "syntax"
},
"atom-material-ui": {
"version": "2.1.3",
"theme": "ui"
},
"atom-notes": {
"version": "1.23.0"
},
"atom-quokka": {
"version": "1.0.270"
},
"atom-react-autocomplete": {
"version": "0.1.10"
},
"atom-react-native-style": {
"version": "0.2.0"
},
"atom-react-proptypes-autocomplete": {
"version": "0.2.2"
},
"atom-ternjs": {
"version": "0.20.0"
},
"atom-typescript": {
"version": "14.4.0"
},
"atom-yarn": {
"version": "0.9.0"
},
"auto-dark-mode": {
"version": "0.6.0"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-clang": {
"version": "0.13.1"
},
"autocomplete-css": {
"version": "0.17.5"
},
"autocomplete-emojis": {
"version": "2.5.0"
},
"autocomplete-en-en": {
"version": "0.2.0"
},
"autocomplete-html": {
"version": "0.8.8"
},
"autocomplete-jsdoc": {
"version": "0.0.2"
},
"autocomplete-plus": {
"version": "2.42.4"
},
"autocomplete-snippets": {
"version": "1.12.1"
},
"autoflow": {
"version": "0.29.4"
},
"autosave": {
"version": "0.24.6"
},
"ava": {
"version": "0.13.0"
},
"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"
},
"browser-plus": {
"version": "0.0.98"
},
"build": {
"version": "0.70.0"
},
"busy-signal": {
"version": "2.0.1"
},
"command-palette": {
"version": "0.43.5"
},
"cucumber": {
"version": "0.7.0"
},
"dalek": {
"version": "0.2.2"
},
"dash": {
"version": "1.7.1"
},
"debug": {
"version": "0.0.1"
},
"deprecation-cop": {
"version": "0.56.9"
},
"dev-live-reload": {
"version": "0.48.1"
},
"docblockr": {
"version": "0.14.2"
},
"docs-snippets": {
"version": "0.8.0"
},
"duplicate-line-or-selection": {
"version": "0.9.0"
},
"encoding-selector": {
"version": "0.23.9"
},
"exception-reporting": {
"version": "0.43.1"
},
"expand-region": {
"version": "0.5.0"
},
"fast-eslint": {
"version": "4.15.0"
},
"file-icons": {
"version": "2.1.47"
},
"find-and-replace": {
"version": "0.219.8"
},
"font-viewer": {
"version": "1.0.5"
},
"format-shell": {
"version": "2.2.1"
},
"format-standard": {
"version": "4.3.0"
},
"fuzzy-finder": {
"version": "1.14.3"
},
"git-blame": {
"version": "1.8.0"
},
"git-control": {
"version": "0.9.0"
},
"git-diff": {
"version": "1.3.9"
},
"git-plus": {
"version": "8.7.1"
},
"git-time-machine": {
"version": "2.1.0"
},
"github": {
"version": "0.36.9"
},
"gitlab": {
"version": "0.1.3-7"
},
"gitlab-integration": {
"version": "0.4.8"
},
"gitlab-manager": {
"version": "0.2.2"
},
"go-to-line": {
"version": "0.33.0"
},
"grammar-selector": {
"version": "0.50.1"
},
"highlight-line": {
"version": "0.12.0"
},
"highlight-selected": {
"version": "0.17.0"
},
"Hydrogen": {
"version": "2.16.3"
},
"hyperclick": {
"version": "0.0.0"
},
"hypest-dark": {
"version": "0.8.0",
"theme": "ui"
},
"hypest-dark-syntax": {
"version": "0.1.0",
"theme": "syntax"
},
"ide-bash": {
"version": "1.0.11"
},
"ide-flowtype": {
"version": "0.24.0"
},
"ide-json": {
"version": "0.2.1"
},
"ide-typescript": {
"version": "0.9.5"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"intentions": {
"version": "2.1.1"
},
"jekyll": {
"version": "2.1.0"
},
"js-hyperclick": {
"version": "1.19.0"
},
"jsdoc-generator": {
"version": "0.2.5"
},
"keybinding-resolver": {
"version": "0.39.1"
},
"language-applescript": {
"version": "0.3.0"
},
"language-atom-notes": {
"version": "0.4.1"
},
"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.45.1"
},
"language-gfm": {
"version": "0.90.8"
},
"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-ini": {
"version": "1.25.0"
},
"language-java": {
"version": "0.32.1"
},
"language-javascript": {
"version": "0.134.1"
},
"language-javascript-jxa": {
"version": "0.2.9"
},
"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-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-svg": {
"version": "0.9.2"
},
"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"
},
"latex": {
"version": "0.50.2"
},
"line-ending-selector": {
"version": "0.7.7"
},
"link": {
"version": "0.31.6"
},
"linkist": {
"version": "1.3.3"
},
"lint": {
"version": "0.0.1"
},
"linter": {
"version": "3.4.0"
},
"linter-coffeelint": {
"version": "2.0.92"
},
"linter-eslint": {
"version": "9.0.1"
},
"linter-eslint-node": {
"version": "1.0.5"
},
"linter-gcc": {
"version": "0.9.0"
},
"linter-gcc2": {
"version": "0.8.8"
},
"linter-js-standard": {
"version": "7.0.0"
},
"linter-shellcheck": {
"version": "1.6.0"
},
"linter-ui-default": {
"version": "3.4.1"
},
"linter-xo": {
"version": "0.31.0"
},
"local-history": {
"version": "4.3.1"
},
"markdown-preview": {
"version": "0.160.2"
},
"markdown-preview-enhanced": {
"version": "0.19.2"
},
"markdown-preview-plus": {
"version": "4.11.3"
},
"merge-conflicts": {
"version": "1.4.5"
},
"metrics": {
"version": "1.8.1"
},
"minimap": {
"version": "4.40.1"
},
"minimap-cursorline": {
"version": "1.0.5"
},
"minimap-git-diff": {
"version": "4.3.6"
},
"minimap-highlight-selected": {
"version": "4.6.6"
},
"minimap-quick-highlight": {
"version": "1.0.1"
},
"minimap-selection": {
"version": "4.5.5"
},
"multi-cursor": {
"version": "3.0.0"
},
"native-color-picker": {
"version": "0.2.5"
},
"node-requirer": {
"version": "0.1.12"
},
"nord-atom-syntax": {
"version": "0.10.0",
"theme": "syntax"
},
"nord-atom-ui": {
"version": "0.12.0",
"theme": "ui"
},
"notifications": {
"version": "0.72.1"
},
"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"
},
"package-script-runner": {
"version": "1.0.0"
},
"pdf-view": {
"version": "0.73.0"
},
"pigments": {
"version": "0.40.6"
},
"platformio-ide": {
"version": "2.7.2"
},
"platformio-ide-debugger": {
"version": "1.2.6"
},
"platformio-ide-terminal": {
"version": "2.10.1"
},
"pp": {
"version": "0.0.1"
},
"prettier-atom": {
"version": "0.60.1"
},
"pretty-json": {
"version": "2.1.2"
},
"preview": {
"version": "0.19.0"
},
"project-manager": {
"version": "3.3.8"
},
"project-plus": {
"version": "1.0.0"
},
"re-re-re-react": {
"version": "3.0.0"
},
"react": {
"version": "0.18.0"
},
"react-es6-snippets": {
"version": "0.3.0"
},
"react-native-components": {
"version": "0.1.1"
},
"react-native-snippets": {
"version": "0.3.0"
},
"react-snippets-for-atom": {
"version": "0.2.0"
},
"react-storybook-snippets": {
"version": "0.3.0"
},
"script": {
"version": "3.32.2"
},
"scroll-through-time": {
"version": "0.3.1"
},
"seti-syntax": {
"version": "1.2.0",
"theme": "syntax"
},
"seti-ui": {
"version": "1.11.0",
"theme": "ui"
},
"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"
},
"sort-lines": {
"version": "0.19.0"
},
"spell-check": {
"version": "0.77.1"
},
"split-diff": {
"version": "1.6.1"
},
"standard-formatter": {
"version": "2.8.0"
},
"standard-react-snippets": {
"version": "2.0.0"
},
"standardjs-snippets": {
"version": "2.6.2"
},
"status-bar": {
"version": "1.8.17"
},
"styled-components-snippets": {
"version": "0.13.0"
},
"styleguide": {
"version": "0.49.12"
},
"svg-preview": {
"version": "0.14.0"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "5.2.16"
},
"TabNine": {
"version": "4.0.7"
},
"tabs": {
"version": "0.110.2"
},
"telegraf-atom": {
"version": "1.2.1"
},
"teletype": {
"version": "0.13.4"
},
"terminal-plus": {
"version": "0.14.5"
},
"test": {
"version": "0.1.2"
},
"tester": {
"version": "1.4.0"
},
"tester-jest": {
"version": "1.2.4"
},
"timecop": {
"version": "0.36.2"
},
"todo-show": {
"version": "2.3.2"
},
"tool-bar": {
"version": "1.4.4"
},
"touchbar": {
"version": "0.16.1"
},
"touchbar-plus": {
"version": "0.3.1"
},
"touchbar-registry": {
"version": "0.3.2"
},
"touchbar-run": {
"version": "0.1.1"
},
"touchbar-utility": {
"version": "3.3.0"
},
"tree-view": {
"version": "0.229.1"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"wakatime": {
"version": "11.0.10"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.8"
},
"wikilink": {
"version": "0.18.0"
},
"wrap-guide": {
"version": "0.41.0"
},
"xatom-debug": {
"version": "1.6.11"
},
"xatom-debug-chrome": {
"version": "0.7.4"
},
"xatom-debug-nodejs": {
"version": "0.9.3"
},
"zentabs": {
"version": "0.8.9"
}
}
{
"*": {
"Hydrogen": {},
"activate-power-mode": {
"autoToggle": false,
"comboMode": {},
"playAudio": {
"enabled": true
},
"plugins": {
"playAudio": true,
"screenShake": true
}
},
"atom-beautify": {
"bash": {
"beautify_on_save": true
},
"executables": {
"beautysh": {
"path": "/usr/local/bin/beautysh"
}
},
"general": {
"_analyticsUserId": "1d32ae64-ff64-4cf8-acd3-f8dfa6d889ab",
"beautifyEntireFileOnSave": false
},
"html": {
"beautify_on_save": true,
"preserve_newlines": false
},
"js": {
"end_with_comma": true
},
"json": {
"beautify_on_save": true
},
"jsx": {
"default_beautifier": "JS Beautify"
},
"markdown": {
"beautify_on_save": true,
"default_beautifier": "Prettier"
},
"xml": {}
},
"atom-clock": {
"showOnlyInFullscreen": true,
"showTooltip": true,
"tooltipDateFormat": "YYYY-MM-DD"
},
"atom-ide-ui": {
"atom-ide-code-format": {
"formatOnType": false
},
"debugger-exceptionBreakpointsCollapsed": true,
"use": {
"atom-ide-diagnostics-ui": "never"
}
},
"atom-notes": {
"directory": "~/zettelkasten/notes",
"ignorePaths": [
".git",
".DS_Store",
".neuron",
".obsidian"
]
},
"atom-package-deps": {
"ignored": [
"re-re-re-react"
]
},
"atom-storybook": {
"atomStorybookUrl": "http://localhost:9009"
},
"atom-ternjs": {
"inlineFnCompletionDocumentation": true,
"snippetsFirst": true,
"useSnippets": true
},
"atom-yarn": {
"promptInstall": false
},
"autocomplete-plus": {
"confirmCompletion": "enter",
"enableExtendedUnicodeSupport": true,
"minimumWordLength": 0,
"moveToCancel": true,
"similarSuggestionRemoval": "textOrSnippet"
},
"core": {
"closeDeletedFileTabs": true,
"disabledPackages": [
"markdown-preview",
"platformio-ide-debugger",
"pp",
"preview",
"linter-gcc",
"language-rust-bundled",
"touchbar",
"latex",
"Hydrogen",
"atom-beautify",
"gitlab-integration",
"ghost-text",
"travis-ci-status",
"activate-power-mode",
"ide-bash",
"ide-typescript",
"ide-flowtype",
"markdown-preview-plus",
"scroll-through-time",
"telegraf-atom",
"dash",
"linter-gcc2",
"atom-typescript",
"atom-react-autocomplete",
"atom-react-proptypes-autocomplete",
"atom-yarn",
"atom-ternjs",
"xatom-debug",
"fast-eslint",
"prettier-atom",
"terminal-plus",
"re-re-re-react",
"lint",
"teletype",
"react",
"platformio-ide"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"desktop.ini",
".pioenvs",
".piolibdeps",
".clang_complete",
".gcc-flags.json"
],
"packagesWithKeymapsDisabled": [
"platformio-ide",
"mojave-dark-mode"
],
"packagesWithSnippetsDisabled": [],
"telemetryConsent": "limited"
},
"editor": {
"tabType": "soft"
},
"exception-reporting": {
"userId": "096c4a4f-b3e3-4c2e-91ec-2d21955c5b7c"
},
"fast-eslint": {
"baseConfigExtends": [
"standard",
"standard-react"
]
},
"file-icons": {
"coloured": false
},
"format-standard": {},
"git-blame": {
"columnWidth": 229
},
"git-plus": {
"experimental": {
"autoFetch": 15
},
"general": {}
},
"github": {
"remoteFetchProtocol": "ssh"
},
"gitlab-integration": {
"token": "hfNneqtNBqEmXY6DRedb"
},
"gitlab-manager": {
"token": "BYw3z458qkAxkN6xJtTa",
"userID": 109
},
"hypest-dark": {
"vibrancy": true
},
"language-atom-notes": {},
"language-babel": {
"autoIndentJSX": true,
"emmetCSSAutocomplete": true
},
"linter-eslint": {
"autofix": {},
"disabling": {
"disableWhenNoEslintConfig": false
},
"global": {
"globalNodePath": "/usr/local"
}
},
"linter-js-standard": {
"checkStyleDevDependencies": true,
"lintHtmlFiles": true,
"lintMarkdownFiles": true,
"showEslintRules": true
},
"linter-ui-default": {
"alwaysTakeMinimumSpace": true,
"panelHeight": 188,
"tooltipFollows": "Mouse"
},
"linter-xo": {
"fixOnSave": true
},
"markdown-preview-enhanced": {
"enableHTML5Embed": true,
"frontMatterRenderingOption": "code block",
"previewTheme": "one-dark.css",
"revealjsTheme": "black.css"
},
"markdown-preview-plus": {
"syntaxThemeName": "one-dark-syntax"
},
"minimap": {
"absoluteMode": true,
"adjustAbsoluteModeHeight": true,
"plugins": {
"cursorline": true,
"cursorlineDecorationsZIndex": 0,
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0,
"minimap-quick-highlight": true,
"minimap-quick-highlightDecorationsZIndex": 0,
"selection": true,
"selectionDecorationsZIndex": 0
}
},
"mojave-dark-mode": {},
"node-debug": {},
"one-dark-ui": {
"stickyHeaders": true,
"tabCloseButton": "Left"
},
"one-light-ui": {
"stickyHeaders": true,
"tabSizing": "Minimum"
},
"package-script-runner": {},
"pdf-view": {
"nightMode": true
},
"pigments": {
"autocompleteSuggestionsFromValue": true,
"notifyReloads": false
},
"platformio-ide": {
"advanced": {
"useBuiltinPIOCore": true
}
},
"platformio-ide-terminal": {
"core": {
"mapTerminalsTo": "Folder",
"shell": "/bin/zsh"
},
"toggles": {
"autoClose": true
}
},
"prettier-atom": {},
"pretty-json": {
"prettifyOnSaveJSON": true
},
"preview": {
"_analyticsUserId": "a850c85f-b7c2-4dfb-82f0-7e39d9345fae"
},
"project-manager": {
"includeGitRepositories": true
},
"scroll-through-time": {
"modifierKey": "altKey"
},
"spell-check": {
"grammars": [
"source.asciidoc",
"source.gfm",
"text.git-commit",
"text.plain",
"text.plain.null-grammar",
"source.rst",
"text.restructuredtext",
"source.gfm.notes"
]
},
"split-diff": {
"ignoreWhitespace": true
},
"standard-formatter": {
"checkStyleDevDependencies": true,
"honorPackageConfig": false,
"style": "standard-format"
},
"svg-preview": {
"grammars": [
"text.plain.null-grammar",
"text.xml",
"text.xml.svg",
"text.svg"
],
"openPreviewAutomatically": true
},
"sync-settings": {
"hiddenSettings": {},
"installLatestVersion": true,
"quietUpdateCheck": true
},
"tool-bar": {
"position": "Left",
"useTouchBar": false,
"visible": false
},
"touchbar": {
"buttons": "[\n {\"type\":\"button\", \"name\":\"sidebar\", \"label\":\"\",\n \"size\":\"small\", \"iconColor\":\"white\", \"color\":\"#00716c\",\n \"command\":\"tree-view:toggle\",\n \"icon\":\"NSTouchBarSidebarTemplate\"\n },\n {\"type\":\"button\", \"name\":\"comment-button\", \"label\":\"//\",\n \"size\":\"large\", \"iconColor\":\"default\", \"color\":\"#5712d6\",\n \"command\":\"editor:toggle-line-comments\"\n },\n {\"type\":\"spacer\", \"name\":\"comment-spacer\", \"label\":\"\", \"size\":\"large\"},\n {\"type\":\"spacer\", \"name\":\"color-spacer\", \"label\":\"\", \"size\":\"large\"},\n\n {\"type\":\"color-picker\", \"name\":\"color-picker\"},\n {\"type\":\"button\", \"name\":\"toggle-command-palette\",\n \"command\":\"command-palette:toggle\", \"label\":\"🎨\"\n },\n {\"type\":\"popover\", \"name\":\"emoji-popover\", \"label\":\"😄\",\n \"size\":\"large\", \"iconColor\":\"default\", \"color\":\"#000000\",\n \"elements\":[\n {\"name\":\"emoji-scrubber\",\"type\":\"scrubber\",\"label\":\"😄\",\"items\":\"emojis\"}\n ]\n },\n\n {\"type\":\"spacer\", \"name\":\"snippets-spacer\", \"label\":\"\", \"size\":\"large\"},\n {\"type\":\"popover\", \"name\":\"snippets\", \"label\":\"Snippets\",\n \"size\":\"large\", \"iconColor\":\"default\", \"color\":\"#000000\",\n \"elements\":[]\n },\n {\"type\":\"button\", \"name\":\"git\", \"label\":\" Git\",\n \"size\":\"large\", \"iconColor\":\"default\", \"color\":\"#000000\",\n \"command\":\"github:toggle-git-tab\"\n },\n {\"type\":\"button\", \"name\":\"github\", \"label\":\"Hub ‌‌ \",\n \"size\":\"large\", \"iconColor\":\"default\", \"color\":\"#000000\",\n \"command\":\"github:toggle-github-tab\"\n },\n {\"type\":\"button\", \"name\":\"terminal\", \"label\":\"\",\n \"size\":\"small\", \"iconColor\":\"black\", \"color\":\"#bababa\",\n \"command\":\"platformio-ide-terminal:toggle\",\n \"icon\":\"NSTouchBarTextBoxTemplate\"\n }\n]"
},
"touchbar-utility": {
"backup": "const { dispatchAction } = require('./dispatchAction');\n\nexports.configuration = [{\n type: 'label',\n label: 'touchbar-utility rocks! 🎸🤘'\n}, {\n type: 'button',\n label: '💅',\n clickDispatchAction: 'atom-beautify:beautify-editor',\n backgroundColor: '#b355d6'\n}, {\n type: 'button',\n label: '//',\n clickDispatchAction: 'editor:toggle-line-comments',\n backgroundColor: '#4899a8'\n}, {\n type: 'group',\n items: [{\n type: 'popover',\n label: 'Popover',\n items: [{\n type: 'slider',\n label: 'Slider',\n value: 10,\n minValue: 0,\n maxValue: 35,\n change: (newValue) => {\n console.log('Slider value: ' + String(newValue));\n }\n }]\n }, {\n type: 'button',\n label: 'Log to console',\n click: () => {\n console.log('Beep boop');\n },\n backgroundColor: '#e3e262'\n }, {\n type: 'color-picker',\n availableColors: ['#AA7942', '#FF9300', '#00FDFF'],\n selectedColor: '#FF9300',\n change: (color) => {\n atom.notifications.addInfo(String(color));\n }\n }]\n}]\n",
"lastVersion": "3.3.0"
},
"travis-ci-status": {
"travisCiRemoteName": "master"
},
"tree-view": {
"hideIgnoredNames": true
},
"wakatime": {
"apikey": "Enter your api key..."
},
"welcome": {
"showOnStartup": false
},
"xatom-debug": {
"toolbarStyle": "BottomPanel"
},
"zentabs": {
"maximumOpenedTabs": 10,
"neverCloseDirty": true,
"neverCloseNew": true,
"neverCloseUnsaved": true
}
},
".js.jsx.source": {
"editor": {
"scrollPastEnd": false
}
}
}
# My snippets (@dnnsmnstrr)
# JS
'.source.js, .source.ts':
# Functions
'Const function':
'prefix': 'cf'
'body': 'const ${1:function} = (${2}) => {$3}'
'Const async function':
'prefix': 'caf'
'body': 'const ${1:function} = async (${2}) => {$3}'
'Arrow function':
'prefix': 'ar'
'body': '(${1}) => {${2}}'
'Async function':
'prefix': 'as'
'body': 'async (${1}) => {${2}}'
'Export default function':
'prefix': 'edf'
'body': 'export default function ${1:name} (props) {${2}}'
# Hooks
'useState const':
'prefix': 'cs'
'body': 'const [${1:variable}, set${1/(.+)/\\u$1/}] = useState(${2})'
'useEffect':
'prefix': 'ue'
'body': 'useEffect(() => {$2}, [${1}])'
'Set State Effect':
'prefix': 'se'
'body': 'useEffect(() => {
set${1/(.+)/\\u$1/}($1)
}, [${1}])'
# Flow control
'if, else if, else':
'prefix': 'ieie'
'body': """
if (${1:true}) {
$2
} else if (${3:false}) {
$4
} else {
$5
}
"""
# React
'Import React':
'prefix': 'imr'
'body': "import { ${1:useState} } from 'react'$2"
'Import from Ant Design':
'prefix': 'imant'
'body': "import { ${1:Typography} } from 'antd'$2"
'Import styled-components':
'prefix': 'ims'
'body': "import styled from 'styled-components'"
'Styled Component':
'prefix': 'sty'
'body': """const $1 = styled($2)`
$3
`$4"""
'React Component':
'prefix': 'rc'
'body': """
const $1 = (props) => {
return (
<$2 />
)
}
export default $1
"""
'Material Component':
'prefix': 'rcm'
'body': """
import React from 'react'
import {
$2
} from '@material-ui/core'
const $1 = (props) => {
return (
<$2 />
)
}
export default $1
"""
'Translate':
'prefix': 't'
'body': "t('$1')"
'Classname':
'prefix': 'cn'
'body': 'className={classes.${1:name}}'
# React Native
'Import React Native':
'prefix': 'imrn'
'body': "import { ${1:View} } from 'react-native'$2"
'Functional RN Component':
'prefix': 'rnf'
'body': """
import React from 'react'
import { ${3:View} } from 'react-native'
import PropTypes from 'prop-types'
function $1 ({ $2, ...restProps }) {
return (
<${3:View}>
$4
</${3:View}>
)
}
$1.propTypes = {
$2
}
$1.defaultProps = {
$2
}
export default $1
"""
'Inline style prop':
'prefix': 'stl'
'body': "style={{ ${1:flexDirection} }}"
'Layout':
'prefix': 'layout'
'body': """
flex: '${1:100}%',
width: '${2:100}%',
height: '${3:100}%',
justifyContent: '${4:center}',
alignItems: '${5:center}'
"""
'Dimensions':
'prefix': 'dim'
'body': """
width: '${1:100}%',
height: '${2:100}%'
"""
'Flex':
'prefix': 'f1'
'body': "flex: ${1:1}${2:,}"
'Flex Direction':
'prefix': 'fd'
'body': "flexDirection: '${1:row}'${2:,}"
'Align Items':
'prefix': 'ai'
'body': "alignItems: '${1:center}'${2:,}"
'Justify Content':
'prefix': 'jc'
'body': "justifyContent: '${1:center}'${2:,}"
# Debugging
'console.log':
'prefix': 'l'
'body': "console.log('${1:variable}', ${1:variable})"
'console.table':
'prefix': 'ct'
'body': "console.table(${1:variable})"
'console.count':
'prefix': 'cc'
'body': "console.count('${1:counter}')"
'console.assert':
'prefix': 'cass'
'body': "console.assert(${1:assertion}, '${2:message}')"
'console.log in effect':
'prefix': 'le'
'body': "useEffect(() => console.log('${1}', ${1}), [${1}])"
# Testing
'testID':
'prefix': 'id'
'body': 'testID={\'${1}\'}'
# Import
'Import from material-ui':
'prefix': 'imui'
'body': """import {
$1
} from '@material-ui/core'
"""
'Import from local directory':
'prefix': 'iml'
'body': 'import $1 from \'.${2}/${1}\'$3'
'Import from @common':
'prefix': 'imc'
'body': "import $1 from '@common/$1'"
'Import with object destructuring':
'prefix': 'imo'
'body': "import { $2 } from '@$1'"
# Export
'Export Const':
'prefix': 'exc'
'body': 'export const $1'
'Export Default Const':
'prefix': 'edc'
'body': """
const $1 = () => {
$2
}
export default $1
"""
'Styled variable destructured':
'prefix': 'std'
'body': '${({ $1 }) => ${2:$1 ? $3 : $4}}'
'Arrow function with object destructuring':
'prefix': 'ard'
'body': '({ $1 }) => ${2:{$3}}'
'Array destructuring assignment':
'prefix': 'cad'
'body': 'const [$2] = ${1:array}'
'Object destructuring assignment':
'prefix': 'cod'
'body': 'const {$2} = ${1:object}'
# MD
'.source.gfm, .text.md':
'Quotation':
'prefix': 'quote'
'body': '> {$1}'
'Button':
'prefix': 'btn'
'body': """
|[$1]($2)|
|---|
"""
'Zettel':
'prefix': 'ztl'
'body': """
tags:
- ${2:tag}
---
# ${1:title}
$3
"""
'.source.gfm.notes':
'Neuron Note':
'prefix': 'note'
'body': """
---
date: ${1:yyyy-MM-DD}
tags:
- ${2:tag}
---
# ${3:title}
$4
"""
# JSON
'.source.json':
'Key-Value JSON':
'prefix': 'kv',
'body': '"$1": "$2"'
# Shell
'.source.shell':
'Shell function':
'prefix': 'fun',
'body': """${1:name}(){
${2:body}
}
"""
# General
/*
* 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 {
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// style UI elements inside atom-text-editor
atom-text-editor .cursor {
// border-color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment