Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brra/19c65c8514cba0498773e8b0e0a26847 to your computer and use it in GitHub Desktop.
Save brra/19c65c8514cba0498773e8b0e0a26847 to your computer and use it in GitHub Desktop.
old
# /packages/atom-beautify/src/beautifiers/beautysh.coffe (not found)
"use strict"
Beautifier = require('./beautifier')
module.exports = class BashBeautify extends Beautifier
name: "beautysh"
link: "https://github.com/bemeurer/beautysh"
executables: [
{
name: "beautysh"
cmd: "beautysh"
homepage: "https://github.com/bemeurer/beautysh"
installation: "https://github.com/bemeurer/beautysh#installation"
version: {
# Does not display version
args: ['--help'],
parse: (text) -> text.indexOf("usage: beautysh") isnt -1 and "0.0.0"
}
docker: {
image: "unibeautify/beautysh"
}
}
]
options: {
Bash:
indent_size: true
indent_with_tabs: true
}
beautify: (text, language, options) ->
beautysh = @exe("beautysh")
file = @tempFile("input", text)
tabs = options.indent_with_tabs
if tabs is true
beautysh.run([ '-t', file ])
.then(=> @readFile file)
else
beautysh.run([ '-i', options.indent_size, file ])
.then(=> @readFile file)
# beautysh.coffe (not found)
# 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/
#/Users/a1/.atom/styles.less
# 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
# General keybindings
'atom-workspace':
# The following keybindings are remaped to 'native' in ex & vim insert mode
# (1)
', ,': 'command-palette:toggle'
', f': 'fuzzy-finder:toggle-file-finder'
', b': 'fuzzy-finder:toggle-buffer-finder'
', l': 'go-to-line:toggle'
', g': 'git-plus:menu'
', N': 'tree-view:tobggle'
', n': 'tree-view:toggle-focus'
# Plugins
'alt-c': 'color-picker:open'
'alt-p': 'clipboard-plus:toggle'
'ctrl-shift-n': 'application:new-file'
'f8': 'source-preview:toggle'
'f9': 'script:run'
'ctrl-f9': 'script:close-view'
', e': 'linter:togglePanel'
# #################
# Plugins
# #################
# Emmet
'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'
# Various & general keybindings for text editing
'g c': 'editor:toggle-line-comments'
'shift-alt-k': 'editor:move-line-up'
'shift-alt-j': 'editor:move-line-down'
'ctrl-f': 'find-and-replace:show'
'ctrl-shift-f': 'project-find:show'
# Normal behavior for some mapped keybindings (1)
',': 'native!'
'!': 'native!'
'space': 'native!'
{
"about": {
"version": "1.9.1"
},
"advanced-open-file": {
"version": "0.16.8"
},
"archive-view": {
"version": "0.65.2"
},
"atom-beautify": {
"version": "0.33.4"
},
"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"
},
"atom-monokai": {
"version": "0.10.9",
"theme": "syntax"
},
"auto-detect-indentation": {
"version": "1.3.0"
},
"auto-encoding": {
"version": "0.7.2"
},
"auto-update-packages": {
"version": "1.0.1"
},
"autocomplete-atom-api": {
"version": "0.10.7"
},
"autocomplete-bash-builtins": {
"version": "0.3.5"
},
"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"
},
"bookmarks": {
"version": "0.46.0"
},
"bracket-matcher": {
"version": "0.91.2"
},
"busy-signal": {
"version": "2.0.1"
},
"command-palette": {
"version": "0.43.5"
},
"compare-files": {
"version": "0.8.1"
},
"dalek": {
"version": "0.2.2"
},
"deprecation-cop": {
"version": "0.56.9"
},
"dev-live-reload": {
"version": "0.48.1"
},
"docker": {
"version": "0.8.0"
},
"encoding-selector": {
"version": "0.23.9"
},
"exception-reporting": {
"version": "0.43.1"
},
"file-icons": {
"version": "2.1.42"
},
"find-and-replace": {
"version": "0.219.3"
},
"flex-tool-bar": {
"version": "2.2.0"
},
"format-shell": {
"version": "2.2.1"
},
"ftp-remote-edit": {
"version": "0.18.0"
},
"fuzzy-finder": {
"version": "1.14.2"
},
"git-diff": {
"version": "1.3.9"
},
"git-plus": {
"version": "8.7.1"
},
"github": {
"version": "0.34.2"
},
"go-to-line": {
"version": "0.33.0"
},
"grammar-selector": {
"version": "0.50.1"
},
"highlight-selected": {
"version": "0.17.0"
},
"ide-docker": {
"version": "0.1.0"
},
"ide-yml": {
"version": "0.7.8-0"
},
"image-view": {
"version": "0.64.0"
},
"incompatible-packages": {
"version": "0.27.3"
},
"intentions": {
"version": "1.1.5"
},
"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-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.31.5"
},
"language-javascript": {
"version": "0.134.1"
},
"language-json": {
"version": "1.0.5"
},
"language-less": {
"version": "0.34.3"
},
"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.5"
},
"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.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": "2.3.1"
},
"linter-anylint": {
"version": "0.0.1"
},
"linter-docker": {
"version": "0.3.2"
},
"linter-spell-shellscript": {
"version": "0.2.0"
},
"linter-ui-default": {
"version": "1.8.1"
},
"markdown-preview": {
"version": "0.160.2"
},
"metrics": {
"version": "1.8.1"
},
"minimap": {
"version": "4.29.9"
},
"monokai-seti": {
"version": "0.9.0",
"theme": "syntax"
},
"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-in-browsers": {
"version": "0.0.30"
},
"open-on-github": {
"version": "1.3.2"
},
"package-generator": {
"version": "1.3.0"
},
"script": {
"version": "3.26.0"
},
"seti-ui": {
"version": "1.11.0",
"theme": "ui"
},
"settings-view": {
"version": "0.261.4"
},
"simple-drag-drop-text": {
"version": "0.5.0"
},
"snippets": {
"version": "1.5.1"
},
"solarized-dark-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"solarized-light-syntax": {
"version": "1.3.0",
"theme": "syntax"
},
"sort-lines": {
"version": "0.19.0"
},
"sorter": {
"version": "1.3.0"
},
"spell-check": {
"version": "0.76.1"
},
"status-bar": {
"version": "1.8.17"
},
"styleguide": {
"version": "0.49.12"
},
"symbols-tree-view": {
"version": "0.14.0"
},
"symbols-view": {
"version": "0.118.4"
},
"sync-settings": {
"version": "4.3.9"
},
"tabs": {
"version": "0.110.0"
},
"timecop": {
"version": "0.36.2"
},
"tool-bar": {
"version": "1.3.0"
},
"tree-view": {
"version": "0.228.0"
},
"update-package-dependencies": {
"version": "0.13.1"
},
"welcome": {
"version": "0.36.9"
},
"whitespace": {
"version": "0.37.7"
},
"wrap-guide": {
"version": "0.41.0"
}
}
# packages/atom-beautify/src/beautifiers/beautysh.coffe (not found)
{
"*": {
"activate-power-mode": {
"plugins": {
"playAudio": true,
"screenShake": true
}
},
"atom-autocomplete-php": {
"binComposer": "composer"
},
"atom-beautify": {
"bash": {
"beautify_on_save": true
},
"executables": {
"autopep8": {},
"beautysh": {}
},
"general": {
"beautifyEntireFileOnSave": false
}
},
"autocomplete-paths": {
"maxFileCount": 1500
},
"autosave": {
"enabled": true
},
"command-palette": {
"preserveLastSearch": true
},
"core": {
"colorProfile": "srgb",
"disabledPackages": [
"autocomplete-html",
"language-javascript",
"language-java",
"language-csharp",
"language-css",
"language-mustache",
"language-sass",
"language-toml",
"welcome"
],
"openEmptyEditorOnStart": false,
"telemetryConsent": "no",
"themes": [
"one-dark-ui",
"monokai-seti"
],
"uriHandlerRegistration": "always",
"useProxySettingsWhenCallingApm": false,
"useTreeSitterParsers": false,
"packagesWithKeymapsDisabled": [
"advanced-open-file",
"ftp-remote-edit"
]
},
"editor": {
"showInvisibles": true,
"softTabs": false,
"softWrap": true
},
"exception-reporting": {
"userId": "7e83e628-56c5-4a2f-ab36-17e022c44f75"
},
"fonts": {
"fontFamily": "Generic Mono"
},
"ftp-remote-edit": {
"config": "8f704dc1bd5ca266bcc88df61128559040694a1b9eab93a8bfe6414ef4938b3a967ca37e201a4ecd79383676d818a6fc06409dab25a37de22b8dd3e01c78608a18fbaec6e0ad14e79083800eed6015a422cdf414e98dc3a28e422cc01f5e2c6214d3ba63f4fd863d48c66a295dd80783b67cdf8710447ba30b644299a6c373b715c29a623c979484c83c24e8e265ef31d0a42b3974094511cda36e5589535a9a38ca2a9f75a6e9d9f927949fc9acf5f19afefb9086c1fff4ffe406844b336f20500eff95beff25b95ee78c7b7b4b00789b66bb77df917bf3578f28293814ddbf9e3858a4ea7b7cc5f43784c1a3d157415b5fb338986240e39cf3ec37040744441c767bafe0bcca21c636dd9707fcb5ed4b86b778edff1f66c4984f1e6707692232e9a344ba235a92165f51b03ec8daa42dc3c57646bddd11a9a36fbfa081c84739bf478916c9a7c186cd011d14cf5375b508b96f37278682eb752f021c9365d8abdd08c3a8f94ea08bad8751fd4fd4f3e7b767b812b0f8e3a67cf4950c498cbea282b04c07f5d1c842ee34087fafd5ae3a96bc1f47a1ff8d4b4f479f953e20cd7d5ca7bc67c1447ade1c8cdbdbf6b71611565f85d753e53440bc579484c7b53dff7954e6227309a7eefc439ae45671f91a8e2b8bfdf72dcd928f68ee259b4a39028e024648bd6008114215bbf9ca010312130279156d558b74b9de85bbcc5b78f5dcd675b5589ac21d8b18862ba2922d8b55bff7c38f1b44df8d589cfaef4557e2ed23c5aed98fc2edd94ea228ef9fb0dd699aea831e859bd9898f7602e8034912158f2a0c2036b5db731d41a63595f6d9e22a022ab398b621a17bf865f20fb3acb781f867bac4ddcf1cbc16a9497d253c83231d2c768c79060ac86cfc1e5a26a6471dda2c7a4da5acaa64b792f71b30d57a4d3b78557e397e45d5003d9f0fe85c4eeb9642f0dde6c41a7a88a30bfc5e96f6c4a65d51d14c4d8a1896b37196811a0b001cf12a3dc89b3cbfa8036b7dc5beb5a9754f118b9e92354b4d626090a71092089f53489b7843ba451c8fff11d59eddf5d02f32cdeeee6be2f5c4c5c6377c1d421273a2fcabc5d5b92dc82e77dea4454b9e9a88a3a6b8799228f6826cf360f20b3f5796a960d6a93692ee04dec893ec295c55b96851ae8e412adc881fefbc452adcc69f83955c4ae48afe12c3efb72a1ed1f056f56d557404db122955ca368606d6aa4a6a774c6e64dd41910cd939cf0f1972352146b6c28afcaf27fbd3b3a7a17d2b6a4c8abd4656f2bd8d108f5d3ed23b79e0acb061dcecdfd5f42a3aa9c03af064acd3ccd829bde273bce4cf01377ad00f53bf399391dd0978c33b6d2bd4a783743d0e7d52d87d634d1a8addda9e21fce3b497a49f86f4bcf6762d6f451c6e181fcb36d958b8782ad47d2487347ad0853be9a0b4745ee8d0d952e80b944256cdc8cbfd9ed39536fb5bcfcd8eb29515382f008d52238ac6c5426a4b53871ad1da045945191dd55cb8",
"tree": {
"toggleOnStartup": true,
"restoreState": true
},
"notifications": {
"showNotificationOnUpload": false
}
},
"git-plus": {
"experimental": {
"autoFetch": 5,
"autoFetchNotify": true
},
"general": {
"gitPath": "/usr/bin/"
}
},
"grammar-selector": {
"hideDuplicateTextMateGrammars": false
},
"linter": {},
"linter-docker": {},
"linter-ui-default": {
"panelHeight": 300
},
"minimap": {
"plugins": {
"cursorline": true,
"cursorlineDecorationsZIndex": 0,
"highlight-selected": true,
"highlight-selectedDecorationsZIndex": 0,
"linter": true,
"linterDecorationsZIndex": 0,
"pigments": true,
"pigmentsDecorationsZIndex": 0,
"split-diff": true,
"split-diffDecorationsZIndex": 0
}
},
"spell-check": {},
"sync-settings": {
"checkForUpdatedBackup": false,
"extraFiles": [
"toolbar.cson",
"/Users/a1/.atom/packages/atom-beautify/src/beautifiers/beautysh.coffee"
],
"hiddenSettings": {},
"installLatestVersion": true
},
"tool-bar": {
"iconSize": "16px"
},
"tree-view": {
"alwaysOpenExisting": true,
"hideIgnoredNames": true
},
"welcome": {
"showOnStartup": false
},
"advanced-open-file": {
"fuzzyMatch": true
}
},
".shell.source": {
"editor": {
"softWrap": true
}
}
}
# 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%);
transform: scaleX(1.0000001);
}
// style UI elements inside atom-text-editor
atom-text-editor .cursor {
// border-color: red;
}
.editor {
.wrap-guide {
visibility: hidden;
}
}
# 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: "spacer"
}
{
type: "button"
icon: 'file-tree'
iconset: 'mdi'
callback: "tree-view:toggle"
tooltip: "Toggle Sidebar"
}
{
type: "button"
icon: 'ssh'
iconset: 'mdi'
callback: "ftp-remote-edit:toggle"
tooltip: "FTP Sidebar"
}
{
type: "button"
icon: 'file-outline'
iconset: 'mdi'
callback: "application:new-file"
tooltip: "New File"
}
{
type: "button"
icon: 'file'
iconset: 'mdi'
callback: "advanced-open-file:toggle"
tooltip: "Open File"
}
{
type: "button"
icon: 'content-save'
iconset: 'mdi'
callback: "core:save"
tooltip: "Save File"
}
{
type: "button"
icon: 'content-save-all'
iconset: 'mdi'
callback: "window:save-all"
tooltip: "Save All"
}
{
type: "button"
icon: 'magnify'
iconset: 'mdi'
callback: "find-and-replace:toggle"
tooltip: "Find"
}
{
type: "button"
icon: 'folder-multiple-outline'
iconset: 'mdi'
callback: "project-find:show"
tooltip: "Find In Project"
}
{
type: "button"
icon: 'auto-fix'
iconset: 'mdi'
callback: "atom-beautify:beautify-editor"
tooltip: "Beautify"
}
{
type: "button"
icon: 'image-filter-hdr'
iconset: 'mdi'
callback: "advanced-open-file:toggle"
tooltip: "Search File"
}
{
type: "button"
icon: 'google-chrome'
iconset: 'mdi'
callback: "open-in-browsers:Safari"
tooltip: "Open in Safari"
}
{
type: "button"
icon: 'docker'
iconset: 'mdi'
callback: "docker:toggle"
tooltip: "Color Picker"
}
{
type: "button"
icon: 'function'
iconset: 'mdi'
callback: "symbols-view:toggle-file-symbols"
tooltip: "Functions"
}
{
type: "button"
icon: 'code-equal'
iconset: 'mdi'
callback: "split-diff:enable"
tooltip: "Split Diff"
}
{
type: "button"
icon: 'format-textdirection-l-to-r'
iconset: 'mdi'
callback: "window:toggle-invisibles"
tooltip: "Show All Characters"
}
{
type: "button"
icon: 'sort-alphabetical'
iconset: 'mdi'
callback: "sort-lines:sort"
tooltip: "sort"
}
{
type: "button"
icon: 'sort-numeric'
iconset: 'mdi'
callback: "sorter:natural-sort"
tooltip: "Sort Natural"
}
{
type: "button"
icon: 'arrow-up-bold'
iconset: 'mdi'
callback: "editor:upper-case"
tooltip: "Upper Case"
}
{
type: "button"
icon: 'arrow-down-bold'
iconset: 'mdi'
callback: "editor:lower-case"
tooltip: "Lower Case"
}
{
type: "button"
icon: 'spellcheck'
iconset: 'mdi'
callback: "spell-check:correct-misspelling"
tooltip: "Correct Misspelling"
}
{
type: "button"
icon: 'lock'
iconset: 'mdi'
callback: "editor:toggle-line-comments"
tooltip: "Commenting Out Code"
}
{
type: "button"
icon: 'console'
iconset: 'mdi'
callback: "command-palette:toggle"
tooltip: "Command Palette"
}
{
type: "button"
icon: 'compare'
iconset: 'mdi'
callback: "compare-files:compare"
tooltip: "Compare"
}
{
type: "spacer"
}
{
type: "button"
icon: 'content-save'
iconset: 'mdi'
callback: "sync-settings:backup"
tooltip: "Backup Configuration"
}
{
type: "button"
icon: 'file'
iconset: 'mdi'
callback: "sync-settings:restore"
tooltip: "Restore Configuration"
}
{
type: "button"
icon: 'compare'
iconset: 'mdi'
callback: "compare-files:compare"
tooltip: "Compare"
}
]
# ~/.atom/packages/atom-beautify/src/beautifiers/beautysh.coffe (not found)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment