Skip to content

Instantly share code, notes, and snippets.

@trasparente
Last active February 18, 2023 20:32
Show Gist options
  • Save trasparente/647bceb62270dc09d91abd210bd38b6e to your computer and use it in GitHub Desktop.
Save trasparente/647bceb62270dc09d91abd210bd38b6e 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()}"
# atom.commands.add 'atom-text-editor', 'custom:search-word', ->
# var editor = this.getModel()
# console.log editor.selectWord()
# editor.selectLinesContainingCursors();
# editor.cutSelectedText();
#-----------------------------------------------------------------------------
atom.notifications.addSuccess 'You are Peace',
description: 'Welcome Allow and Let go'
icon: 'check'
# https://flight-manual.atom.io/hacking-atom/sections/the-init-file/
# Define commands that should only be available in an editor view (and should
# not be available in a tree view, for example).
atom.commands.add 'atom-text-editor',
# https://github.com/jasonrudolph/dotfiles/blob/86ec9226fbede526006a8be537dc77152e4a17cd/atom/init.coffee#L43-L115
# Approximate Vim's "H" motion: Move the cursor to the topmost line that is
# currently visible.
'petrosh:quotes-switch': ->
editor = atom.workspace.getActiveTextEditor()
selection = editor.getLastSelection()
hide_single = selection.getText().replace /'/g, "singlequote"
change_double = hide_single.replace /"/g, "'"
complete = change_double.replace /singlequote/g, '"'
selection.insertText(complete)
'petrosh:liquid-extend': ->
editor = atom.workspace.getActiveTextEditor()
selection = editor.getLastSelection()
hide_single = selection.getText().replace "{%-", "{%"
complete = hide_single.replace "-%}", "%}"
selection.insertText(complete)
# 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/#configuring-with-cson
# CUSTOM
'atom-text-editor':
# INDENT and OUTDENT
'ctrl-tab': 'editor:indent-selected-rows'
'ctrl-shift-tab': 'editor:outdent-selected-rows'
# MAXIMIZE PANEL
'ctrl-alt-enter': 'maximize-panes:maximize'
# TOGGLE GUTTER, was 'go-to-line:toggle'
'ctrl-g': 'toggle-gutter:gutter'
# Select Word under cursor
# 'ctrl-j': 'editor:select-word'
'ctrl-j': 'editor:select-word'
# Toggle tree-view
'ctrl-k ctrl-b': 'tree-view:toggle'
# Copy to clipboard
'ctrl-c': 'editor:copy-selection'
# Move through tabs
'body':
'cmd-alt-right': 'pane:show-next-item'
'cmd-alt-left': 'pane:show-previous-item'
# 'body':
# 'cmd-,': 'application:show-settings'
# 'cmd-N': 'application:new-window'
# 'cmd-W': 'window:close'
# 'cmd-o': 'application:open'
# 'cmd-T': 'pane:reopen-closed-item'
# 'cmd-n': 'application:new-file'
# 'cmd-s': 'core:save'
# 'cmd-S': 'core:save-as'
# 'cmd-alt-s': 'window:save-all'
# 'cmd-w': 'core:close'
# 'cmd-ctrl-f': 'window:toggle-full-screen'
# 'cmd-z': 'core:undo'
# 'cmd-y': 'core:redo'
# 'cmd-x': 'core:cut'
# 'cmd-c': 'core:copy'
# 'cmd-v': 'core:paste'
# 'shift-up': 'core:select-up'
# 'shift-down': 'core:select-down'
# 'shift-left': 'core:select-left'
# 'shift-right': 'core:select-right'
# 'shift-pageup': 'core:select-page-up'
# 'shift-pagedown': 'core:select-page-down'
# 'delete': 'core:delete'
# 'shift-delete': 'core:delete'
# 'pageup': 'core:page-up'
# 'pagedown': 'core:page-down'
# 'backspace': 'core:backspace'
# 'shift-backspace': 'core:backspace'
# 'cmd-up': 'core:move-to-top'
# 'cmd-down': 'core:move-to-bottom'
# 'cmd-shift-up': 'core:select-to-top'
# 'cmd-shift-down': 'core:select-to-bottom'
# 'cmd-{': 'pane:show-previous-item'
# 'cmd-}': 'pane:show-next-item'
# 'cmd-alt-left': 'pane:show-previous-item'
#
# 'atom-workspace atom-text-editor:not([mini])':
# 'cmd-d': 'editor:duplicate-lines'
{
"about": {
"version": "1.9.1"
},
"archive-view": {
"version": "0.65.2"
},
"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-light-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-light-ui": {
"version": "0.46.3",
"theme": "ui"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-css": {
"version": "0.17.5"
},
"autocomplete-emojis-plus": {
"version": "1.0.0"
},
"autocomplete-html": {
"version": "0.8.8"
},
"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"
},
"color-picker": {
"version": "2.3.0"
},
"command-palette": {
"version": "0.43.5"
},
"css-color-name": {
"version": "0.4.0"
},
"custom-title": {
"version": "1.0.1"
},
"dalek": {
"version": "0.2.2"
},
"deprecation-cop": {
"version": "0.56.9"
},
"dev-live-reload": {
"version": "0.48.1"
},
"encoding-selector": {
"version": "0.23.9"
},
"exception-reporting": {
"version": "0.43.1"
},
"find-and-replace": {
"version": "0.219.3"
},
"find-scroll-marker": {
"version": "0.1.3"
},
"ftp-remote-edit": {
"version": "0.18.2"
},
"fuzzy-finder": {
"version": "1.14.2"
},
"git-diff": {
"version": "1.3.9"
},
"github": {
"version": "0.34.2-3"
},
"go-to-line": {
"version": "0.33.0"
},
"grammar-selector": {
"version": "0.50.1"
},
"highlight-selected": {
"version": "0.17.0"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"intentions": {
"version": "2.1.1"
},
"keybinding-resolver": {
"version": "0.39.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.4"
},
"language-javascript": {
"version": "0.134.1"
},
"language-json": {
"version": "1.0.5"
},
"language-less": {
"version": "0.34.3"
},
"language-liquid": {
"version": "0.7.0"
},
"language-lua": {
"version": "0.9.11"
},
"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.44.4"
},
"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-text": {
"version": "0.7.4"
},
"language-todo": {
"version": "0.29.4"
},
"language-toml": {
"version": "0.20.0"
},
"language-typescript": {
"version": "0.6.2"
},
"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-ui-default": {
"version": "3.4.1"
},
"markdown-preview": {
"version": "0.160.2"
},
"maximize-panes": {
"version": "0.2.0"
},
"metrics": {
"version": "1.8.1"
},
"multi-cursor": {
"version": "3.0.0"
},
"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"
},
"rulerz": {
"version": "0.5.0"
},
"scroll-marker": {
"version": "0.3.5"
},
"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"
},
"spell-check": {
"version": "0.76.1"
},
"status-bar": {
"version": "1.8.17"
},
"stop-cursor-blinking": {
"version": "1.0.1"
},
"string-encoder": {
"version": "0.2.0"
},
"styleguide": {
"version": "0.49.12"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "5.2.16"
},
"tabs": {
"version": "0.110.0"
},
"terminus": {
"version": "4.1.5"
},
"timecop": {
"version": "0.36.2"
},
"title-case": {
"version": "0.4.0"
},
"toggle-gutter": {
"version": "0.3.4"
},
"tree-view": {
"version": "0.228.0"
},
"tree-view-focus-editor": {
"version": "0.2.0"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.7"
},
"wrap-guide": {
"version": "0.41.0"
}
}
{
"*": {
"atom-clock": {
"dateFormat": "ddd D MMM H:mm Z",
"showOnlyInFullscreen": true
},
"block-cursor": {
"global": {
"blinkOff": {
"borderColor": "#00ff33",
"borderStyle": "bordered-box"
},
"blinkOn": {
"backgroundColor": "#6f0b0b",
"borderColor": "#ff7b00",
"borderStyle": "i-beam"
},
"cursorLineFix": true
}
},
"bracket-matcher": {},
"command-palette": {},
"core": {
"audioBeep": false,
"autoHideMenuBar": true,
"automaticallyUpdate": false,
"colorProfile": "srgb",
"customFileTypes": {
"text.html.liquid": [
"json",
"html",
"markdown",
"md",
"mdown",
"mdwn",
"mkd",
"mkdn",
"mkdown"
]
},
"disabledPackages": [
"wrap-guide",
"linter-ui-default",
"linter",
"intentions"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [
"toggle-gutter",
"maximize-panes"
],
"reopenProjectMenuCount": 35,
"telemetryConsent": "limited",
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
],
"versionPinnedPackages": [
"terminus"
]
},
"custom-title": {
"template": "<%- projectName %> — <%= fileName %>"
},
"editor": {
"scrollSensitivity": 20,
"showInvisibles": true,
"softWrap": true,
"zoomFontWhenCtrlScrolling": false
},
"exception-reporting": {
"userId": "a2182084-8284-4a1f-9c90-25bfd4629feb"
},
"ftp-remote-edit": {
"config": "2d351b24e90dad9a46ba848bfc8670de0fab688ce9d2d53c388c4018d5580860bcbde3a19631b0e82aa1688f4bc50f2d17c3987d96a5ffe6fc51d986bf9d41e5273f1a4b0ec109e30093d3c399447339c8627a6d565e1de1cfea41596ac53521ccd6320ae680196ad3abbbda3edd9d02ce81bc53367eb85c781b51f38ddb0d3e9ab84414ab4e06f2f6fe25778f2e6276a795a27b85ead6770d89570f4ad217ce08709a44bcef280258825df941e21c9e9dce759e878377340433a84ebb465651c0186dd47983ddbc1aafd2915b575b40fe46030092a8964b2c68bc6e511af5e7910b61c747c63086f1f1334f7d7068cc717fc27b327931b7a94ae3fa6fb3ec2e72a08d83b998542def25366b896bc07d5f3f6b672bd3583a5b",
"password": "26721933f40dac"
},
"github": {},
"highlight-selected": {
"hideHighlightOnSelectedWord": true,
"showResultsOnScrollBar": true
},
"language-markdown": {},
"linter-ui-default": {
"panelHeight": 300
},
"markdown-preview": {
"useGitHubStyle": true
},
"minimap": {
"independentMinimapScroll": true,
"plugins": {
"lens-mode": true,
"lens-modeDecorationsZIndex": 0
},
"smoothScrolling": true
},
"nord-atom-ui": {
"tabSizing": false
},
"platformio-ide-terminal": {
"style": {
"defaultPanelHeight": "10em",
"theme": "linux"
},
"toggles": {
"cursorBlink": false
}
},
"spell-check": {
"excludedScopes": [
"source.gfm"
]
},
"status-bar": {},
"sync-settings": {
"autoCheckForUpdatedBackup": "no",
"hiddenSettings": {}
},
"tabs": {
"enableMruTabSwitching": false,
"enableVcsColoring": true
},
"terminus": {
"ansiColors": {
"normal": {}
},
"style": {
"defaultPanelHeight": "6em",
"theme": "linux"
},
"toggles": {
"cursorBlink": false,
"showToolbar": false
}
},
"title-bar-replacer": {
"configuration": {},
"general": {
"autoHide": true
}
},
"toggle-gutter": {
"showGutters": false
},
"tree-view": {
"hideVcsIgnoredFiles": true
},
"tree-view-git-status": {
"gitFlow": {
"enabled": false
}
},
"tree-view-panes": {
"showTooltips": false
},
"welcome": {
"showOnStartup": false
},
"whitespace": {
"ensureSingleTrailingNewline": false,
"removeTrailingWhitespace": false
},
"color-picker": {
"preferredFormat": "HSL",
"randomColor": 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
# HTML (LIQUID)
'.source.html, .source.gfm, .text.md, .text.html.liquid':
# TAG
'HTML Tag':
prefix: 'tag'
body: '<${1:tag}>${2:text}</${1}>'
# UNLESS
'Liquid Unless':
prefix: 'un'
body: '{% unless ${1:condition} %}${2:code}{% endunless %}'
description: 'Liquid Unless no -'
rightLabelHTML: '<span style="color:PaleTurquoise">Liquid <span style="font-style:bold;">Unless</span></span>'
# LINK
'Liquid Link':
prefix: 'lin'
body: '{% link ${1:path} %}'
description: 'Liquid link'
rightLabelHTML: '<span style="color:Plum;">Liquid <span style="font-style:italic;">link</span></span>'
# INCLUDE
'Liquid Include':
prefix: 'in'
body: '{% include ${1:variable}.html %}'
description: 'Liquid include'
rightLabelHTML: '<span style="color:burlywood;">Liquid <span style="font-style:italic;">include</span></span>'
# ASSIGN
'Liquid Assign':
prefix: 'as'
body: '{% assign ${1:variable} = ${2:value} %}'
description: 'Liquid assign'
rightLabelHTML: '<span style="color:MediumVioletRed;">Liquid <span style="font-style:italic;">assign</span></span>'
# FOR
'Liquid For':
prefix: 'for'
body: """{% for ${1:item} in ${2:items} %}
{{ ${3:forloop.index0} }}
{% endfor %}"""
description: 'Liquid for'
rightLabelHTML: '<span style="color:Khaki;">Liquid <span style="font-style:italic;">for</span></span>'
# API
'Liquid API variabile':
prefix: 'api'
body: """{%- capture api -%}
## ${1:Title}
${2:Description}
```liquid
{% raw %}{% include ${3:File}.html %}{% endraw %}
```
**Includes**
- `${4:option}`: ${5:description}
{%- endcapture -%}"""
description: 'Liquid for'
rightLabelHTML: '<span style="color:Khaki;">Liquid <span style="font-style:italic;">for</span></span>'
# CAPTURE
'Liquid Capture':
prefix: 'ca'
body: '{% capture ${1:variable} %}${2:value}{% endcapture %}'
description: 'Liquid capture'
rightLabelHTML: '<span style="color:IndianRed;">Liquid <span style="font-style:italic;">capture</span></span>'
# CAPTURE SHORT
'Liquid Capture Short':
prefix: 'cap'
body: '{%- capture ${1:variable} -%}${2:value}{%- endcapture -%}'
description: 'Liquid capture short'
rightLabelHTML: '<span style="color:Peru;">Liquid <span style="font-style:italic;">capture</span></span>'
# CAPTURE BIG
'Liquid BIG Capture':
prefix: 'capt'
body: """{%- capture ${1:variable} -%}
${2:value}
{%- endcapture -%}"""
description: 'Liquid Big capture'
rightLabelHTML: '<span style="color:Peru;">Liquid <span style="font-style:italic;">Big capture</span></span>'
# HTML COMMENT
'Html Comment':
prefix: 'co'
body: '<!-- ${1:comment} -->'
description: 'Html comment'
rightLabelHTML: '<span style="color:MistyRose;">Html <span style="font-style:italic;">comment</span></span>'
# HTML BIG COMMENT
'Html Big Comment':
prefix: 'coo'
body: """<!--
${1:comment}
-->"""
description: 'Html BIG comment'
rightLabelHTML: '<span style="color:Thistle;">Html <span style="font-style:italic;">BIG comment</span></span>'
# LIQUID COMMENT
'Liquid Comment':
prefix: 'com'
body: '{% comment %} -------------------- ${1:comment} -------------------- {% endcomment %}'
description: 'Liquid comment'
rightLabelHTML: '<span style="color:Amethyst;">Liquid <span style="font-style:italic;">comment</span></span>'
# LIQUID BIG COMMENT
'Liquid Big Comment':
prefix: 'comm'
body: """{%- comment -%}
${1:comment}
{%- endcomment -%}"""
description: 'Liquid BIG comment'
rightLabelHTML: '<span style="color:NavajoWhite;">Liquid <span style="font-style:italic;">BIG comment</span></span>'
'Liquid Inspect':
# INSPECT
prefix: 'ins'
body: '| inspect '
description: 'Liquid inspect'
rightLabelHTML: '<span style="color:Tomato;">Liquid <span style="font-style:italic;">inspect</span></span>'
# IF
'Liquid If':
prefix: 'iff'
body: '{% if ${1:condition} %}${2:code}{% endif %}'
description: 'Liquid if'
rightLabelHTML: '<span style="color:Amethyst;">Liquid <span style="font-style:italic;">if</span></span>'
# RAW
'Liquid Raw':
prefix: 'raw'
body: '{% raw %}${1:raw liquid}{% endraw %}'
description: 'Liquid inspect'
rightLabelHTML: '<span style="color:PaleTurquoise;">Liquid <span style="font-style:italic;">raw</span></span>'
# ToC
'Table of contents':
prefix: 'toc'
body: """{:.no_toc}
- toc
{:toc}"""
description: 'Markdown ToC'
rightLabelHTML: '<span style="color:Moccasin;">Markdown <span style="font-style:italic;">Toc</span></span>'
# Language tag
'Language tag':
prefix: 'lan'
body: "{:.language-${1:ext}}"
description: 'Markdown Language tag'
rightLabelHTML: '<span style="color:PeachPuff;">Markdown <span style="font-style:italic;">Language tag</span></span>'
# YAML
'.source.yaml':
# CONFIG
'Config.yml':
prefix: 'config'
body: """timezone: Europe/Rome
baseurl: /repository
permalink: pretty
repository: userorg/repository
remote_theme: userorg/repository@main
# COLLECTIONS
collections:
docs:
output: true
title: Docs
# DEFAULTS
defaults:
- scope:
path: ""
values:
layout: default"""
description: 'Config.yml'
rightLabelHTML: '<span style="color:Tomato;">Config<span style="font-style:italic">.yml</span></span>'
# ACTION
'Action.yml':
prefix: 'action'
body: """name: Fetch file and save
on:
schedule:
# Run at 00:01 06:01 12:01 18:01 UTC every day
- cron: '1 0/6 * * *'
jobs:
fetch:
name: Fetch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: wget "<url>" --output-document=<filepath>
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4"""
description: 'Action.yml'
rightLabelHTML: '<span style="color:Tomato;">Action<span style="font-style:italic">.yml</span></span>'
# SASS
'.source.sass, .source.less':
# ^= starts, $= ends, *= contains ~= separated
'CSS attributes':
prefix: '[]'
body: """
^= it starts with
$= it ends with
*= it contains (substring, check below)
~= whitespace separated selector
"""
description: 'CSS attributes wildcards'
rightLabelHTML: '<span style="color:Plum;">CSS <span style="font-style:italic;">attributes</span></span>'
# Root variabiles
'Root variabiles':
prefix: 'root'
body: """
\\\\:root
--${1}: ${2}
"""
description: 'CSS attributes wildcards'
rightLabelHTML: '<span style="color:Plum;">CSS <span style="font-style:italic;">attributes</span></span>'
# COMMENT
'Sass Comment':
prefix: 'com'
body: """//
// ${1}
// --------------------------------------
"""
description: 'Sass comment'
rightLabelHTML: '<span style="color:Amethyst;">Sass <span style="font-style:italic;">comment</span></span>'
# MEDIA QUERY
'Media Query':
prefix: 'media'
body: """//
// Small screens
// --------------------------------------
@media (max-width: ${1:width})
${2}"""
description: 'media query'
rightLabelHTML: '<span style="color:Violet;">Sass <span style="font-style:italic;">media query</span></span>'
# COFFEESCRIPT
'.source.coffee':
# JS VERSION
'Log js versions':
prefix: 'ver'
body: """try $().jquery catch e then $().jquery
"""
description: 'Log js versions'
rightLabelHTML: '<span style="color:Midnightblue;">Log <span style="font-weight:bold;">js versions</span></span>'
# COMMENT
'Comment':
prefix: 'com'
body: """#
# $1
# --------------------------------------"""
description: 'coffeescript comment'
rightLabelHTML: '<span style="color:Fucsia;">Coffeescript <span style="font-style:italic;">comment</span></span>'
# API
'Liquid API variabile':
prefix: 'api'
body: """{%- capture api -%}
## ${1:Title}
${2:Description}
```liquid
{% raw %}{% include ${3:File}.html %}{% endraw %}
```
**Includes**
- `${4:option}`: ${5:description}
{%- endcapture -%}"""
description: 'Liquid for'
rightLabelHTML: '<span style="color:Khaki;">Liquid <span style="font-style:italic;">for</span></span>'
# INCLUDE
'Liquid Include':
prefix: 'in'
body: '{% include ${1:variable}.html %}'
description: 'Liquid include'
rightLabelHTML: '<span style="color:burlywood;">Liquid <span style="font-style:italic;">include</span></span>'
/*
* 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
*/
/*************************************************/
/* VERSION FREEZED 1.47.0 x64 */
/*************************************************/
/* ATOM DARK SYNTAX THEME */
.syntax--string{
// Green
color: #87C38A;
}
.syntax--entity{
// Orange
color: hsl(29, 83%, 73%);
}
.syntax--support.syntax--function{
// Yellow
color: hsl(52, 84%, 75%);
}
.syntax--source .syntax--entity.syntax--other.syntax--attribute-name{
color: #e26ae0;
}
.syntax--comment{
// Grey
color: hsl(0, 0%, 54%);
}
/*
* Examples
* (To see them, uncomment and save)
*/
@dark-forest: hsla(hue(SteelBlue), 54%, 4%, 1);
@very-dark: hsl(0, 0%, 10%);
@white: White;
@yellow: Yellow;
@viola: MediumVioletRed;
@cursor_crossair: rgba(255,255,0,.2);
// @scrollbar_thumbs: darken(@yellow, 25%);
@scrollbar_thumbs: darken(SteelBlue, 10%);
@scrollbar_width: 16px;
// Hate the thumb
.atom-dock-toggle-button{
display:none;
}
// Remove damn padding-left from code windows
.hidden-gutters .scroll-view{
padding-left: 0;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
background-color: @dark-forest;
// CURSOR horizontal line
.scroll-view{
padding-left: .1em;
padding-right: -.1em;
}
// Focused pane
&.is-focused{
background-color: Black;
// GUTTER neon
.gutter{
background-color: rgba(255,255,0,.1);
}
// CURSOR LINE
.line.cursor-line{
background: linear-gradient(to top, @cursor_crossair 1px, transparent 1px);
}
// CURSOR vertical line
&.editor{
ruler-view.rulerz {
border-left: 1px solid @cursor_crossair;
}
}
// SCROLLBAR
::-webkit-scrollbar-thumb {
background-color: @scrollbar_thumbs;
}
}
}
//
// SCROLLBARS
// --------------------------------------
.scrollbars-visible-always ::-webkit-scrollbar-track,
.scrollbars-visible-always ::-webkit-scrollbar-corner {
background: hsl(200, 4%, 8%);
}
//
// TOOLTIP
// --------------------------------------
.tooltip{
&.top .tooltip-arrow{
border-top-color: #333;
}
.tooltip-inner{
background: #333;
color: #fff;
}
}
//
// TAB BARS
// --------------------------------------
.tab-bar {
background: none;
padding-right: 0;
.tab {
background-image: -webkit-linear-gradient(top, hsla(0, 0%, 22%, 1), hsla(0, 0%, 5%, 1));
font-size: 14px;
.title {
padding-top: 6px;
}
&::before{
border-top-left-radius: 0;
box-shadow: 0;
}
&:before, &:after {
background-image: -webkit-linear-gradient(top, hsla(0, 0%, 22%, 1), hsla(0, 0%, 5%, 1));
-webkit-transform: none;
}
.close-icon:hover::before {
cursor: pointer;
}
}
}
// style UI elements inside atom-text-editor
// atom-text-editor .cursor {
// border-color: red;
// }
//
// SEARCH PANEL
// --------------------------------------
.tool-panel {
background: @very-dark;
font-size: 12px;
}
//
// BUTTONS
// --------------------------------------
.btn {
font-size: 14px;
background-image: -webkit-linear-gradient(hsl(210, 6%, 22%), hsl(205, 5%, 18%))
}
//
// SCROLL BAR
// --------------------------------------
.scrollbars-visible-always {
::-webkit-scrollbar {
width: @scrollbar_width;
height: @scrollbar_width;
&-track {
// border: 0px;
border-radius: 0px;
// background-color: #444 !important;
}
&-thumb {
// background-color: rgba(255,200,200,0.35) !important;
// border: 0px;
border-radius: 0;
}
}
}
.scrollbar-corner{
display: none;
}
.scroll-marker-view{
width: @scrollbar_width;
}
// .tree-view-resizer, .editor {
// ::-webkit-scrollbar {
// &-corner {
// background-color: @very-dark;
// }
// }
//
// ::-webkit-scrollbar-track {
// background-color: @very-dark;
// }
//
// ::-webkit-scrollbar-thumb {
// background-color: darken(@yellow, 30%);
// }
// }
//
// ================== TREE VIEW ===================
//
// style the background color of the tree view
.tree-view {
background-color: @dark-forest;
&:focus{
background-color: Black;
// SCROLLBAR
&::-webkit-scrollbar-thumb {
background-color: @scrollbar_thumbs;
}
}
}
.list-tree.has-collapsable-children .list-nested-item > .list-tree > li, .list-tree.has-collapsable-children .list-nested-item > .list-group > li {
padding-left: 10px;
}
.list-tree.has-collapsable-children .list-nested-item > .list-item::before {
margin-right: 0;
}
.list-group li:not(.list-nested-item), .list-tree li:not(.list-nested-item), .list-group li.list-nested-item > .list-item, .list-tree li.list-nested-item > .list-item {
line-height: 20px;
}
.list-group .icon::before, .list-tree .icon::before {
margin-right: 2px;
}
.list-group .selected::before, .list-tree .selected::before {
height: 19px;
}
// tree-view-panes Package selected file style
.theme-atom-dark-ui .tree-view-panes .list-item-pane.active .list-item.selected::before{
background-color: none;
}
//
// github-Git-root right pane
// --------------------------------------
atom-pane-container atom-pane{
background-color: @very-dark;
}
// STATUS BAR
.grammar-status a {
color: yellow;
}
.github-ChangedFilesCount {
color: deepskyblue;
&:hover {
color: #aaa;
}
}
.github-PushPull {
color: hotpink;
}
// CLOCK (Full screen only)
.atom-clock-time {
color: #2BDA77;
}
.github-StatusBarTileController > .inline-block:hover{
cursor: pointer;
}
// Github buttons Status bar Right
button{
&.github-ChangedFilesCount,
&.github-StatusBarTile{
cursor: pointer !important;
}
}
// Status bar Left
.active i.icon.icon-terminal{
// color: yellow;
}
.status-bar {
// Status bar
margin: 0 0 0 0;
font-size: 14px;
height: 26px;
.status-bar-left{
position: relative;
top: -1px;
.file-info, .cursor-position, .selection-count{
position: relative;
top: -1px;
}
}
.status-container .terminus-status-icon{
// Icons opacity
opacity: 1;
// Green icon
// &[style='color: rgb(0, 128, 0);']{
// color: #12e500 !important;
// }
&:hover{
color: White !important;
}
}
// Terminus icons counter
.status-container{
// First
.terminus-status-icon:nth-of-type(1){
color: rgb(255, 255, 0);
.icon-terminal::before{
content: "";
}
.name::before{
content: "DCU"
}
}
// Second
.terminus-status-icon:nth-of-type(2){
color: #12e500;
.icon-terminal::before{
content: "";
}
.name::before{
content: "PET";
}
}
}
// New terminal
.icon-plus {
color: lawngreen !important;
}
} // End .status-bar
//
// Settings panel
// --------------------------------------
.settings-view{
// left menu
.config-menu{
background-color: lighten(@very-dark, 3%);
a.icon{
color:@white;
font-size: 130%;
}
}
// right panel
.panels{
background-color: @very-dark;
}
.settings-panel label{
color: darken(@white, 5%);
}
.setting-description{
color: darken(@white, 30%);
}
// subsection
.sub-section .sub-section-heading{
padding-left: 10px;
padding-right: 10px;
// background-color: transparent;
}
}
.pane.active .settings-view{
// SCROLLBAR
::-webkit-scrollbar-thumb {
background-color: @scrollbar_thumbs;
}
}
//
// Input fields
// --------------------------------------
// Placeholder text
atom-text-editor .placeholder-text{
color: darken(@white, 50%);
}
// Input border
atom-text-editor[mini]{
background-color: darken(@very-dark, 3%);
&.is-focused{
border-color: darken(@yellow, 35%);
// border-radius: 0;
background-color: darken(@very-dark, 5%);
}
}
.find-meta-container .result-counter{
color: darken(@white, 40%);
}
//
// TERMINUS
// --------------------------------------
.terminus {
line-height: 1;
&.status-bar{
margin: 0 10px 0 0;
}
// Panel top divider
&.terminal-view {
.input-block{
padding: 1px;
}
.xterm{
padding: 0px;
// .terminal div:last-child{
// display: none
// }
}
.linux{
background-color: @dark-forest;
}
}
// X icon
.icon-x::before{
top: 0.15em;
font-size: 140%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment