Skip to content

Instantly share code, notes, and snippets.

@romgrk
Last active August 14, 2018 19:15
Show Gist options
  • Select an option

  • Save romgrk/84a3089de29d692a64a2e4b79d093b28 to your computer and use it in GitHub Desktop.

Select an option

Save romgrk/84a3089de29d692a64a2e4b79d093b28 to your computer and use it in GitHub Desktop.
'use babel'
/*
* 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()}"
*/
/*
* Workspace commands
*/
atom.commands.add('atom-workspace', 'workspace:dismiss-notifications', () => {
atom.notifications.getNotifications().forEach(notification => {
notification.dismiss()
})
atom.notifications.clear()
})
/*
* Editor commands
*/
createEditorCommand('custom:repeat-search', [
'vim-mode-plus:repeat-search',
'vim-mode-plus:redraw-cursor-line-at-middle',
])
createEditorCommand('custom:repeat-search-reverse', [
'vim-mode-plus:repeat-search-reverse',
'vim-mode-plus:redraw-cursor-line-at-middle',
])
createEditorCommand('custom:line-jump-up', [
'vim-mode-plus:move-up',
'vim-mode-plus:move-up',
'vim-mode-plus:move-up',
'vim-mode-plus:move-up',
'vim-mode-plus:move-up',
])
createEditorCommand('custom:line-jump-down', [
'vim-mode-plus:move-down',
'vim-mode-plus:move-down',
'vim-mode-plus:move-down',
'vim-mode-plus:move-down',
'vim-mode-plus:move-down',
])
createEditorCommand('custom:visual-to-edge-down', [
'vim-mode-plus:activate-blockwise-visual-mode',
'vim-mode-plus:move-down-to-edge',
])
createEditorCommand('custom:visual-to-edge-up', [
'vim-mode-plus:activate-blockwise-visual-mode',
'vim-mode-plus:move-up-to-edge',
])
createEditorCommand('custom:visual-mode-end-of-line', [
'vim-mode-plus:move-to-last-character-of-line',
'vim-mode-plus:move-left',
])
createEditorCommand('custom:duplicate-line-up', [
'editor:duplicate-lines',
'vim-mode-plus:move-up',
])
createEditorCommand('custom:duplicate-line-down', [
'editor:duplicate-lines',
])
createEditorCommand('custom:yank-all', [
'core:select-all',
'vim-mode-plus:yank',
])
createEditorCommand('custom:visual-indent', [
'vim-mode-plus:indent',
'vim-mode-plus:select-previous-selection',
])
createEditorCommand('custom:visual-outdent', [
'vim-mode-plus:outdent',
'vim-mode-plus:select-previous-selection',
])
createEditorCommand('custom:normal-indent', [
'vim-mode-plus:indent',
'vim-mode-plus:indent',
])
createEditorCommand('custom:normal-outdent', [
'vim-mode-plus:outdent',
'vim-mode-plus:outdent',
])
createEditorCommand('custom:normal-replace-all', [
'find-and-replace:select-all',
'vim-mode-plus:change',
])
createEditorCommand('custom:normal-replace-line', [
'vim-mode-plus:toggle-preset-occurrence',
'vim-mode-plus:activate-linewise-visual-mode',
'vim-mode-plus:change',
])
createEditorCommand('custom:insert-mode', () => {
const editor = atom.workspace.getActiveTextEditor()
const pos = editor.getCursorBufferPosition()
const line = editor.lineTextForBufferRow(pos.row)
if (/^\s+$/.test(line))
dispatchCommands(['vim-mode-plus:change', 'vim-mode-plus:change'])
else
dispatchCommand('vim-mode-plus:activate-insert-mode')
})
createEditorCommand('custom:normal-howdoi', [
'vim-mode-plus:insert-after-end-of-line',
'atom-howdoi:howdoi',
])
consumeVimModePlusService(service => {
/*
* Left-Right
*/
class Value extends service.getClass('TextObject') {
static commandPrefix = "custom"
static command = false
wise = null
selectOnce = true
selectTextObject (selection) {
const positions = this.editor.getCursorBufferPositions()
const ranges = positions
.map(position => this.getValueRange(position))
.filter(x => x !== undefined)
if (ranges.length === 0)
return false
this.editor.setSelectedBufferRanges(ranges)
return true
}
}
class RValue extends Value {
getValueRange(position) {
const row = position.row
const line = this.editor.lineTextForBufferRow(row)
const match = line.match(/([-+*/:]?=[>]?|:)\s*/)
if (!match)
return undefined
const endMatch = line.match(/[,;]?$/)
const start = match.index + match[0].length
const end = line.length - endMatch[0].length
return [[row, start], [row, end]]
}
}
class LValue extends Value {
getValueRange(position) {
const row = position.row
const line = this.editor.lineTextForBufferRow(row)
const match = line.match(/\s*([-+*/:]?=[>]?|:)/)
if (!match)
return undefined
const start = line.match(/^\s*/)[0].length
const end = match.index
return [[row, start], [row, end]]
}
}
RValue.registerCommand()
LValue.registerCommand()
/*
* MagicWord
*/
const magicWordRegex =
/([A-Z0-9]{2,}(?:_|[^\w\s]))|([A-Z0-9]{2,}(?:_+|[^\w\s])?(?=\b|[A-Z][a-z0-9]))|([A-Za-z0-9][a-z0-9]*(_+|[^\w\s])?(?=[A-Z]?))|(\w+)|[^\s\w]{1,2}/g
const magicWordRegexEnd =
/((_+|[^\s\w])?[A-Z0-9]{2,}(?=\b|[A-Z][a-z0-9]))|((_+|[^\s\w])?[A-Z0-9]{2,})|((_+|[^\s\w])?[A-Za-z0-9][a-z0-9]*(?=(_+|[^\w\s]|[A-Z])?))|(\w+)|[^\s\w]{1,2}/g
// camelCaseWordHere
// snake_case_word_here
// dash-case-word-here
// HTTPRequest
// UpperURL_snakeCASEHere_OK_OKOK_END
// key:value: value
class MoveToNextMagicWord extends service.getClass('MoveToNextWord') {
static commandPrefix = "custom"
wordRegex = magicWordRegex
}
class MoveToPreviousMagicWord extends service.getClass('MoveToPreviousWord') {
static commandPrefix = "custom"
wordRegex = magicWordRegex
}
class MoveToEndOfMagicWord extends service.getClass('MoveToEndOfWord') {
static commandPrefix = "custom"
wordRegex = magicWordRegexEnd
}
class MagicWord extends service.getClass('TextObject') {
static commandPrefix = "custom"
static command = false
wise = null
selectOnce = true
wordRegex = magicWordRegex
getRange (selection) {
const point = this.getCursorPositionForSelection(selection)
const {range} = this.getWordBufferRangeAndKindAtBufferPosition(point, {wordRegex: this.wordRegex})
return this.isA() ? this.utils.expandRangeToWhiteSpaces(this.editor, range) : range
}
}
const {AMagicWord, InnerMagicWord} = MagicWord.deriveClass(true)
MoveToNextMagicWord.registerCommand()
MoveToPreviousMagicWord.registerCommand()
MoveToEndOfMagicWord.registerCommand()
MagicWord.registerCommand()
AMagicWord.registerCommand()
InnerMagicWord.registerCommand()
})
/**
* Creates a new command from other commands
* @param {string} scope
* @param {string} name
* @param {string[]} commands
*/
function createCommand(scope, name, commands) {
atom.commands.add(scope, name, () => {
if (typeof commands === 'function')
commands()
else
commands.forEach(dispatchCommand)
})
}
function createEditorCommand(name, commands) {
createCommand('atom-text-editor', name, commands)
}
function createWorkspaceCommand(name, commands) {
createCommand('atom-workspace', name, commands)
}
function dispatchCommand(name) {
document.activeElement.dispatchEvent(new CustomEvent(name, {bubbles: true, cancelable: true}))
}
function dispatchCommands(commands) {
commands.forEach(dispatchCommand)
}
function consumeVimModePlusService(callback) {
const consume = (pack) => callback(pack.mainModule.provideVimModePlus())
const pack = atom.packages.getActivePackage('vim-mode-plus')
if (pack) {
consume(pack)
} else {
const disposable = atom.packages.onDidActivatePackage(pack => {
if (pack.name === 'vim-mode-plus') {
disposable.dispose()
consume(pack)
}
})
}
}
# 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
# Select lists
'.select-list atom-text-editor':
'tab': 'core:move-down'
'shift-tab': 'core:move-up'
'alt-j': 'core:move-down'
'alt-k': 'core:move-up'
# Unsets
'atom-workspace atom-text—editor:not([mini])':
'ctrl-k ctrl-0': 'unset!'
'ctrl-k ctrl-1': 'unset!'
'ctrl-k ctrl-2': 'unset!'
'ctrl-k ctrl-3': 'unset!'
'ctrl-k ctrl-4': 'unset!'
'ctrl-k ctrl-5': 'unset!'
'ctrl-k ctrl-6': 'unset!'
'ctrl-k ctrl-7': 'unset!'
'ctrl-k ctrl-8': 'unset!'
'ctrl-k ctrl-9': 'unset!'
'.platform-win32, .platform-linux':
'alt': 'abort!'
'ctrl-alt': 'abort!'
'alt-p': 'abort!'
'alt-f1': 'window:toggle-menu-bar'
'ctrl-k ctrl-b': 'unset!'
'.platform-win32 atom-text—editor, .platform-linux atom-text—editor':
'ctrl-k ctrl-d': 'unset!'
'atom-workspace atom-text—editor':
'ctrl-k ctrl-l': 'unset!'
'ctrl-k ctrl-u': 'unset!'
# Global
'body':
'ctrl-w': 'unset!'
'alt': 'unset!'
'ctrl-k up': 'unset!'
'ctrl-k down': 'unset!'
'ctrl-k left': 'unset!'
'ctrl-k right': 'unset!'
'ctrl-k ctrl-w': 'unset!'
'ctrl-k ctrl-alt-w': 'unset!'
'ctrl-k ctrl-p': 'unset!'
'ctrl-k ctrl-n': 'unset!'
'ctrl-k ctrl-up': 'unset!'
'ctrl-k ctrl-down': 'unset!'
'ctrl-k ctrl-left': 'unset!'
'ctrl-k ctrl-right': 'unset!'
'alt-j': 'core:move-down'
'alt-k': 'core:move-up'
'alt-,': 'pane:show-previous-item'
'alt-.': 'pane:show-next-item'
'alt-w': 'window:focus-next-pane'
'alt-o': 'fuzzy-finder:toggle-file-finder'
'alt-shift-o': 'advanced-open-file:toggle'
'alt-i': 'atom-ctags:toggle-file-symbols'
'alt-shift-i': 'atom-ctags:toggle-project-symbols'
'alt-c': 'core:close'
'alt-shift-c': 'pane:reopen-closed-item'
'ctrl-\\': 'tree-view:toggle'
'alt-;': 'command-palette:toggle'
# 'alt-space': 'window:toggle-bottom-dock'
'atom-workspace':
'ctrl-shift-c': 'workspace:dismiss-notifications'
'alt-shift-i': 'atom-ctags:toggle-project-symbols'
'alt-o': 'unset!'
'atom-text-editor:not([mini])':
'ctrl-shift-c': 'unset!'
# Not INSERT
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
'alt-h': 'vim-mode-plus:move-to-first-character-of-line'
'alt-l': 'vim-mode-plus:move-to-last-character-of-line'
'alt-u': 'vim-mode-plus:mini-scroll-up'
'alt-d': 'vim-mode-plus:mini-scroll-down'
'w': 'custom:move-to-next-magic-word'
'b': 'custom:move-to-previous-magic-word'
'e': 'custom:move-to-end-of-magic-word'
'alt-e': 'vim-mode-plus:move-to-end-of-whole-word'
'alt-b': 'vim-mode-plus:move-to-previous-whole-word'
'tab': 'vim-mode-plus:move-to-pair'
'alt-f': 'vim-mode-plus:find-backwards'
'alt-\'unset!': 'editor:toggle-line-comments'
'H': 'cursor-history:prev'
'L': 'cursor-history:next'
'ctrl-h': 'cursor-history:prev-within-editor'
'ctrl-l': 'cursor-history:next-within-editor'
'alt-j': 'custom:line-jump-down'
'alt-k': 'custom:line-jump-up'
'n': 'custom:repeat-search'
'N': 'custom:repeat-search-reverse'
# NORMAL
'atom-text-editor.vim-mode-plus.normal-mode':
'i': 'custom:insert-mode'
'shift-u': 'vim-mode-plus:redo'
'ctrl-j': 'editor:newline'
'ctrl-k': 'vim-mode-plus:toggle-fold'
'ctrl-o': 'vim-mode-plus:unfold-current-row-recursively'
'z 0': 'vim-mode-plus:fold-all'
'z m': 'vim-mode-plus:fold-all'
'z r': 'vim-mode-plus:unfold-all'
'ctrl-]': 'atom-ctags:go-to-declaration'
'ctrl-t': 'atom-ctags:return-from-declaration'
'alt-shift-j': 'custom:visual-to-edge-down'
'alt-shift-k': 'custom:visual-to-edge-up'
'y u': 'custom:duplicate-line-up'
'y d': 'custom:duplicate-line-down'
'g /': 'vim-mode-plus:search-current-word'
'g ?': 'vim-mode-plus:search-current-word-backwards'
'g c': 'vim-mode-plus:camel-case'
'g C': 'vim-mode-plus:pascal-case'
'g _': 'vim-mode-plus:snake-case'
'g -': 'vim-mode-plus:param-case'
'g y a': 'custom:yank-all'
'g b': 'vim-mode-plus:select-latest-change'
'enter': 'editor:newline-below'
'alt-enter': 'editor:newline-above'
# 'alt-s': 'vim-mode-plus:surround'
'd s': 'vim-mode-plus:delete-surround'
'c s': 'vim-mode-plus:change-surround'
# Indent
'>': 'custom:normal-indent'
'<': 'custom:normal-outdent'
'< <': 'unset!'
'> >': 'unset!'
# Replace
'alt-r alt-a': 'custom:normal-replace-all'
'alt-r alt-l': 'custom:normal-replace-line'
'Z Z': 'window:close'
# Space commands
'space g s i': 'application:open-your-init-script'
'space g s k': 'application:open-your-keymap'
'space h o w': 'custom:normal-howdoi'
'space a s k': 'ask-stack:ask-question'
'space c p': 'color-picker:open'
# Git
'space g a .': 'git-plus:add'
'space g a m': 'git-plus:add-modified'
'space g a a': 'git-plus:add-all'
'space g a c': 'git-plus:add-all-and-commit'
'space g c .': 'git-plus:add-and-commit'
'space g p': 'git-plus:push'
'space g k': 'git-plus:checkout'
'space g K': 'git-plus:checkout-all-files'
'space g b': 'git-plus:new-branch'
'space g d j': 'git-diff:move-to-next-diff'
'space g d k': 'git-diff:move-to-previous-diff'
# VISUAL
'atom-text-editor.vim-mode-plus.visual-mode':
'alt-p': 'vim-mode-plus:inner-paragraph'
'space': 'vim-mode-plus:move-to-end-of-whole-word'
'alt-space': 'vim-mode-plus:move-to-previous-whole-word'
'alt-shift-j': 'vim-mode-plus:move-down-to-edge'
'alt-shift-k': 'vim-mode-plus:move-up-to-edge'
'>': 'custom:visual-indent'
'<': 'custom:visual-outdent'
# VISUAL (not blockwise)
'atom-text-editor.vim-mode-plus.visual-mode:not(.blockwise)':
'alt-l': 'custom:visual-mode-end-of-line'
# NORMAL + VISUAL
'atom-text-editor.vim-mode-plus.normal-mode, atom-text-editor.vim-mode-plus.visual-mode':
':': 'command-palette:toggle'
'alt-\'': 'editor:toggle-line-comments'
'alt-m': 'find-and-replace:select-next'
'ctrl-alt-m': 'find-and-replace:select-skip'
'alt-shift-m': 'find-and-replace:select-undo'
'ctrl-enter': 'jumpy:toggle'
's': 'vim-mode-plus:replace-with-register'
'alt-s': 'vim-mode-plus:surround'
# 'd s': 'vim-mode-plus:delete-surround'
# 'c s': 'vim-mode-plus:change-surround'
'g l': 'vim-mode-plus:lower-case'
'g u': 'vim-mode-plus:upper-case'
'g /': 'vim-mode-plus:search-current-word'
'g ?': 'vim-mode-plus:search-current-word-backwards'
'ctrl-f': 'find-and-replace:show'
'ctrl-shift-f': 'project-find:show'
# OPERATOR
'atom-text-editor.vim-mode-plus.operator-pending-mode':
'alt-p': 'vim-mode-plus:a-paragraph'
'l': 'vim-mode-plus:move-to-last-character-of-line'
'h': 'vim-mode-plus:move-to-first-character-of-line'
'w': 'vim-mode-plus:move-to-next-subword'
'e': 'vim-mode-plus:move-to-end-of-word'
'space': 'vim-mode-plus:move-to-end-of-whole-word'
'alt-space': 'vim-mode-plus:move-to-previous-whole-word'
'i space': 'vim-mode-plus:inner-whole-word'
'\'': 'vim-mode-plus:inner-single-quote'
'"': 'vim-mode-plus:inner-double-quote'
# VISUAL + OPERATOR
'atom-text-editor.vim-mode-plus.operator-pending-mode, atom-text-editor.vim-mode-plus.visual-mode':
'alt-i': 'vim-mode-plus:inner-any-pair'
'i b': 'vim-mode-plus:inner-parenthesis-allow-forwarding'
'a b': 'vim-mode-plus:a-parenthesis-allow-forwarding'
'i k': 'vim-mode-plus:inner-curly-bracket-allow-forwarding'
'a k': 'vim-mode-plus:a-curly-bracket-allow-forwarding'
'i r': 'vim-mode-plus:inner-square-bracket-allow-forwarding'
'a r': 'vim-mode-plus:a-curly-bracket-allow-forwarding'
'i a': 'vim-mode-plus:inner-arguments'
'a a': 'vim-mode-plus:a-arguments'
'i d': 'vim-mode-plus:inner-double-quote'
'a d': 'vim-mode-plus:a-double-quote'
'i l': 'custom:r-value'
'i h': 'custom:l-value'
'a c': 'vim-mode-plus:a-comment'
# INSERT and [mini]
'atom-text-editor[mini], atom-text-editor.vim-mode-plus.insert-mode':
'ctrl-u': 'editor:delete-to-beginning-of-line'
'ctrl-k': 'editor:delete-to-end-of-line'
'ctrl-a': 'editor:move-to-beginning-of-line'
'ctrl-e': 'editor:move-to-end-of-line'
'ctrl-f': 'core:move-right'
'ctrl-b': 'core:move-left'
'alt-f': 'editor:move-to-end-of-word'
'alt-b': 'editor:move-to-beginning-of-word'
'alt-d': 'editor:delete-to-end-of-word'
'ctrl-w': 'editor:delete-to-beginning-of-word'
'ctrl-h': 'core:backspace'
'alt-p': 'core:paste'
# Termrk terminal
'.termrk':
'ctrl-l': 'native!'
# Advanced Open File
'.advanced-open-file atom-text-editor':
'tab': 'advanced-open-file:autocomplete'
'alt-u': 'advanced-open-file:move-cursor-top'
'alt-d': 'advanced-open-file:move-cursor-bottom'
'alt-k': 'advanced-open-file:move-cursor-up'
'alt-j': 'advanced-open-file:move-cursor-down'
'ctrl-d': 'advanced-open-file:delete-path-component'
[
{
"name": "Termrk",
"version": "1.0.1"
},
{
"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": "ask-stack",
"version": "2.2.0"
},
{
"name": "atom-code-syntax",
"version": "0.3.1",
"theme": "syntax"
},
{
"name": "atom-ctags",
"version": "5.1.2"
},
{
"name": "atom-dark-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.2",
"theme": "ui"
},
{
"name": "atom-howdoi",
"version": "1.0.0"
},
{
"name": "atom-ide-debugger-node",
"version": "0.7.3"
},
{
"name": "atom-ide-ui",
"version": "0.13.0"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.2",
"theme": "ui"
},
{
"name": "atom-visual-studio-code-light-ui",
"version": "1.1.11",
"theme": "ui"
},
{
"name": "atom-visual-studio-code-ui",
"version": "1.3.4",
"theme": "ui"
},
{
"name": "auto-update-plus",
"version": "0.5.8"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.7"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-html",
"version": "0.8.4"
},
{
"name": "autocomplete-paths",
"version": "2.12.2"
},
{
"name": "autocomplete-plus",
"version": "2.40.6"
},
{
"name": "autocomplete-snippets",
"version": "1.12.0"
},
{
"name": "autoflow",
"version": "0.29.4"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "autosave-onchange",
"version": "1.5.1"
},
{
"name": "background-tips",
"version": "0.28.0"
},
{
"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.45.1"
},
{
"name": "bracket-matcher",
"version": "0.89.2"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "code-dark-syntax",
"version": "0.5.1",
"theme": "syntax"
},
{
"name": "code-dark-ui",
"version": "0.7.1",
"theme": "ui"
},
{
"name": "color-picker",
"version": "2.3.0"
},
{
"name": "command-palette",
"version": "0.43.5"
},
{
"name": "cursor-history",
"version": "0.13.1"
},
{
"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": "encoding-selector",
"version": "0.23.9"
},
{
"name": "exception-reporting",
"version": "0.43.1"
},
{
"name": "find-and-replace",
"version": "0.215.12"
},
{
"name": "fuzzy-finder",
"version": "1.8.2"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "git-plus",
"version": "8.0.0"
},
{
"name": "github-atom-light-syntax",
"version": "0.5.0",
"theme": "syntax"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "ide-typescript",
"version": "0.7.6"
},
{
"name": "image-view",
"version": "0.62.4"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "jumpy",
"version": "4.2.0"
},
{
"name": "keybinding-resolver",
"version": "0.38.1"
},
{
"name": "language-c",
"version": "0.59.10"
},
{
"name": "language-clojure",
"version": "0.22.7"
},
{
"name": "language-coffee-script",
"version": "0.49.3"
},
{
"name": "language-csharp",
"version": "1.0.4"
},
{
"name": "language-css",
"version": "0.42.11"
},
{
"name": "language-gfm",
"version": "0.90.5"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.45.4"
},
{
"name": "language-html",
"version": "0.50.1"
},
{
"name": "language-hyperlink",
"version": "0.16.3"
},
{
"name": "language-java",
"version": "0.30.0"
},
{
"name": "language-javascript",
"version": "0.128.8"
},
{
"name": "language-javascript-jsx",
"version": "0.3.7"
},
{
"name": "language-json",
"version": "0.19.2"
},
{
"name": "language-less",
"version": "0.34.2"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"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.0"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.50.1"
},
{
"name": "language-ruby",
"version": "0.71.4"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-sass",
"version": "0.62.0"
},
{
"name": "language-shellscript",
"version": "0.26.6"
},
{
"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.18.2"
},
{
"name": "language-typescript",
"version": "0.3.4"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.32.0"
},
{
"name": "line-ending-selector",
"version": "0.7.7"
},
{
"name": "link",
"version": "0.31.4"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-eslint",
"version": "8.4.1"
},
{
"name": "linter-ui-default",
"version": "1.7.1"
},
{
"name": "markdown-preview",
"version": "0.159.20"
},
{
"name": "metrics",
"version": "1.2.8"
},
{
"name": "notifications",
"version": "0.70.5"
},
{
"name": "octocat-syntax",
"version": "2.2.2",
"theme": "syntax"
},
{
"name": "one-dark-syntax",
"version": "1.8.3",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.12.3",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.3",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.12.3",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "pigments",
"version": "0.40.2"
},
{
"name": "project-manager",
"version": "3.3.6"
},
{
"name": "settings-view",
"version": "0.255.0"
},
{
"name": "snippets",
"version": "1.3.3"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.5",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.5",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.73.5"
},
{
"name": "status-bar",
"version": "1.8.15"
},
{
"name": "styleguide",
"version": "0.49.11"
},
{
"name": "symbols-view",
"version": "0.118.2"
},
{
"name": "sync-settings",
"version": "0.8.6"
},
{
"name": "tabs",
"version": "0.109.2"
},
{
"name": "theme-realgithub",
"version": "1.0.8",
"theme": "syntax"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "tree-view",
"version": "0.222.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "vim-mode-plus",
"version": "1.34.0"
},
{
"name": "vim-mode-plus-exchange",
"version": "0.4.0"
},
{
"name": "vim-mode-plus-keymaps-for-surround",
"version": "0.2.1"
},
{
"name": "vim-mode-plus-keymaps-for-tree-view",
"version": "0.0.1"
},
{
"name": "vim-mode-plus-macros",
"version": "0.1.2"
},
{
"name": "welcome",
"version": "0.36.6"
},
{
"name": "whitespace",
"version": "0.37.6"
},
{
"name": "wrap-guide",
"version": "0.40.3"
},
{
"name": "xterm",
"version": "1.2.1"
}
]
{
"Termrk": {
"defaultHeight": 264,
"fontFamily": "SauceCodePro Nerd Font Mono"
},
"advanced-open-file": {
"createDirectories": true
},
"atom-ctags": {
"GotoSymbolKey": [
"ctrl"
],
"autoBuildTagsWhenActive": true,
"cmdArgs": "--exclude=node_modules",
"disableComplete": true
},
"atom-ide-ui": {
"atom-ide-datatip": {}
},
"autocomplete-paths": {
"enableHtmlSupport": true
},
"autosave-onchange": {
"delay": 1000
},
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"symbols-view",
"linter",
"xterm"
],
"packagesWithKeymapsDisabled": [
"line-jumper",
"github",
"vim-mode-plus-keymaps-for-surround",
"xterm",
"advanced-open-file"
],
"telemetryConsent": "limited",
"themes": [
"one-light-ui",
"octocat-syntax"
],
"warnOnLargeFileLimit": 10
},
"cursor-history": {
"flashOnLand": false,
"rowDeltaToRemember": 6
},
"docblockr": {
"c_style_block_comments": true
},
"editor": {
"fontFamily": "Liberation Mono, \"FantasqueSansMono-Regular.ttf+Powerline+Awesome\", Menlo, Consolas, DejaVu Sans Mono, monospac",
"fontSize": 12,
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true,
"tabType": "soft"
},
"exception-reporting": {
"userId": "33d92e42-eb0d-473b-84f0-bc0d00db9d5a"
},
"ide-typescript": {},
"jumpy": {},
"line-jumper": {
"numberOfLines": 5
},
"linter-eslint": {
"globalNodePath": "/home/rgregoir/.cache/npm-global",
"useGlobalEslint": true
},
"linter-ui-default": {
"panelHeight": 300
},
"one-dark-ui": {
"stickyHeaders": true
},
"sync-settings": {},
"terminal-tab": {
"fontFamily": "SauceCodePro Nerd Font Mono",
"matchTheme": false
},
"vim-mode-plus": {
"blackholeRegisteredOperators": [
"delete-right"
],
"charactersToAddSpaceOnSurround": [
"}",
"}",
"]",
">"
],
"defaultScrollRowsOnMiniScroll": 15,
"findAcrossLines": true,
"flashOnOperateBlacklist": [
"Indent",
"Outdent"
],
"flashOnSearch": false,
"keymapPToPutWithAutoIndent": true,
"keymapSemicolonToInnerAnyPairInOperatorPendingMode": true,
"keymapYToYankToLastCharacterOfLine": true,
"numberRegex": "(?:\\B-)?[0-9]+",
"replaceByDiffOnSurround": true,
"sequentialPaste": true,
"sequentialPasteMaxHistory": 15,
"smoothScrollOnHalfScrollMotion": true,
"smoothScrollOnHalfScrollMotionDuration": 50,
"smoothScrollOnMiniScroll": true,
"smoothScrollOnMiniScrollDuration": 50,
"smoothScrollOnRedrawCursorLine": true,
"smoothScrollOnRedrawCursorLineDuration": 50,
"useSmartcaseForFind": true,
"useSmartcaseForSearch": true,
"wrapLeftRightMotion": true
},
"welcome": {
"showOnStartup": false
},
"xterm": {
"fontFamily": "SauceCodePro Nerd Font Mono"
}
}
# 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
/*
* 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
*/
/*
* Editor
*/
atom-text-editor, atom-text-editor[mini] {
.cursor {
border-left-width: 1px;
}
}
/*
* Syntax
*/
.syntax--comment {
font-style: normal;
}
.theme-octocat-syntax {
atom-text-editor {
.line.cursor-line {
background-color: rgba(0, 0, 0, 0.02);
}
.indent-guide, .invisible-character {
color: rgba(0, 0, 0, 0.1);
}
.vim-mode-plus-highlight-search .region {
border-color: rgba(136, 132, 9, 0.27);
background-color: rgba(255, 247, 0, 0.27);
}
.vim-mode-plus-flash-search .region {
border-color: rgba(136, 132, 9, 0.27);
background-color: rgba(255, 247, 0, 0.27);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment