Skip to content

Instantly share code, notes, and snippets.

@utkarshgupta137
Last active December 10, 2022 11:26
Show Gist options
  • Save utkarshgupta137/6cbf1ba1ce138ccb493dc57d634a7700 to your computer and use it in GitHub Desktop.
Save utkarshgupta137/6cbf1ba1ce138ccb493dc57d634a7700 to your computer and use it in GitHub Desktop.
Atom Settings Backup by https://atom.io/packages/sync-settings
atom.commands.add("atom-workspace", "custom:toggle-docks", () => {
const leftDock = atom.workspace.getLeftDock();
const rightDock = atom.workspace.getRightDock();
if (leftDock.isVisible() || rightDock.isVisible()) {
leftDock.hide();
rightDock.hide();
} else {
leftDock.show();
rightDock.show();
}
});
// atom.workspace.observeTextEditors((editor) => {
// const path = editor.getPath();
//
// if (path.endsWith(".rs")) {
// editor.buffer.onWillSave(() => {
// return atom.commands.dispatch(
// editor.component.virtualNode.domNode,
// "code-format:format-code"
// );
// });
// }
// });
atom.notifications.onDidAddNotification((notification) => {
if (notification.getMessage().startsWith("overly long loop turn")) {
notification.dismiss();
console.error(notification);
}
});
# 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
'atom-text-editor:not([mini])':
'cmd-d': 'editor:delete-line'
'cmd-;': 'go-to-line:toggle'
'ctrl-s': 'sort-lines:natural'
'ctrl-cmd-s': 'sort-lines:unique'
'cmd-m': 'bracket-matcher:go-to-matching-bracket'
'cmd-shift-m': 'bracket-matcher:select-inside-brackets'
'cmd-e': 'find-and-replace:select-next'
'cmd-r': 'find-and-replace:select-skip'
'cmd-shift-f': 'project-find:show-in-current-directory'
'alt-tab': 'atom-git-diff-plus:move-to-next-diff'
'shift-alt-tab': 'atom-git-diff-plus:move-to-previous-diff'
'ctrl-alt-j': 'pretty-json:jsonify-literal-and-sort-and-prettify'
'ctrl-alt-shift-j': 'pretty-json:jsonify-literal-and-prettify'
'atom-workspace':
'ctrl-cmd-t': 'custom:toggle-docks'
{
"atom-git-diff-plus": {
"version": "1.0.0"
},
"atom-ide-base": {
"version": "3.4.0"
},
"atom-ide-code-format": {
"version": "1.0.3"
},
"atom-ide-datatip": {
"version": "0.25.0"
},
"atom-ide-definitions": {
"version": "0.4.2"
},
"atom-ide-hyperclick": {
"version": "1.0.11"
},
"atom-ide-markdown-service": {
"version": "2.1.0"
},
"atom-ide-outline": {
"version": "3.2.0"
},
"atom-ide-signature-help": {
"version": "0.16.0"
},
"autocomplete-python": {
"version": "1.17.1"
},
"busy-signal": {
"version": "2.0.1"
},
"file-icons": {
"version": "2.1.47"
},
"find-scroll-marker": {
"version": "0.1.3"
},
"formatters-python": {
"version": "1.2.1"
},
"highlight-selected": {
"version": "0.17.0"
},
"ide-python": {
"version": "1.9.7"
},
"ide-rust": {
"version": "1.1.2"
},
"intentions": {
"version": "2.1.1"
},
"language-docker": {
"version": "1.1.8"
},
"language-scala": {
"version": "1.1.10"
},
"linter": {
"version": "3.4.0"
},
"linter-docker": {
"version": "0.3.2"
},
"linter-flake8": {
"version": "2.4.0"
},
"linter-mypy": {
"version": "2.6.11"
},
"linter-ui-default": {
"version": "3.4.1"
},
"minimap": {
"version": "4.40.1"
},
"minimap-find-and-replace": {
"version": "5.0.9"
},
"minimap-git-diff": {
"version": "4.3.6"
},
"minimap-highlight-selected": {
"version": "4.6.6"
},
"minimap-linter": {
"version": "2.2.2"
},
"minimap-pigments": {
"version": "0.2.2"
},
"minimap-split-diff": {
"version": "0.3.7"
},
"multi-cursor": {
"version": "3.0.0"
},
"pigments": {
"version": "0.40.6"
},
"prettier-atom": {
"version": "0.60.1"
},
"pretty-json": {
"version": "2.1.2"
},
"scroll-marker": {
"version": "0.3.5"
},
"sort-lines": {
"version": "0.19.0"
},
"split-diff": {
"version": "1.6.1"
},
"sync-settings": {
"version": "5.2.16"
}
}
{
"*": {
"atom-ide-datatip": {
"hoverTime": 300
},
"autocomplete-plus": {
"backspaceTriggersAutocomplete": true
},
"autocomplete-python": {
"outputProviderErrors": true,
"pythonPaths": "/opt/homebrew/Caskroom/mambaforge/base/envs/atom/bin/python",
"showTooltips": true,
"useKite": false,
"useSnippets": "required"
},
"bracket-matcher": {
"highlightMatchingLineNumber": true
},
"command-palette": {
"preserveLastSearch": true
},
"core": {
"closeEmptyWindows": false,
"disabledPackages": [
"atom-ide-outline",
"git-diff",
"language-docker",
"language-scala",
"linter-docker",
"minimap-split-diff",
"split-diff",
"ide-python"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
"desktop.ini",
"node_modules"
],
"openEmptyEditorOnStart": false,
"telemetryConsent": "limited",
"uriHandlerRegistration": "always"
},
"editor": {
"preferredLineLength": 88,
"showIndentGuide": true,
"tabLength": 4,
"tabType": "soft"
},
"exception-reporting": {
"userId": "utkarshgupta137"
},
"file-icons": {
"onChanges": true
},
"find-and-replace": {
"autocompleteSearches": true,
"enablePCRE2": true,
"focusEditorAfterSearch": true,
"projectSearchResultsPaneSplitDirection": "right",
"useRipgrep": true
},
"formatters-python": {
"black": {
"global": {
"binPath": "/opt/homebrew/Caskroom/mambaforge/base/envs/atom/bin/black",
"cmdArgs": [
"-C"
]
}
},
"formatOrder": [
"isort",
"black"
],
"isort": {
"global": {
"binPath": "/opt/homebrew/Caskroom/mambaforge/base/envs/atom/bin/isort",
"cmdArgs": [
"--profile black --ca"
]
}
},
"onSave": {
"enabled": true,
"saveOrder": [
"isort",
"black"
]
}
},
"fuzzy-finder": {
"prefillFromSelection": true,
"preserveLastSearch": true
},
"github": {
"automaticCommitMessageWrapping": false,
"remoteFetchProtocol": "ssh",
"showDiffIconGutter": true,
"viewChangesForCurrentFileDiffPaneSplitDirection": "right"
},
"highlight-selected": {
"hideHighlightOnSelectedWord": true,
"onlyHighlightWholeWords": false,
"showResultsOnScrollBar": true
},
"ide-python": {
"pylsPlugins": {
"autopep8": {
"enabled": false
},
"flake8": {},
"jedi_definition": {
"follow_builtin_imports": true,
"follow_imports": true
},
"mccabe": {
"enabled": false
},
"preload": {
"modules": [
"airflow"
]
},
"pycodestyle": {
"enabled": false
},
"pydocstyle": {
"convention": "pep257",
"enabled": true
},
"pyflakes": {
"enabled": false
},
"pyls_mypy": {
"enabled": false
},
"rope_completion": {
"enabled": true
},
"yapf": {}
},
"python": "/opt/homebrew/Caskroom/mambaforge/base/envs/atom/bin/python"
},
"ide-rust": {
"languageServerCommand": "/Users/utkarsh/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rust-analyzer"
},
"line-ending-selector": {
"defaultLineEnding": "LF"
},
"linter-flake8": {
"executablePath": "/opt/homebrew/Caskroom/mambaforge/base/envs/atom/bin/flake8",
"flakeErrors": true,
"ignoreErrorCodes": [
"E501"
],
"maxLineLength": 88,
"pycodestyleErrorsToWarnings": true
},
"linter-mypy": {
"disallowAnyExpr": false,
"executablePath": "/opt/homebrew/Caskroom/mambaforge/base/envs/atom/bin/python",
"followImports": "normal"
},
"linter-ui-default": {
"hidePanelWhenEmpty": false,
"panelHeight": 160,
"showPanel": true,
"statusBarClickBehavior": "Toggle Status Bar Scope",
"statusBarRepresents": "Current File"
},
"minimap": {
"ignoreWhitespacesInTokens": true,
"minimapScrollIndicator": false,
"plugins": {
"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,
"split-diff": true,
"split-diffDecorationsZIndex": 0
}
},
"one-dark-ui": {
"stickyHeaders": true
},
"pigments": {
"autocompleteSuggestionsFromValue": true
},
"prettier-atom": {
"formatOnSaveOptions": {
"respectEslintignore": false,
"showInStatusBar": true
}
},
"sync-settings": {
"autoCheckForUpdatedBackup": "no",
"hiddenSettings": {},
"installLatestVersion": true,
"onlySyncCommunityPackages": true,
"quietUpdateCheck": true,
"removeObsoletePackages": true,
"removeUnfamiliarFiles": true
},
"tabs": {
"enableVcsColoring": true
},
"tree-view": {
"alwaysOpenExisting": true,
"autoReveal": true,
"focusOnReveal": false
},
"welcome": {
"showOnStartup": false,
"showSunsettingOnStartup": false
},
"whitespace": {
"ignoreWhitespaceOnCurrentLine": 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
/*
* 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)
*/
// style the background color of the tree view
.tree-view {
// background-color: whitesmoke;
}
// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor {
// color: white;
// background-color: hsl(180, 24%, 12%);
}
// style UI elements inside atom-text-editor
atom-text-editor .cursor {
// border-color: red;
}
atom-text-editor .hard-tab {
background-color: #d32f2f;
}
atom-text-editor .trailing-whitespace {
background-color: #d32f2f;
}
.find-marker-layer .scroll-marker {
background-color: #00ffff !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment