Skip to content

Instantly share code, notes, and snippets.

@oleg-am
Last active July 12, 2019 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save oleg-am/b837be57a482b6b8be4aa72aea8d8b56 to your computer and use it in GitHub Desktop.
Save oleg-am/b837be57a482b6b8be4aa72aea8d8b56 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()}"
# 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':
# '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-workspace':
'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'
# change-case:camel
# change-case:constant
# change-case:dot
# change-case:lower
# change-case:param
# change-case:pascal
# change-case:path
# change-case:sentence
# change-case:snake
# change-case:swap
# change-case:title
# change-case:upper
# change-case:upperFirst
# change-case:kebab
'alt-k alt-u': 'change-case:constant'
'alt-k alt-l': 'change-case:camel'
'.platform-darwin atom-text-editor':
'shift-cmd-e': 'quick-editor:quick-edit'
'.platform-linux atom-text-editor, .platform-win32 atom-text-editor':
'shift-ctrl-e': 'quick-editor:quick-edit'
[
{
"name": "about",
"version": "1.9.1"
},
{
"name": "advanced-open-file",
"version": "0.16.8"
},
{
"name": "aligner",
"version": "1.2.4"
},
{
"name": "aligner-javascript",
"version": "1.3.0"
},
{
"name": "archive-view",
"version": "0.65.1"
},
{
"name": "atom-beautify",
"version": "0.33.4"
},
{
"name": "atom-dark-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.3",
"theme": "ui"
},
{
"name": "atom-ide-ui",
"version": "0.13.0"
},
{
"name": "atom-light-syntax",
"version": "0.29.1",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.3",
"theme": "ui"
},
{
"name": "atom-material-syntax",
"version": "1.0.8",
"theme": "syntax"
},
{
"name": "atom-material-syntax-dark",
"version": "1.0.0",
"theme": "syntax"
},
{
"name": "atom-material-ui",
"version": "2.1.3",
"theme": "ui"
},
{
"name": "autoclose-html",
"version": "0.23.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.7"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-html",
"version": "0.8.8"
},
{
"name": "autocomplete-js-import",
"version": "1.4.0"
},
{
"name": "autocomplete-modules",
"version": "2.3.0"
},
{
"name": "autocomplete-paths",
"version": "2.12.2"
},
{
"name": "autocomplete-plus",
"version": "2.42.0"
},
{
"name": "autocomplete-snippets",
"version": "1.12.1"
},
{
"name": "autoflow",
"version": "0.29.4"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "background-tips",
"version": "0.28.0"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.6.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.46.0"
},
{
"name": "bracket-matcher",
"version": "0.91.0"
},
{
"name": "busy-signal",
"version": "2.0.1"
},
{
"name": "camel-select",
"version": "0.1.3"
},
{
"name": "change-case",
"version": "0.6.5"
},
{
"name": "color-picker",
"version": "2.3.0"
},
{
"name": "command-palette",
"version": "0.43.5"
},
{
"name": "cursor-history",
"version": "0.13.2"
},
{
"name": "dalek",
"version": "0.2.2"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "docblockr",
"version": "0.13.7"
},
{
"name": "editorconfig",
"version": "2.4.0"
},
{
"name": "encoding-selector",
"version": "0.23.9"
},
{
"name": "exception-reporting",
"version": "0.43.1"
},
{
"name": "find-and-replace",
"version": "0.218.10"
},
{
"name": "fold-functions",
"version": "0.11.0"
},
{
"name": "fuzzy-finder",
"version": "1.13.5"
},
{
"name": "geiger",
"version": "2.1.0"
},
{
"name": "git-blame",
"version": "1.8.0"
},
{
"name": "git-control",
"version": "0.9.0"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "git-history",
"version": "3.3.0"
},
{
"name": "github",
"version": "0.29.0"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "highlight-selected",
"version": "0.16.0"
},
{
"name": "hyperclick",
"version": "0.1.5"
},
{
"name": "ide-typescript",
"version": "0.9.1"
},
{
"name": "image-view",
"version": "0.64.0"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "indent-guide-improved",
"version": "1.4.13"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "js-hyperclick",
"version": "1.13.3"
},
{
"name": "keybinding-resolver",
"version": "0.39.0"
},
{
"name": "language-babel",
"version": "2.85.0"
},
{
"name": "language-c",
"version": "0.60.16"
},
{
"name": "language-clojure",
"version": "0.22.8"
},
{
"name": "language-coffee-script",
"version": "0.50.0"
},
{
"name": "language-csharp",
"version": "1.1.0"
},
{
"name": "language-css",
"version": "0.44.0"
},
{
"name": "language-docker",
"version": "1.1.8"
},
{
"name": "language-gfm",
"version": "0.90.6"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.47.0"
},
{
"name": "language-html",
"version": "0.52.1"
},
{
"name": "language-hyperlink",
"version": "0.17.1"
},
{
"name": "language-java",
"version": "0.31.3"
},
{
"name": "language-javascript",
"version": "0.130.0"
},
{
"name": "language-json",
"version": "1.0.4"
},
{
"name": "language-less",
"version": "0.34.3"
},
{
"name": "language-make",
"version": "0.23.0"
},
{
"name": "language-mustache",
"version": "0.14.5"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-php",
"version": "0.44.1"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.53.1"
},
{
"name": "language-ruby",
"version": "0.72.16"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-rust-bundled",
"version": "0.1.0"
},
{
"name": "language-sass",
"version": "0.62.0"
},
{
"name": "language-shellscript",
"version": "0.27.11"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.10"
},
{
"name": "language-text",
"version": "0.7.4"
},
{
"name": "language-todo",
"version": "0.29.4"
},
{
"name": "language-toml",
"version": "0.20.0"
},
{
"name": "language-typescript",
"version": "0.4.11"
},
{
"name": "language-xml",
"version": "0.35.3"
},
{
"name": "language-yaml",
"version": "0.32.0"
},
{
"name": "last-cursor-position",
"version": "0.9.3"
},
{
"name": "line-ending-selector",
"version": "0.7.7"
},
{
"name": "link",
"version": "0.31.6"
},
{
"name": "linter",
"version": "2.3.0"
},
{
"name": "linter-eslint",
"version": "8.5.5"
},
{
"name": "linter-flowtype",
"version": "1.0.2"
},
{
"name": "linter-stylelint",
"version": "4.4.7"
},
{
"name": "linter-ui-default",
"version": "1.7.1"
},
{
"name": "local-history",
"version": "4.3.1"
},
{
"name": "markdown-preview",
"version": "0.160.0"
},
{
"name": "merge-conflicts",
"version": "1.4.5"
},
{
"name": "metrics",
"version": "1.8.1"
},
{
"name": "multi-cursor",
"version": "2.1.5"
},
{
"name": "nice-index",
"version": "1.0.5"
},
{
"name": "notifications",
"version": "0.70.6"
},
{
"name": "one-dark-syntax",
"version": "1.8.4",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.12.5",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.4",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.12.5",
"theme": "ui"
},
{
"name": "open-files",
"version": "0.8.4"
},
{
"name": "open-in-browser",
"version": "0.5.2"
},
{
"name": "open-on-bitbucket",
"version": "0.5.0"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "pigments",
"version": "0.40.2"
},
{
"name": "prettier-atom",
"version": "0.56.6"
},
{
"name": "project-manager",
"version": "3.3.7"
},
{
"name": "rename-tabs",
"version": "0.2.0"
},
{
"name": "save-workspace",
"version": "0.5.0"
},
{
"name": "script",
"version": "3.18.1"
},
{
"name": "seti-icons",
"version": "1.5.4"
},
{
"name": "settings-view",
"version": "0.261.3"
},
{
"name": "snippets",
"version": "1.5.0"
},
{
"name": "solarized-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.74.5"
},
{
"name": "status-bar",
"version": "1.8.17"
},
{
"name": "styleguide",
"version": "0.49.12"
},
{
"name": "svg-preview",
"version": "0.14.0"
},
{
"name": "symbols-view",
"version": "0.118.2"
},
{
"name": "sync-settings",
"version": "0.8.6"
},
{
"name": "tabs",
"version": "0.110.0"
},
{
"name": "teletype",
"version": "0.13.4"
},
{
"name": "template-generator",
"version": "0.16.0"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "todo-show",
"version": "2.3.2"
},
{
"name": "toggle-quotes",
"version": "1.1.4"
},
{
"name": "tree-view",
"version": "0.227.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "wakatime",
"version": "7.1.1"
},
{
"name": "welcome",
"version": "0.36.9"
},
{
"name": "whitespace",
"version": "0.37.7"
},
{
"name": "wrap-guide",
"version": "0.41.0"
}
]
{
"atom-beautify": {
"general": {
"_analyticsUserId": "aafa9f18-9c82-4baf-8e5a-7c0297558349"
},
"html": {
"indent_size": 2
},
"js": {
"indent_size": 4,
"indent_with_tabs": false,
"preserve_newlines": false
},
"jsx": {
"default_beautifier": "JS Beautify",
"indent_size": 2,
"preserve_newlines": false
},
"scss": {
"indent_size": 2
}
},
"atom-ide-ui": {
"atom-ide-datatip": {
"datatipDebounceDelay": 1000
}
},
"atom-lupa": {
"autoRefresh": false,
"breadcrumbsAlwaysVisible": true
},
"atom-material-ui": {
"tabs": {
"compactTabs": true,
"noTabMinWidth": true
},
"treeView": {
"compactList": true
},
"ui": {
"animations": false,
"panelContrast": true
}
},
"atom-package-deps": {
"ignored": []
},
"autocomplete-js-import": {
"fuzzy": {
"enabled": true,
"fileTypes": [
"ts",
"js",
"jsx",
"json",
"mjs"
]
}
},
"autocomplete-modules": {
"babelPluginModuleResolver": true,
"webpack": true
},
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"advanced-open-file",
"open-on-bitbucket",
"camel-select",
"open-files",
"atom-ide-ui",
"ide-typescript",
"rename-tabs",
"wakatime"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"desktop.ini",
"node_modules"
],
"openEmptyEditorOnStart": false,
"restorePreviousWindowsOnStart": "no",
"telemetryConsent": "no",
"useTreeSitterParsers": false,
"warnOnLargeFileLimit": 5
},
"editor": {
"fontSize": 12,
"preferredLineLength": 100,
"scrollPastEnd": true,
"showInvisibles": true,
"softTabs": false,
"tabLength": 4
},
"exception-reporting": {
"userId": "4e334e60-1b7c-0dd1-6b8c-960e4c8b7c87"
},
"fold-functions": {
"skipAutofoldWhenOnlyOneFunction": true
},
"fuzzy-finder": {
"scoringSystem": "fast",
"useRipGrep": true
},
"git-blame": {
"columnWidth": 243
},
"ide-typescript": {
"returnTypeInAutocomplete": "right"
},
"js-hyperclick": {
"extensions": [
".js",
".json",
".node",
".jsx",
".mjs"
]
},
"linter-eslint": {
"scopes": [
"source.mjs",
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic"
]
},
"linter-flow": {
"executablePath": "./node_modules/.bin/flow"
},
"linter-flow-plus": {
"pathToFlowExecutable": "./node_modules/.bin/flow"
},
"linter-flowtype": {},
"linter-stylelint": {
"disableWhenNoConfig": false,
"useStandard": true
},
"linter-ui-default": {
"panelHeight": 190
},
"local-history": {},
"prettier-atom": {
"formatOnSaveOptions": {
"enabled": true,
"showInStatusBar": true
},
"prettierEslintOptions": {},
"prettierOptions": {
"printWidth": 100
},
"scopes": {
"javascript": [
"source.mjs",
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"text.html.basic",
"text.html.vue"
]
},
"useEslint": true
},
"save-workspace-Workspaces": {
"CRM/LayoutWithFilter": {
"panes": [
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/user/projects/his-frontend/src/pages/Menu/CRM/index.js",
"/home/user/projects/his-frontend/src/pages/Menu/CalendarPage/components/EventPanel/index.js",
"/home/user/projects/his-frontend/src/model/event.js",
"/home/user/projects/his-frontend/src/pages/Menu/CRMEvent/index.js",
"/home/user/projects/his-frontend/src/data/patients/index.jsx"
]
},
"type": "pane"
},
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/user/projects/his-frontend/src/components/Icon/index.js",
"/home/user/projects/his-frontend/src/pages/Menu/CRMEvent/constants.js",
"/home/user/projects/his-frontend/src/pages/Menu/CRMEvent/actions.js",
"/home/user/projects/his-frontend/src/pages/Menu/CRMEvent/reducer.js",
"/home/user/projects/his-frontend/src/pages/Menu/CRMEvent/schemas.js",
"/home/user/projects/his-frontend/src/pages/Menu/CRMEvent/selectors.js",
"/home/user/projects/his-frontend/src/pages/Menu/CRMEvent/sagas.js"
]
},
"type": "pane"
}
],
"projectPaths": [
"/home/user/projects/his-frontend"
]
},
"GraphQL tutorial": {
"panes": [
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/client/src/App.js",
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/client/src/components/ChannelsListWithData.js",
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/client/src/components/AddChannel.js",
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/client/src/App.css",
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/client/package.json"
]
},
"type": "pane"
},
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/server/server.js",
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/server/src/schema.js",
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial/server/src/resolvers.js",
"atom://config/updates"
]
},
"type": "pane"
}
],
"projectPaths": [
"/home/oleg-am/projects/tutorials2/full-stack-graphql-tutorial"
]
},
"PIS-event-details": {
"panes": [
{
"data": {
"orientation": "horizontal",
"tabs": [
"atom://find-and-replace/project-results",
"/Users/aom/projects/helsi/code/pis-fe/src/web/view/component/eventCard/cardEventConnected.js",
"/Users/aom/projects/helsi/code/pis-fe/src/web/view/component/eventCard/cardEvent.js",
"/Users/aom/projects/helsi/code/pis-fe/src/web/routeHandlers/CabinetPage/CabinetIndexPage/CabinetIndexPage.js",
"/Users/aom/projects/helsi/code/pis-fe/src/web/routeHandlers/CabinetPage/CabinetVisitsPage/CabinetVisitsPage.js",
"/Users/aom/projects/helsi/code/pis-fe/src/web/routeHandlers/CabinetPage/CabinetEventPage/CabinetEventPage.js"
]
},
"type": "pane"
},
{
"data": {
"orientation": "horizontal",
"tabs": [
"/Users/aom/projects/helsi/code/pis-fe/src/@core/ducks/userEvents/userEventsApiService.js",
"/Users/aom/projects/helsi/code/pis-fe/src/@core/ducks/userEvents/index.js",
"/Users/aom/projects/helsi/code/pis-fe/src/@core/ducks/userEvents/userEventsActionCreators.js",
"/Users/aom/projects/helsi/code/pis-fe/src/@core/ducks/userEvents/userEventsSagas.js",
"/Users/aom/projects/helsi/code/pis-fe/src/@core/ducks/userEvents/userEventsSelectors.js",
"/Users/aom/projects/helsi/code/pis-fe/src/@core/config.js"
]
},
"type": "pane"
}
],
"projectPaths": [
"/Users/aom/projects/helsi/code/pis-fe",
"/Users/aom/projects/helsi/code/his-m-fe",
"/Users/aom/projects/helsi/code/his-m-be",
"/Users/aom/projects/helsi/code/his-fe",
"/Users/aom/projects/helsi"
]
},
"Wyzow nadom": {
"panes": [
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/user/his/helsi/his-be/@dino/be-utils/lib/UtilsService.js",
"/home/user/his/helsi/his-be/api/app/District/Controller.js",
"/home/user/his/helsi/his-be/api/app/Ticket/Controller.js",
"/home/user/his/helsi/his-be/api/app/Ticket/Model.js",
"/home/user/his/helsi/his-be/config/routes.js",
"/home/user/his/helsi/his-be/api/app/Address/Controller.js",
"/home/user/his/helsi/his-be/@dino/be-utils/lib/AddressServiceProxy.js"
]
},
"type": "pane"
},
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/user/his/helsi/his-fe/app/store/reduxMiddleware/apiMiddleware.js",
"/home/user/his/helsi/his-fe/app/store/redux.js",
"/home/user/his/helsi/his-fe/app/redux/reducers.js",
"/home/user/his/helsi/his-fe/app/redux/sagas.js"
]
},
"type": "pane"
},
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/user/his/helsi/his-fe/app/model/breadcrumbs.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/index.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/components/ActiveSearch.js",
"/home/user/his/helsi/his-fe/app/model/patients.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/components/Doctor.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/components/PatientItem.js",
"/home/user/his/helsi/his-fe/app/data/app/index.js"
]
},
"type": "pane"
},
{
"data": {
"orientation": "horizontal",
"tabs": [
"/home/user/his/helsi/his-fe/.git/hooks/pre-commit",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/constants.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/actions.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/reducer.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/schemas.js",
"/home/user/his/helsi/his-fe/app/pages/Menu/MIS/TicketPopover/selectors.js"
]
},
"type": "pane"
}
],
"projectPaths": [
"/home/user/his/helsi/his-fe",
"/home/user/his/helsi/his-be"
]
}
},
"svg-preview": {
"openPreviewAutomatically": true,
"openPreviewInPane": "down"
},
"symbols-tree-view": {
"zAutoHideTypes": "\"const\", \"let\""
},
"sync-settings": {},
"todo-show": {
"findTheseTodos": [
"TODO",
"FIXME",
"CHANGED",
"XXX",
"IDEA",
"HACK",
"NOTE",
"REVIEW",
"NB",
"BUG",
"QUESTION",
"COMBAK",
"TEMP",
"INFO"
],
"sortBy": "Type"
},
"tree-view": {
"hideIgnoredNames": true
},
"wakatime": {
"apikey": "Saved in your ~/.wakatime.cfg file"
},
"wakatime-hidden": {
"lastInit": 1492500472
},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ensureSingleTrailingNewline": false,
"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:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'.source.js':
'Console log':
'prefix': 'logGroup'
'body': """
console.group('$1');
console.log($2);
console.groupEnd();
"""
'React propTypes + defaultProps':
'prefix': 'const all propTypes'
'body': """
const { array, arrayOf, objectOf, oneOf, oneOfType, shape, bool, number, string, func, node } = PropTypes;
const propTypes = {
$1
};
const defaultProps = {
};
"""
'React defaultProps':
'prefix': 'const defaultProps'
'body': """
const defaultProps = {
$1
};
"""
'React Component constructor':
'prefix': 'import React constructor'
'body': """
import React from 'react';
import PropTypes from 'prop-types';
import { l } from 'translate';
const { array, arrayOf, objectOf, oneOf, oneOfType, shape, bool, number, string, func, node } = PropTypes;
export const propTypes = {
};
export const defaultProps = {
};
const $1 = () => (
<div>
</div>
);
$1.propTypes = propTypes;
$1.defaultProps = defaultProps;
export default $1;
"""
/*
* 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%);
}
// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
// border-color: red;
}
//подсветка вертикальных линий области тега
.indent-guide-improved {
background-color: rgba(91, 99, 99, 0.64);
&.indent-guide-stack {
background-color: rgba(91, 99, 94, 0.64);
&.indent-guide-active {
background-color: pink;
}
}
}
/* стили для подсветки строки и делающие невидимые символы чуть менее заметными */
atom-text-editor.editor {
// .cursor-line {
// background: rgba(0, 0, 0, .04);
// }
.invisible-character {
opacity: 0.6;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment