Skip to content

Instantly share code, notes, and snippets.

@braver
braver / gist:8a99f029da909acb8817e80f7b8549d1
Created July 11, 2018 14:32
Preferences.sublime-settings
{
"added_words":
[
"linters",
"plugin",
"linting",
"repo",
"json",
"alan"
],
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -l normal (set_color normal)
# Hack; fish_config only copies the fish_prompt function (see #736)
if not set -q -g __fish_classic_git_functions_defined
set -g __fish_classic_git_functions_defined
function __fish_repaint_user --on-variable fish_color_user --description "Event handler, repaint when fish_color_user changes"
if status --is-interactive
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "escape", "command": "workbench.action.closePanel"},
{ "key": "escape", "command": "workbench.action.terminal.toggleTerminal", "when": "terminalFocus" },
{ "key": "escape", "command": "closeFindWidget", "when": "findInputFocussed && findWidgetVisible" },
{ "key": "escape", "command": "workbench.action.closeMessages", "when": "globalMessageVisible" },
{ "key": "escape", "command": "closeMarkersNavigation", "when": "editorFocus && markersNavigationVisible" },
{ "key": "escape", "command": "removeSecondaryCursors", "when": "editorHasMultipleSelections && editorTextFocus" },
{ "key": "f4", "command": "editor.action.marker.next", "when": "editorFocus && !editorReadonly" },
{ "key": "end", "command": "editor.action.marker.next", "when": "editorFocus && !editorReadonly" },
@braver
braver / vscode-settings.json
Created February 7, 2017 08:56
vscode settings
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 11,
"editor.fontFamily": "Input Mono, Hasklig, Menlo, Monaco, 'Courier New', monospace",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"dist": true,
'body':
'cmd-k cmd-up': 'pane:split-right'
'atom-workspace':
'cmd-b': 'build:trigger'
'cmd-shift-b': 'build:select-active-target'
'f4': 'build:error-match'
'.build':
'escape': 'build:toggle-panel'
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["super+alt+t"], "command": "open_terminal_project_folder" },
{ "keys": ["super+alt+g"], "command": "gitup_open" },
{ "keys": ["end"], "command": "next_result" },
{ "keys": ["home"], "command": "prev_result" },
{ "keys": ["enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context":
@braver
braver / preferences.json
Last active April 21, 2017 15:29
Sublime preferences
{
"always_show_minimap_viewport": true,
"binary_file_patterns":
[
"build/*",
"dist/*",
"node_modules/*"
],
"color_scheme": "Packages/Solarized/Solarized (light).tmTheme",
"draw_indent_guides": true,
@braver
braver / .profile
Last active January 16, 2019 20:38
Bash profile
export EDITOR=nano
PS1='\[\e[1;35m\]\h:\W \u\$\[\e[0m\] '
@braver
braver / stylesheet.less
Last active November 6, 2015 12:51
Atom stylesheet (for markdown line breaks)
@import (reference) "syntax-variables";
atom-text-editor::shadow {
.gfm {
.linebreak:after { // show markdown double-space line break
font-family: 'Octicons Regular';
font-weight: normal;
font-style: normal;
display: inline-block;
line-height: 1;
-webkit-font-smoothing: antialiased;