Skip to content

Instantly share code, notes, and snippets.

@kramarama
Forked from gsmetal/ Atom settings
Created October 6, 2016 10:08
Show Gist options
  • Save kramarama/9c1f810a48d3727512effdaceb835e25 to your computer and use it in GitHub Desktop.
Save kramarama/9c1f810a48d3727512effdaceb835e25 to your computer and use it in GitHub Desktop.
Atom settings gist
# 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()}"
atom.commands.add "atom-workspace", "scrum:make-report": ->
return unless editor = atom.workspace.getActiveTextEditor()
team = ["@serafim.nenarokov", "@sergey.gnuskov", "@gennady.kalashnikov", "@anton.klimov"]
unique = (arr)->
output = {}
output[arr[key]] = arr[key] for key in [0...arr.length]
value for key, value of output
shuffle = (a) ->
i = a.length
while --i > 0
j = ~~(Math.random() * (i + 1))
t = a[j]
a[j] = a[i]
a[i] = t
a
order = shuffle(team)
text = "@dmitry.stolyarov\n"
text += "Порядок: #{order.join(', ')}\n"
# text += "h4. #{p}\n\n\n\n" for p in [].concat(order...)
# text += "\"Запись\":"
selection = editor.getLastSelection()
selection.insertText(text)
# 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/using-atom-basic-customization#customizing-key-bindings
# * https://atom.io/docs/latest/behind-atom-keymaps-in-depth
#
# 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:not(.mini)':
'ctrl->': 'rails-snippets:toggleErb'
'ctrl-d': 'editor:delete-line'
'ctrl-cmd-h': 'ruby-syntax-replacer:replace'
'ctrl-cmd-m': 'rails-latest-migration:find'
'ctrl-shift-down': 'editor:move-line-down'
'ctrl-shift-up': 'editor:move-line-up'
'shift-cmd-up': 'editor:add-selection-above'
'shift-cmd-down': 'editor:add-selection-below'
'shift-f11': 'editor:toggle-soft-wrap'
'.platform-win32, .platform-linux':
'alt-r': 'tree-view:reveal-active-file'
'body':
'ctrl-1': 'pane:show-item-1'
'ctrl-2': 'pane:show-item-2'
'ctrl-3': 'pane:show-item-3'
'ctrl-4': 'pane:show-item-4'
'ctrl-5': 'pane:show-item-5'
'ctrl-6': 'pane:show-item-6'
'ctrl-7': 'pane:show-item-7'
'ctrl-8': 'pane:show-item-8'
'ctrl-9': 'pane:show-item-9'
'.platform-linux':
'ctrl-alt-p': 'project-manager:list-projects'
'.platform-linux atom-text-editor':
'ctrl-t t': 'atom-ctags:go-to-declaration'
'ctrl-t b': 'atom-ctags:return-from-declaration'
'ctrl-t r': 'atom-ctags:rebuild'
'atom-workspace':
'cmd-c u': 'change-case:snake'
'cmd-c c': 'change-case:camel'
'cmd-c d': 'change-case:dot'
'cmd-c p': 'change-case:pascal'
'cmd-c h': 'change-case:param'
'ctrl-m r': 'scrum:make-report'
'ctrl-b': 'blame:toggle'
[
{
"name": "about",
"version": "1.5.3"
},
{
"name": "activate-power-mode",
"version": "1.0.2"
},
{
"name": "archive-view",
"version": "0.61.1"
},
{
"name": "atom-alignment",
"version": "0.12.1"
},
{
"name": "atom-ctags",
"version": "5.0.0"
},
{
"name": "atom-dark-syntax",
"version": "0.27.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.52.0",
"theme": "ui"
},
{
"name": "atom-eco",
"version": "0.2.0"
},
{
"name": "atom-light-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.44.0",
"theme": "ui"
},
{
"name": "atom-material-ui",
"version": "1.3.6",
"theme": "ui"
},
{
"name": "auto-detect-indentation",
"version": "1.2.0"
},
{
"name": "autoclose-html",
"version": "0.23.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.0"
},
{
"name": "autocomplete-css",
"version": "0.11.2"
},
{
"name": "autocomplete-ctags",
"version": "0.4.1"
},
{
"name": "autocomplete-html",
"version": "0.7.2"
},
{
"name": "autocomplete-plus",
"version": "2.31.1"
},
{
"name": "autocomplete-snippets",
"version": "1.11.0"
},
{
"name": "autoflow",
"version": "0.27.0"
},
{
"name": "autosave",
"version": "0.23.1"
},
{
"name": "background-tips",
"version": "0.26.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.1.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.1.1",
"theme": "syntax"
},
{
"name": "blame",
"version": "0.10.0"
},
{
"name": "bookmarks",
"version": "0.41.0"
},
{
"name": "bracket-matcher",
"version": "0.82.1"
},
{
"name": "change-case",
"version": "0.6.3"
},
{
"name": "command-palette",
"version": "0.38.0"
},
{
"name": "deprecation-cop",
"version": "0.54.1"
},
{
"name": "dev-live-reload",
"version": "0.47.0"
},
{
"name": "encoding-selector",
"version": "0.22.0"
},
{
"name": "exception-reporting",
"version": "0.39.0"
},
{
"name": "file-icons",
"version": "1.7.20"
},
{
"name": "file-watcher",
"version": "0.4.0"
},
{
"name": "find-and-replace",
"version": "0.201.0"
},
{
"name": "fuzzy-finder",
"version": "1.3.0"
},
{
"name": "git-diff",
"version": "1.1.0"
},
{
"name": "git-plus",
"version": "5.18.0"
},
{
"name": "go-to-line",
"version": "0.31.0"
},
{
"name": "grammar-selector",
"version": "0.48.1"
},
{
"name": "highlight-selected",
"version": "0.11.2"
},
{
"name": "image-view",
"version": "0.58.2"
},
{
"name": "incompatible-packages",
"version": "0.26.1"
},
{
"name": "keybinding-resolver",
"version": "0.35.0"
},
{
"name": "language-c",
"version": "0.52.1"
},
{
"name": "language-clojure",
"version": "0.21.0"
},
{
"name": "language-coffee-script",
"version": "0.47.2"
},
{
"name": "language-csharp",
"version": "0.12.1"
},
{
"name": "language-css",
"version": "0.37.1"
},
{
"name": "language-ejs",
"version": "0.4.0"
},
{
"name": "language-gfm",
"version": "0.88.0"
},
{
"name": "language-git",
"version": "0.15.0"
},
{
"name": "language-go",
"version": "0.42.1"
},
{
"name": "language-haml",
"version": "0.24.0"
},
{
"name": "language-html",
"version": "0.45.1"
},
{
"name": "language-hyperlink",
"version": "0.16.0"
},
{
"name": "language-java",
"version": "0.23.0"
},
{
"name": "language-javascript",
"version": "0.119.0"
},
{
"name": "language-json",
"version": "0.18.2"
},
{
"name": "language-less",
"version": "0.29.5"
},
{
"name": "language-make",
"version": "0.22.2"
},
{
"name": "language-mediawiki",
"version": "2.2.0"
},
{
"name": "language-mustache",
"version": "0.13.0"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.35.0"
},
{
"name": "language-php",
"version": "0.37.2"
},
{
"name": "language-property-list",
"version": "0.8.0"
},
{
"name": "language-python",
"version": "0.45.0"
},
{
"name": "language-ruby",
"version": "0.69.0"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.0"
},
{
"name": "language-sass",
"version": "0.56.0"
},
{
"name": "language-shellscript",
"version": "0.22.4"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.23.0"
},
{
"name": "language-text",
"version": "0.7.1"
},
{
"name": "language-textile",
"version": "0.2.0"
},
{
"name": "language-todo",
"version": "0.28.0"
},
{
"name": "language-toml",
"version": "0.18.0"
},
{
"name": "language-xml",
"version": "0.34.9"
},
{
"name": "language-yaml",
"version": "0.26.0"
},
{
"name": "line-ending-selector",
"version": "0.5.0"
},
{
"name": "link",
"version": "0.31.1"
},
{
"name": "linter",
"version": "1.11.18"
},
{
"name": "linter-coffeescript",
"version": "1.0.0"
},
{
"name": "linter-erb",
"version": "1.0.2"
},
{
"name": "linter-jshint",
"version": "3.0.0"
},
{
"name": "linter-markdown",
"version": "3.0.2"
},
{
"name": "linter-php",
"version": "1.2.0"
},
{
"name": "linter-ruby",
"version": "1.2.2"
},
{
"name": "markdown-preview-plus",
"version": "2.4.0"
},
{
"name": "markdown-scroll-sync",
"version": "2.1.2"
},
{
"name": "markdown-writer",
"version": "2.6.1"
},
{
"name": "metrics",
"version": "0.53.1"
},
{
"name": "minimap",
"version": "4.25.0"
},
{
"name": "minimap-find-and-replace",
"version": "4.5.1"
},
{
"name": "minimap-highlight-selected",
"version": "4.4.0"
},
{
"name": "monokai",
"version": "0.18.0",
"theme": "syntax"
},
{
"name": "notifications",
"version": "0.65.0"
},
{
"name": "one-dark-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.5.0",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.3.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.5.0",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.2.0"
},
{
"name": "package-generator",
"version": "1.0.0"
},
{
"name": "pigments",
"version": "0.37.0"
},
{
"name": "project-manager",
"version": "3.2.3"
},
{
"name": "rails-latest-migration",
"version": "1.1.6"
},
{
"name": "rails-partials",
"version": "0.9.2"
},
{
"name": "rails-snippets",
"version": "2.8.0"
},
{
"name": "rest-client",
"version": "1.2.5"
},
{
"name": "ruby-block",
"version": "0.3.5"
},
{
"name": "ruby-syntax-replacer",
"version": "0.5.1"
},
{
"name": "sequential-number",
"version": "0.4.0"
},
{
"name": "settings-view",
"version": "0.242.2"
},
{
"name": "snippets",
"version": "1.0.2"
},
{
"name": "solarized-dark-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.0.2",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.67.1"
},
{
"name": "status-bar",
"version": "1.4.1"
},
{
"name": "string-looper",
"version": "0.1.2"
},
{
"name": "styleguide",
"version": "0.47.0"
},
{
"name": "sync-settings",
"version": "0.7.2"
},
{
"name": "tabs",
"version": "0.100.2"
},
{
"name": "timecop",
"version": "0.33.2"
},
{
"name": "todo-show",
"version": "1.7.0"
},
{
"name": "tree-view",
"version": "0.208.2"
},
{
"name": "update-package-dependencies",
"version": "0.10.0"
},
{
"name": "welcome",
"version": "0.34.0"
},
{
"name": "whitespace",
"version": "0.33.0"
},
{
"name": "wrap-guide",
"version": "0.38.1"
},
{
"name": "zentabs",
"version": "0.8.7"
}
]
{
"atom-alignment": {
"alignBy": [
"=>",
":=",
" :",
"=",
" '",
" "
]
},
"atom-ctags": {
"buildTimeout": 300000
},
"atom-material-ui": {
"colors": {},
"fonts": {},
"tabs": {
"compactTabs": true
},
"treeView": {
"compactList": true
},
"ui": {
"panelContrast": true,
"panelShadows": true
}
},
"autoclose-html": {},
"autocomplete-ctags": {
"disableBuiltinProvider": true
},
"autocomplete-plus": {
"useAlternateScoring": true
},
"blame": {},
"core": {
"disabledPackages": [
"git-blame",
"linter-rubocop",
"activate-power-mode",
"markdown-preview",
"tidy-markdown",
"symbols-view"
],
"excludeVcsIgnoredPaths": false,
"followSymlinks": false,
"ignoredNames": [
"shared/log*",
"shared/data*",
"shared/sphinxsearch*",
"shared/tmp*",
"tmp",
".deploy_cache",
".tags*",
".gemtags",
"*.log",
".git/*"
],
"packagesWithKeymapsDisabled": [
"blame"
],
"projectHome": "/home/gsmetal/projects",
"themes": [
"atom-material-ui",
"monokai"
]
},
"editor": {
"confirmCheckoutHeadRevision": false,
"invisibles": {},
"preferredLineLength": 120,
"showIndentGuide": true
},
"exception-reporting": {
"userId": "3fd2184b-03c9-9d0d-0aa0-7bf544321b96"
},
"file-icons": {},
"file-watcher": {},
"fuzzy-finder": {
"useAlternateScoring": true
},
"git-blame": {
"useCustomUrlTemplateIfStandardRemotesFail": true
},
"git-plus": {
"wordDiff": false
},
"highlight-selected": {},
"linter": {
"errorPanelHeight": 127
},
"linter-erb": {},
"linter-rubocop": {},
"linter-ruby": {},
"markdown-preview-plus": {
"useGitHubStyle": true
},
"markdown-writer": {
"fileExtension": ".md",
"siteEngine": "jekyll"
},
"minimap": {
"plugins": {
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0
},
"scrollAnimation": true
},
"one-dark-ui": {},
"pigments": {},
"project-manager": {
"environmentSpecificProjects": true
},
"ruby-block": {
"highlightLineNumber": true
},
"save-session": {
"dataSaveFolder": "/home/gsmetal/.atom/packages/save-session/projects",
"skipSavePrompt": false
},
"slack-chat": {
"api_key": "3253907893.6846243011",
"api_secret": "2bb361a7c34a79c3073e96eb45b2f2a6",
"api_token": "xoxp-3253907893-3260995952-6846360289-d5d10b"
},
"sync-settings": {},
"tabs": {
"enableVcsColoring": true
},
"terminal-panel": {},
"terminal-status": {},
"todo-show": {
"findTheseTodos": [
"FIXME",
"TODO",
"CHANGED",
"XXX",
"IDEA",
"HACK",
"NOTE",
"REVIEW",
"KOSTYL"
],
"showInTable": [
"Type",
"Text",
"File",
"Line"
],
"sortBy": "Type"
},
"tree-view": {},
"welcome": {
"showOnStartup": false
},
"zentabs": {
"maximumOpenedTabs": 10,
"neverCloseDirty": true,
"neverCloseNew": true,
"neverCloseUnsaved": true
}
}
# 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
'.text':
'tickets-for-version':
'prefix': 'tickets'
'body': """
Тикеты: "по приоритету":/projects/${1:city-platform}/issues?set_filter=1&f[]=status_id&op[status_id]=!&v[status_id][]=3&v[status_id][]=5&v[status_id][]=6&v[status_id][]=9&v[status_id][]=18&f[]=fixed_version_id&op[fixed_version_id]==&v[fixed_version_id][]=$2&f[]=&c[]=category&c[]=tracker&c[]=status&c[]=priority&c[]=subject&c[]=assigned_to&c[]=updated_on&c[]=estimated_hours&c[]=order_number&group_by=priority&sort=priority:desc | "по исполнителю":/projects/${1:city-platform}/issues?set_filter=1&f[]=status_id&op[status_id]=!&v[status_id][]=3&v[status_id][]=5&v[status_id][]=6&v[status_id][]=9&v[status_id][]=18&f[]=fixed_version_id&op[fixed_version_id]==&v[fixed_version_id][]=$2&f[]=&c[]=category&c[]=tracker&c[]=status&c[]=priority&c[]=subject&c[]=assigned_to&c[]=updated_on&c[]=estimated_hours&c[]=order_number&group_by=assigned_to&sort=priority:desc | "по категории":/projects/${1:city-platform}/issues?set_filter=1&f[]=status_id&op[status_id]=!&v[status_id][]=3&v[status_id][]=5&v[status_id][]=6&v[status_id][]=9&v[status_id][]=18&f[]=fixed_version_id&op[fixed_version_id]==&v[fixed_version_id][]=$2&f[]=&c[]=category&c[]=tracker&c[]=status&c[]=priority&c[]=subject&c[]=assigned_to&c[]=updated_on&c[]=estimated_hours&c[]=order_number&group_by=category&sort=priority:desc
"""
/*
* 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
*/
.tree-view {
}
// style the background and foreground colors on the atom-text-editor-element
// itself
atom-text-editor {
background-color: #272822;
}
// To style other content in the text editor's shadow DOM, use the ::shadow
// expression
atom-text-editor::shadow .cursor {
}
atom-text-editor::shadow .entity.name.class {
color: white;
}
atom-text-editor::shadow .variable.other {
color: white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment