Skip to content

Instantly share code, notes, and snippets.

@annibal
Last active January 2, 2018 19:51
Show Gist options
  • Save annibal/6b73d6dd5f621c5d473e49985b7f4062 to your computer and use it in GitHub Desktop.
Save annibal/6b73d6dd5f621c5d473e49985b7f4062 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-|': 'tab-toggler:toggle'
'body':
'ctrl-tab': 'pane:show-next-item'
'ctrl-shift-tab': 'pane:show-previous-item'
[
{
"name": "about",
"version": "1.7.8"
},
{
"name": "activate-power-mode",
"version": "2.6.0"
},
{
"name": "angularjs",
"version": "0.5.1"
},
{
"name": "archive-view",
"version": "0.64.1"
},
{
"name": "atom-bracket-highlight",
"version": "0.3.2"
},
{
"name": "atom-dark-syntax",
"version": "0.28.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.0",
"theme": "ui"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.0",
"theme": "ui"
},
{
"name": "atom-no-tab-close-button",
"version": "1.0.0"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.5"
},
{
"name": "autocomplete-css",
"version": "0.17.4"
},
{
"name": "autocomplete-html",
"version": "0.8.3"
},
{
"name": "autocomplete-plus",
"version": "2.38.0"
},
{
"name": "autocomplete-snippets",
"version": "1.11.2"
},
{
"name": "autoflow",
"version": "0.29.0"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "background-tips",
"version": "0.27.1"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "bookmarks",
"version": "0.44.4"
},
{
"name": "bracket-matcher",
"version": "0.88.0"
},
{
"name": "color-picker",
"version": "2.2.5"
},
{
"name": "command-palette",
"version": "0.42.0"
},
{
"name": "css-snippets",
"version": "1.1.0"
},
{
"name": "dalek",
"version": "0.2.1"
},
{
"name": "dark-flat-ui",
"version": "1.2.4",
"theme": "ui"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.47.1"
},
{
"name": "emmet",
"version": "2.4.3"
},
{
"name": "encoding-selector",
"version": "0.23.7"
},
{
"name": "exception-reporting",
"version": "0.42.0"
},
{
"name": "file-icons",
"version": "2.1.15"
},
{
"name": "find-and-replace",
"version": "0.215.0"
},
{
"name": "foldername-tabs",
"version": "0.2.4"
},
{
"name": "font-awesome-snippet",
"version": "0.0.1"
},
{
"name": "fuzzy-finder",
"version": "1.7.3"
},
{
"name": "git-diff",
"version": "1.3.6"
},
{
"name": "github",
"version": "0.8.3"
},
{
"name": "go-to-line",
"version": "0.32.1"
},
{
"name": "grammar-selector",
"version": "0.49.8"
},
{
"name": "graphite-ui",
"version": "0.15.1",
"theme": "ui"
},
{
"name": "highlight-column",
"version": "0.5.4"
},
{
"name": "highlight-line",
"version": "0.12.0"
},
{
"name": "highlight-selected",
"version": "0.13.1"
},
{
"name": "image-view",
"version": "0.62.4"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "keybinding-resolver",
"version": "0.38.1"
},
{
"name": "language-c",
"version": "0.58.1"
},
{
"name": "language-clojure",
"version": "0.22.4"
},
{
"name": "language-coffee-script",
"version": "0.49.3"
},
{
"name": "language-csharp",
"version": "0.14.3"
},
{
"name": "language-css",
"version": "0.42.7"
},
{
"name": "language-gfm",
"version": "0.90.2"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.44.3"
},
{
"name": "language-html",
"version": "0.48.4"
},
{
"name": "language-hyperlink",
"version": "0.16.3"
},
{
"name": "language-java",
"version": "0.27.6"
},
{
"name": "language-javascript",
"version": "0.127.6"
},
{
"name": "language-json",
"version": "0.19.1"
},
{
"name": "language-less",
"version": "0.33.0"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.14.4"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-php",
"version": "0.42.2"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.45.5"
},
{
"name": "language-ruby",
"version": "0.71.4"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.2"
},
{
"name": "language-sass",
"version": "0.61.1"
},
{
"name": "language-shellscript",
"version": "0.25.4"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.8"
},
{
"name": "language-text",
"version": "0.7.3"
},
{
"name": "language-todo",
"version": "0.29.3"
},
{
"name": "language-toml",
"version": "0.18.1"
},
{
"name": "language-typescript",
"version": "0.2.2"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.31.1"
},
{
"name": "line-ending-selector",
"version": "0.7.4"
},
{
"name": "link",
"version": "0.31.3"
},
{
"name": "markdown-preview",
"version": "0.159.18"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "metro-syntax",
"version": "0.3.1",
"theme": "syntax"
},
{
"name": "metro-ui",
"version": "2.2.2",
"theme": "ui"
},
{
"name": "minimap",
"version": "4.29.7"
},
{
"name": "minimap-cursorline",
"version": "0.2.0"
},
{
"name": "minimap-find-and-replace",
"version": "4.5.2"
},
{
"name": "minimap-git-diff",
"version": "4.3.1"
},
{
"name": "minimap-highlight-selected",
"version": "4.6.1"
},
{
"name": "minimap-pigments",
"version": "0.2.2"
},
{
"name": "minimap-selection",
"version": "4.5.0"
},
{
"name": "neon-cursor",
"version": "1.6.0"
},
{
"name": "neon-selection",
"version": "0.3.2"
},
{
"name": "neutron-syntax",
"version": "0.7.0",
"theme": "syntax"
},
{
"name": "neutron-ui",
"version": "0.4.0",
"theme": "ui"
},
{
"name": "notifications",
"version": "0.69.2"
},
{
"name": "one-dark-syntax",
"version": "1.8.0",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.10.8",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.0",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.10.8",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "outlander-syntax",
"version": "2.0.0",
"theme": "syntax"
},
{
"name": "outlander-ui",
"version": "1.4.0",
"theme": "ui"
},
{
"name": "package-generator",
"version": "1.1.1"
},
{
"name": "pigments",
"version": "0.40.2"
},
{
"name": "predawn-syntax",
"version": "1.0.4",
"theme": "syntax"
},
{
"name": "predawn-ui",
"version": "1.0.7",
"theme": "ui"
},
{
"name": "rainbow-tabs",
"version": "2.5.1"
},
{
"name": "seti-syntax",
"version": "1.1.3",
"theme": "syntax"
},
{
"name": "seti-ui",
"version": "1.9.0",
"theme": "ui"
},
{
"name": "settings-view",
"version": "0.253.0"
},
{
"name": "slack-ui",
"version": "0.8.0",
"theme": "ui"
},
{
"name": "slime",
"version": "2.4.0",
"theme": "syntax"
},
{
"name": "snippets",
"version": "1.1.9"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.2",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.72.3"
},
{
"name": "status-bar",
"version": "1.8.14"
},
{
"name": "styleguide",
"version": "0.49.8"
},
{
"name": "symbols-view",
"version": "0.118.1"
},
{
"name": "sync-settings",
"version": "0.8.3"
},
{
"name": "tab-toggler",
"version": "0.1.1"
},
{
"name": "tabs",
"version": "0.109.1"
},
{
"name": "timecop",
"version": "0.36.0"
},
{
"name": "tool-bar",
"version": "1.1.0"
},
{
"name": "tool-bar-almighty",
"version": "0.8.2"
},
{
"name": "tree-view",
"version": "0.221.3"
},
{
"name": "update-package-dependencies",
"version": "0.12.0"
},
{
"name": "vertical-tabs",
"version": "1.0.5"
},
{
"name": "welcome",
"version": "0.36.6"
},
{
"name": "whitespace",
"version": "0.37.5"
},
{
"name": "wrap-guide",
"version": "0.40.2"
}
]
{
"activate-power-mode": {
"comboMode": {
"exclamationEvery": 13,
"exclamationTexts": [
"Supimpa!",
"Caralhudo!",
"Fodástico!",
"Incrível!",
"Que Merda!",
"Arregaçante!",
"Berro!",
"Puta Merda!",
"Olha isso cara!",
"Foda!",
"Muito Bom!",
"Que porcaria!",
"Continua fazendo essa merda!",
"Aaaaaaa!",
"Fantástico!",
"Ó O GÁS!",
"Malandramente!"
],
"opacity": 0.7,
"streakTimeout": 12
},
"excludedFileTypes": {
"excluded": [
"cpp"
]
},
"particles": {
"spawnCount": {
"max": 12,
"min": 6
},
"totalCount": {
"max": 300
}
},
"plugins": {
"playAudio": true,
"screenShake": true
},
"screenShake": {
"maxIntensity": 5,
"minIntensity": 2
}
},
"atom-clock": {
"dateFormat": " HH:mm",
"locale": "pt-br",
"refreshInterval": 50,
"showClockIcon": true
},
"color-picker": {
"randomColor": false
},
"core": {
"audioBeep": false,
"autoHideMenuBar": true,
"disabledPackages": [
"minimap-pigments",
"pigments"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [
"vertical-tabs"
],
"telemetryConsent": "limited",
"themes": [
"metro-ui",
"slime"
],
"uriHandlerRegistration": "always"
},
"editor": {
"scrollPastEnd": true,
"showIndentGuide": true,
"tabType": "soft",
"undoGroupingInterval": 200,
"zoomFontWhenCtrlScrolling": false
},
"exception-reporting": {
"userId": "d91ebd2e-9b1c-0142-71d0-a5ffa9b73e85"
},
"file-icons": {
"coloured": false
},
"foldername-tabs": {
"maxLength": 0
},
"highlight-column": {
"opacity": 0.05
},
"metro-ui": {
"useSystemAccentColor": false
},
"minimap": {
"absoluteMode": true,
"adjustAbsoluteModeHeight": true,
"autoToggle": false,
"charHeight": 1,
"independentMinimapScroll": true,
"plugins": {
"cursorline": true,
"cursorlineDecorationsZIndex": 0,
"find-and-replace": true,
"find-and-replaceDecorationsZIndex": 0,
"git-diff": true,
"git-diffDecorationsZIndex": 0,
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0,
"linter": true,
"linterDecorationsZIndex": 0,
"pigments": true,
"pigmentsDecorationsZIndex": 0,
"selection": true,
"selectionDecorationsZIndex": 0
}
},
"neon-cursor": {},
"sync-settings": {},
"tabs": {},
"terminal-plus": {
"core": {
"autoRunCommand": "pwd",
"shell": "C:\\Windows\\System32\\cmd.exe"
},
"toggles": {
"autoClose": true
}
},
"tool-bar": {
"position": "Left"
},
"tree-view": {
"hideVcsIgnoredFiles": true
},
"vertical-tabs": {
"tabBarWidth": 40
},
"welcome": {
"showOnStartup": false
}
}
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
@nibol-tab-height:55px;
@nibol-tab-padding:15px;
@nibol-tab-width:12em;
@nibol-tab-width-expanded:32em;
@nibol-hover:#111;
@nibol-modified:#F99;
@nibol-active:#5e718f;
@nibol-minimap-top-distance:136px;
//TODO: variables over values
atom-text-editor .cursor {
width:0px !important;
}
atom-text-editor atom-text-editor-minimap:not([stand-alone]),
html atom-text-editor-minimap:not([stand-alone]) {
margin-top:@nibol-minimap-top-distance;
height: ~"calc(100% - "@nibol-minimap-top-distance~")";
}
[metro-ui-show-gutter-styling="true"] atom-text-editor.editor .gutter {
background: #25292c;
}
.tool-bar button[data-original-title="New File"] {
height: @nibol-tab-height !important;
border-right:px solid rgba(222,222,222,0.5) ;
}
.horizontal-scrollbar, .vertical-scrollbar {
display: none !important;
}
.vertical .tab-bar {
width:@nibol-tab-width;
min-width:@nibol-tab-width;
max-width:@nibol-tab-width;
&:hover {
width:@nibol-tab-width-expanded;
min-width:@nibol-tab-width-expanded;
max-width:@nibol-tab-width-expanded;
}
.tab, .tab .icon:before {
transition:all .3s ease;
}
.tab {
height: 55px !important;
width:100% !important;
max-width:none !important;
flex:none;
overflow: hidden;
display: block;
position: relative;
background: rgba(0,0,0,0.1);
margin-bottom: 1px;
&:last-child {
box-shadow:0 1px 7px rgba(0,0,0,0.25);
}
.title {
margin:5px;
margin-left: 10px;
overflow: visible;
}
.icon {
position: relative;
}
.icon:before {
position: absolute;
z-index: 1;
font-size: 3.2em !important;
opacity: .4;
right: -40px;
top: 5px !important;
transform:rotate(15deg);
}
&:hover, &:focus {
background:#111;
}
.foldername-tabs {
z-index: 2;
position: relative;
margin:0;
.folder {
color:rgba(255,255,255,0.75);
position: relative;
font-size: 11px;
}
.file, .title {
position: relative;
font-size: 14px;
}
}
&.modified {
background: #3d1F1F;
.icon:before {
color:#F99;
opacity: .3;
}
&:hover,&:focus {
background: #733;
.file, .title {
color:#F77;
}
}
}
&.active {
background:#5e718f;
.file, .title {
color:#e8f1f9;
font-weight: bold;
}
.folder {
color:#b1bfc9;
font-weight: normal;
}
.icon:before {
color:darken(#5e718f,10%);
opacity:1;
}
&:hover,&:focus {
.icon:before {
color:darken(#5e718f,17%);
}
}
}
&.active.modified {
&:hover,&:focus {
background:#5e718f;
}
&:after {
content:"";
position: absolute;
display: block;
top:-15px;
left:32px;
transform:rotate(23deg);
height: 100px;
background:darken(#5e718f,17%);
width:50px;
}
&:before {
content:"";
position: absolute;
display: block;
top:-15px;
left:102px;
transform:rotate(23deg);
height: 100px;
background:darken(#5e718f,17%);
width:50px;
}
}
&:hover, &:focus {
.folder {
color:#FFF;
}
.icon:before {
opacity: .7;
}
}
}
}
.tooltip.bottom {
display: none !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment