Skip to content

Instantly share code, notes, and snippets.

@akonwi
Last active December 19, 2020 21:11
Show Gist options
  • Save akonwi/35944312deb4bd28f1e962927506c719 to your computer and use it in GitHub Desktop.
Save akonwi/35944312deb4bd28f1e962927506c719 to your computer and use it in GitHub Desktop.
Atom Settings Backup by https://atom.io/packages/sync-settings
atom.packages.onDidActivateInitialPackages (initialPackages) ->
atom.commands.add 'atom-text-editor', 'akonwi:rename-file', (e) ->
atom.commands.dispatch e.target, 'tree-view:rename'
if gitPlus = atom.packages.getActivePackage('git-plus')?.mainModule.provideService()
gitPlus.registerCommand 'atom-text-editor', 'akonwi:update-last-commit', ->
gitPlus.getRepo() # If there are multiple repos in the project, you will be prompted to select which to use
.then (repo) -> gitPlus.run repo, 'commit --all --amend --no-edit'
gitPlus.registerCommand 'atom-text-editor', 'akonwi:unstage-last-commit', ->
gitPlus.getRepo() # If there are multiple repos in the project, you will be prompted to select which to use
.then (repo) -> gitPlus.run repo, 'reset head~'
gitPlus.registerCommand 'atom-text-editor', 'akonwi:use-the-force', ->
gitPlus.getRepo() # If there are multiple repos in the project, you will be prompted to select which to use
.then (repo) -> gitPlus.run repo, 'push --force-with-lease'
gitPlus.registerCommand 'atom-text-editor', 'akonwi:rebase-continue', ->
gitPlus.getRepo() # If there are multiple repos in the project, you will be prompted to select which to use
.then (repo) -> gitPlus.run repo, 'rebase --continue'
gitPlus.registerCommand 'atom-text-editor', 'akonwi:rebase-abort', ->
gitPlus.getRepo() # If there are multiple repos in the project, you will be prompted to select which to use
.then (repo) -> gitPlus.run repo, 'rebase --abort'
gitPlus.registerCommand 'atom-text-editor', 'akonwi:checkout-to-previous', ->
gitPlus.getRepo()
.then (repo) -> gitPlus.run repo, 'checkout head~'
'atom-workspace':
'cmd-b': 'atom-ide-go-to-definition:go-to-definition'
'cmd-t': 'fuzzy-finder:toggle-file-finder'
'cmd-p': 'recent-files-fuzzy-finder:toggle-finder'
'cmd-shift-t': 'unset!'
# 'atom-text-editor:not([data-grammar~="rust"]), atom-dock':
# '; r e l': 'window:reload'
# '; space': 'core:cancel'
# '; g': 'git-plus:menu'
# '; shift-t': 'window:run-package-specs'
# '; /': 'editor:toggle-line-comments'
# '; t': 'tree-view:toggle',
# '; c c': 'codestream:keymap-create-comment'
# '; c i': 'codestream:keymap-create-issue'
# intentions
'atom-text-editor.intentions-list:not([mini])':
'enter': 'intentions:confirm'
'; j': 'core:move-down'
'; k': 'core:move-up'
# vim
'atom-text-editor.vim-mode-plus.normal-mode':
':': 'command-palette:toggle'
'; d r': 'window:toggle-right-dock'
'; d l': 'window:toggle-left-dock'
'; d b': 'window:toggle-bottom-dock'
'; b t': 'bookmarks:toggle-bookmark'
'; b n': 'bookmarks:jump-to-next-bookmark'
'atom-workspace:not(.editor)':
'cmd-enter': 'unset'
# '.vim-mode-plus:not([mini])':
# exit
# '; space': 'vim-mode-plus:activate-normal-mode'
# autocomplete-plus
'atom-text-editor:not(.mini).autocomplete-active':
'; j': 'core:move-down'
'; k': 'core:move-up'
{
"about": {
"version": "1.9.1"
},
"advanced-open-file": {
"version": "0.16.8"
},
"apm-publish": {
"version": "0.3.2"
},
"archive-view": {
"version": "0.65.2"
},
"atom-beautify": {
"version": "0.33.4"
},
"atom-browser": {
"version": "1.10.0"
},
"atom-dark-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-dark-ui": {
"version": "0.53.3",
"theme": "ui"
},
"atom-ide-datatip": {
"version": "0.20.4"
},
"atom-ide-definitions": {
"version": "0.4.0"
},
"atom-ide-hyperclick": {
"version": "1.0.9"
},
"atom-ide-markdown-service": {
"version": "1.6.0"
},
"atom-ide-signature-help": {
"version": "0.13.1"
},
"atom-ide-ui": {
"version": "0.13.0"
},
"atom-light-syntax": {
"version": "0.29.1",
"theme": "syntax"
},
"atom-light-ui": {
"version": "0.46.3",
"theme": "ui"
},
"atom-material-ui": {
"version": "2.1.3",
"theme": "ui"
},
"atom-typescript": {
"version": "14.1.2"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-css": {
"version": "0.17.5"
},
"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"
},
"better-git-blame": {
"version": "0.5.0"
},
"bookmarks": {
"version": "0.46.0"
},
"bracket-matcher": {
"version": "0.91.2"
},
"browser-plus": {
"version": "0.0.98"
},
"busy-signal": {
"version": "2.0.1"
},
"city-lights-syntax": {
"version": "1.1.8",
"theme": "syntax"
},
"city-lights-ui": {
"version": "1.5.3",
"theme": "ui"
},
"codestream": {
"version": "10.2.0"
},
"command-palette": {
"version": "0.43.5"
},
"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.6"
},
"flex-tool-bar": {
"version": "2.2.3"
},
"fuzzy-finder": {
"version": "1.14.3"
},
"git-diff": {
"version": "1.3.9"
},
"git-menu": {
"version": "3.2.8"
},
"git-plus": {
"version": "8.7.1"
},
"github": {
"version": "0.35.0"
},
"go-to-line": {
"version": "0.33.0"
},
"grammar-selector": {
"version": "0.50.1"
},
"hyperclick": {
"version": "0.0.0"
},
"ide-json": {
"version": "0.2.1"
},
"ide-ruby": {
"version": "0.5.0"
},
"ide-rust": {
"version": "0.22.0-beta.3"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"intentions": {
"version": "1.1.5"
},
"keybinding-resolver": {
"version": "0.39.0"
},
"lame-sauce-syntax-light": {
"version": "1.0.0",
"theme": "syntax"
},
"language-babel": {
"version": "2.85.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-docker": {
"version": "1.1.8"
},
"language-gfm": {
"version": "0.90.8"
},
"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.32.0"
},
"language-javascript": {
"version": "0.134.1"
},
"language-json": {
"version": "1.0.5"
},
"language-kotlin": {
"version": "0.5.0"
},
"language-less": {
"version": "0.34.3"
},
"language-make": {
"version": "0.23.0"
},
"language-mjml": {
"version": "2.1.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.7"
},
"language-property-list": {
"version": "0.9.1"
},
"language-python": {
"version": "0.53.5"
},
"language-ruby": {
"version": "0.72.23"
},
"language-ruby-on-rails": {
"version": "0.25.3"
},
"language-rust": {
"version": "0.4.12"
},
"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.3"
},
"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.1.1"
},
"linter-eslint": {
"version": "8.5.5"
},
"linter-mjml": {
"version": "1.2.0"
},
"linter-tslint": {
"version": "1.10.43"
},
"markdown-preview": {
"version": "0.160.2"
},
"metrics": {
"version": "1.8.1"
},
"nord-atom-syntax": {
"version": "0.10.0",
"theme": "syntax"
},
"nord-atom-ui": {
"version": "0.12.0",
"theme": "ui"
},
"notifications": {
"version": "0.71.0"
},
"notifications-plus": {
"version": "2.0.13"
},
"one-black-syntax": {
"version": "1.14.0",
"theme": "syntax",
"apmInstallSource": {
"type": "git",
"source": "https://github.com/adimote/one-black-syntax",
"sha": "7ba7151c072b0e5cf341d0ffb1b63772b768d20f"
}
},
"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"
},
"prettier-atom": {
"version": "0.60.1"
},
"project-manager": {
"version": "3.3.8"
},
"recent-files-fuzzy-finder": {
"version": "1.0.0"
},
"relative-numbers": {
"version": "0.9.1"
},
"ruby-block": {
"version": "0.3.6"
},
"ruby-block-converter": {
"version": "4.1.1"
},
"seti-syntax": {
"version": "1.2.0",
"theme": "syntax"
},
"seti-ui": {
"version": "1.11.0",
"theme": "ui"
},
"settings-view": {
"version": "0.261.6"
},
"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"
},
"split-diff": {
"version": "1.6.1"
},
"status-bar": {
"version": "1.8.17"
},
"styleguide": {
"version": "0.49.12"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "5.1.0"
},
"tabs": {
"version": "0.110.0"
},
"timecop": {
"version": "0.36.2"
},
"timecop-2": {
"version": "0.3.3"
},
"tool-bar": {
"version": "1.4.2"
},
"tree-view": {
"version": "0.228.1"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"vim-mode-plus": {
"version": "1.36.4"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.7"
},
"wrap-guide": {
"version": "0.41.0"
},
"x-terminal": {
"version": "12.0.4"
}
}
{
"*": {
"advanced-open-file": {
"helmDirSwitch": true
},
"atom-beautify": {
"general": {
"_analyticsUserId": "ab8975a8-57e1-44e0-ac82-344cb1b0bb35"
}
},
"atom-browser": {
"autoPrefix": "https",
"defaultLocation": "right",
"initialUrl": "http://localhost:6006/",
"showBackground": true,
"showIcon": true
},
"atom-ide-datatip": {
"showDataTipOnMouseMove": true
},
"atom-ide-ui": {
"atom-ide-diagnostics-ui": {}
},
"atom-material-ui": {
"colors": {
"abaseColor": "#7e7e7e",
"predefinedColor": "Grey"
},
"tabs": {
"compactTabs": true
},
"ui": {
"panelContrast": true,
"panelShadows": true
}
},
"atom-package-deps": {
"ignored": [
"ide-rust",
"linter"
]
},
"atom-typescript": {
"allowJS": true,
"autocompletionSuggestionPriority": 1,
"jsSyntaxScopes": [
"source.flow",
"source.js",
"source.jsx",
"javascript"
],
"tooltipPosition": "top"
},
"autocomplete-plus": {
"backspaceTriggersAutocomplete": true,
"confirmCompletion": "tab always, enter when suggestion explicitly selected",
"similarSuggestionRemoval": "textOrSnippet"
},
"autosave": {
"enabled": true
},
"autoupdate-packages": {
"handling": "Update automatically and silently",
"lastUpdateTimestamp": 1544654045269
},
"better-git-blame": {
"displayAgeSection": false,
"searchInLayerEnabled": false,
"truncateGutterNames": false
},
"bracket-matcher": {
"highlightMatchingLineNumber": true
},
"core": {
"closeDeletedFileTabs": true,
"customFileTypes": {
"source.ts": []
},
"debugLSP": true,
"disabledPackages": [
"language-javascript",
"notifications",
"timecop",
"linter"
],
"fileSystemWatcher": "native",
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"desktop.ini",
"node_modules"
],
"openEmptyEditorOnStart": false,
"packagesWithKeymapsDisabled": [
"find-selection",
"fuzzy-finder",
"recent-files-fuzzy-finder"
],
"restorePreviousWindowsOnStart": "no",
"telemetryConsent": "limited",
"themes": [
"atom-material-ui",
"nord-atom-syntax"
],
"titleBar": "custom",
"uriHandlerRegistration": "always"
},
"easy-motion-redux": {
"replaceCharacters": "abcdefghijklmnopqrstuvwxyz"
},
"editor": {
"fontFamily": "Hasklig",
"fontSize": 16,
"preferredLineLength": 100,
"showIndentGuide": true
},
"exception-reporting": {
"userId": "72b05374-ea1c-4218-936a-e720da3e1fe9"
},
"flex-tool-bar": {},
"flow-ide": {},
"fuzzy-finder": {
"preserveLastSearch": true,
"scoringSystem": "fast",
"searchAllPanes": true,
"useRipGrep": true
},
"git-menu": {
"confirmationDialogs": {
"pull-all": false
}
},
"git-plus": {
"commits": {
"verboseCommits": true
},
"diffs": {
"useSplitDiff": true,
"wordDiff": true
},
"experimental": {
"autoFetch": 20,
"autoFetchNotify": true,
"customCommands": true,
"diffBranches": true,
"useSplitDiff": true
},
"general": {
"splitPane": "Up"
},
"remoteInteractions": {
"pullAutostash": true,
"pullBeforePush": true,
"pullRebase": true
}
},
"github": {
"remoteFetchProtocol": "ssh",
"showDiffIconGutter": true,
"viewChangesForCurrentFileDiffPaneSplitDirection": "right"
},
"ide-typescript": {
"ignoreFlow": false
},
"isotope-ui": {
"minimalMode": true
},
"language-babel": {
"autoIndentJSX": true
},
"linter": {
"lintOnChange": false
},
"linter-eslint": {
"autofix": {
"fixOnSave": true
},
"scopes": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"flow-javascript",
"source.ts"
]
},
"linter-terraform-syntax": {
"newVersion": true
},
"linter-tslint": {
"fixOnSave": true
},
"linter-ui-default": {
"alwaysTakeMinimumSpace": true,
"panelHeight": 362,
"showProviderName": true,
"statusBarClickBehavior": "Jump to next issue",
"statusBarRepresents": "Current File",
"tooltipFollows": "Mouse"
},
"minimap": {},
"nord-atom-syntax": {
"accessibility": {
"commentContrast": 20
}
},
"nord-atom-ui": {
"darkerFormFocusEffect": true
},
"notifications-plus": {
"showErrorsInDevMode": true
},
"one-dark-ui": {},
"one-light-ui": {},
"platformio-ide-terminal": {
"core": {
"mapTerminalsTo": "Folder",
"scrollback": 100
},
"toggles": {
"useDock": true
}
},
"prettier-atom": {
"formatOnSaveOptions": {
"enabled": true,
"isDisabledIfNoConfigFile": true,
"showInStatusBar": true
},
"prettierOptions": {
"semi": false
},
"scopes": {
"javascript": [
"javascript",
"flow-javascript",
"source.js",
"source.jsx",
"source.js.jsx",
"source.babel",
"source.js-semantic",
"text.html.basic",
"text.html.vue"
],
"typescript": [
"typescript",
"source.ts",
"source.tsx",
"source.ts.tsx"
]
},
"useEslint": true
},
"project-manager": {
"includeGitRepositories": true,
"savePathsRelativeToHome": true
},
"relative-numbers": {},
"seti-ui": {
"compactView": true
},
"spell-check": {},
"split-diff": {
"hideDocks": true,
"ignoreWhitespace": true,
"syncHorizontalScroll": true,
"turnOffSoftWrap": true
},
"sync-settings": {
"disallowedSettings": [
"codestream"
],
"extraFiles": [
"toolbar.cson"
],
"hiddenSettings": {},
"quietUpdateCheck": true,
"removeObsoletePackages": true,
"removeUnfamiliarFiles": true
},
"tabs": {
"displayMruTabList": false,
"enableVcsColoring": true
},
"termination": {
"style": {
"theme": "one-dark"
}
},
"terminus": {
"style": {
"theme": "one-dark"
},
"toggles": {
"useDock": true
}
},
"tool-bar": {
"fullWidth": false,
"iconSize": "16px",
"position": "Left",
"useTouchBar": false
},
"tree-view": {
"alwaysOpenExisting": true
},
"vim-mode": {
"useClipboardAsDefaultRegister": true,
"useSmartcaseForSearch": true
},
"vim-mode-plus": {
"findAcrossLines": true,
"highlightSearch": false,
"keymapUnderscoreToReplaceWithRegister": true,
"reuseFindForRepeatFind": true,
"statusBarModeStringStyle": "long",
"useSmartcaseForSearch": true
},
"welcome": {
"showOnStartup": false
},
"x-terminal": {
"spawnPtySettings": {
"projectCwd": true
}
},
"zentabs": {
"maximumOpenedTabs": 10,
"neverCloseUnsaved": true
}
},
".rust.source": {
"editor": {
"preferredLineLength": 99
}
},
".git-commit.text": {
"editor": {
"preferredLineLength": 72
}
}
}
# 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.ts,.source.flow':
'try-catch':
'prefix': 'try'
'body': """
try {
$1
} catch (error) {
$2
}"""
'.source.ruby':
'debugging':
'prefix': 'dbg'
'body': 'binding.pry'
/*
* 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)
*/
@import 'ui-variables';
* {
// font-family: 'Source Code Pro';
}
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
.line-number {
.relative {
color: @text-color;
&.current-line {
// for when simultaneously using absolute and relative line number gutters
// visibility: hidden;
}
}
// for when simultaneously using absolute and relative line number gutters
.absolute {
color: @text-color-warning !important;
}
}
atom-text-editor {
text-rendering: optimizeLegibility;
}
atom-workspace.theme-nord-atom-ui {
.status-bar button {
border-width: 0px !important;
}
hr.tool-bar-spacer {
width: 100% !important;
}
}
# This file is used by Flex Tool Bar to create buttons on your Tool Bar.
# For more information how to use this package and create your own buttons,
# read the documentation on https://atom.io/packages/flex-tool-bar
[
{
type: "button"
icon: "gear"
callback: "flex-tool-bar:edit-config-file"
tooltip: "Edit Tool Bar"
}
{
type: "button"
icon: "package"
callback: "settings-view:view-installed-packages"
}
{
type: 'button'
icon: 'sync'
callback: 'window:reload'
tooltip: "Reload window"
}
{
type: "spacer"
}
{
type: "button"
icon: "checklist"
callback: "github:toggle-git-tab"
}
{
type: "button"
icon: "mark-github"
callback: "github:toggle-github-tab"
}
{
type: "button"
text: "git+"
callback: "git-plus:toggle-output-view"
}
{
type: "spacer"
}
{
type: 'button'
icon: 'folder-open'
iconset: 'fa'
callback: 'tree-view:toggle'
tooltip: 'Toggle Tree View'
}
{
type: 'button'
icon: 'folder-plus'
iconset: 'fa'
callback: "application:add-project-folder"
tooltip: 'Add project folder'
}
{
type: "spacer"
}
{
type: 'button'
icon: 'sign-out'
callback: 'codestream:sign-out'
show: {
package: 'codestream'
}
tooltip: "Sign out of CodeStream"
}
{
type: 'button'
callback: 'codestream:open-webview-devtools'
icon: 'tools'
iconset: 'fa'
show: {
package: 'codestream'
}
tooltip: "Toggle Webview Dev Tools"
}
]
# ~/.atom/toolbar.cson (not found)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment