Skip to content

Instantly share code, notes, and snippets.

@devansvd
Last active December 22, 2020 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devansvd/6fd1bd7884e99732374d886567e6a1de to your computer and use it in GitHub Desktop.
Save devansvd/6fd1bd7884e99732374d886567e6a1de to your computer and use it in GitHub Desktop.

Keybindings

[
	{ "keys": ["ctrl+alt+up"], "command": "scroll_lines", "args": {"amount": 10.0} },
	{ "keys": ["ctrl+alt+down"], "command": "scroll_lines", "args": {"amount": -10.0} },
	{
    "keys": ["alt+z"],
    "command": "toggle_setting",
    "args": {
        "setting": "word_wrap"
    }
},
{
    "button": "button1", "count": 1, "modifiers": ["super"],
    "press_command": "drag_select"
}
]

Command to list

import os; [(os.path.dirname(file)[len('Packages/'):], sublime.decode_value(sublime.load_resource(file))['url']) for file in sublime.find_resources('package-metadata.json')]

import os; [(os.path.dirname(file)[len('Packages/'):]) for file in sublime.find_resources('package-metadata.json')]

Plugins Installed

['AutoFileName', 'AutoPEP8', 'BracketHighlighter', 'Dockerfile Syntax Highlighting', 'EditorConfig', 'Emmet', 'Generic Config', 'HTML5', 'MarkdownPreview', 'Night Owl', 'Package Control', 'Python 3', 'Sass', 'SideBarEnhancements', 'TOML', 'Vue Syntax Highlight', 'HTML-CSS-JS Prettify', 'JsPrettier', 'TypeScript']
// devansvd - Moving to sublime text, vscode electron consumes lot of cpu - drains battery
// https://www.sublimetext.com/docs/3/multiple_selection_with_the_keyboard.html
// ctrl+shift+up/down - Multiple selection, ctrl+cmd+G - multiple find select
{
	"binary_file_patterns":
	[
		".svn/",
		".git/",
		"node_modules/",
		"bower_components/"
	],
	"color_scheme": "Packages/Night Owl/Night Owl.sublime-color-scheme",
	"draw_white_space": "selection",
	"ensure_newline_at_eof_on_save": false,
	"find_selected_text": true,
	"font_face": "Menlo, Monaco, 'Courier New', monospace",
	"font_size": 14,
	"ignored_packages":
	[
		"Vintage"
	],
	"js_prettier":
	{
		"allow_inline_formatting": true,
		"auto_format_on_save": false,
		"auto_format_on_save_excludes":
		[
			"*/node_modules/*"
		],
		"auto_format_on_save_requires_prettier_config": true,
		"debug": true,
		"prettier_cli_path": "/Users/svd/.nvm/versions/node/v12.18.2/bin/prettier",
		"prettier_options":
		{
			"arrowParens": "always",
			"bracketSpacing": true,
			"endOfLine": "lf",
			"jsxBracketSameLine": true,
			"jsxSingleQuote": false,
			"printWidth": 100,
			"quoteProps": "as-needed",
			"requirePragma": false,
			"semi": true,
			"singleQuote": true,
			"tabWidth": 2,
			"trailingComma": "es5",
			"useTabs": false
		}
	},
	"line_padding_bottom": 2,
	"line_padding_top": 2,
	"node_path": "$NVM_BIN/node",
	"preview_on_click": true,
	"scroll_past_end": true,
	"theme": "Adaptive.sublime-theme",
	"trim_trailing_white_space_on_save": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment