Skip to content

Instantly share code, notes, and snippets.

@appsforartists
Last active September 27, 2018 23:40
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 appsforartists/f63eb430eab72989072f to your computer and use it in GitHub Desktop.
Save appsforartists/f63eb430eab72989072f to your computer and use it in GitHub Desktop.
Brenton's Keybindings (Mac)
[
{"keys": ["super+up"], "command": "swap_line_up"},
{"keys": ["super+down"], "command": "swap_line_down"},
{"keys": ["option+up"], "command": "select_lines", "args": {"forward": false}, "context": [
{"key": "setting.is_sublimerge_view", "operator": "equal", "operand": false, "match_all": true}
]},
{"keys": ["option+down"], "command": "select_lines", "args": {"forward": true}, "context": [
{"key": "setting.is_sublimerge_view", "operator": "equal", "operand": false, "match_all": true}
]},
{"keys": ["option+shift+up"], "command": "select_lines", "args": {"forward": false}},
{"keys": ["option+shift+down"], "command": "select_lines", "args": {"forward": true}},
{"keys": ["super+shift+l"], "command": "expand_selection", "args": {"to": "line"}},
{"keys": ["super+d"], "command": "duplicate_line"},
{"keys": ["ctrl+d"], "command": "find_under_expand"},
{"keys": ["ctrl+k", "ctrl+d"], "command": "find_under_expand_skip"},
{"keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}},
{"keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"}},
{"keys": ["control+shift+o"], "command": "open_terminal"},
{"keys": ["super+shift+i"], "command": "swi_debug"},
{"keys": ["escape", "d"], "command": "swi_debug"},
{"keys": ["escape", "a"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}},
{"keys": ["escape", "s"], "command": "show_overlay", "args": {"overlay": "command_palette"}},
// Trying to map F4 to Full Screen
{"keys": ["f8"], "command": "next_result"},
{"keys": ["shift+f8"], "command": "prev_result"},
{"keys": ["option+`"], "command": "sublimerge_diff_views"},
{"keys": ["super+ctrl+a"], "command": "alignment"},
{"keys": ["ctrl+shift+c"], "context": [
{"key": "selection_empty", "operator": "not_equal"}
], "command": "calculate", "args": {"replace": true}},
]
Google (ST3):
- Alignment
- Calculate
- Clang Format
- CoffeeAngular Syntax
- Colorsublime
- Default File Type
- EditorConfig
- FlowIDE
- JsFormat
- Material Theme
- Materialize
- Oceanic Next Color Scheme
- Package Control
- SideBarEnhancements
- SublimeGerrit
- SublimeGit
- SublimeLinter-flow
- Super Calculator
- Swift
- Theme - Spacegray
- Wrap Plus
eBay:
- ASP
- ActionScript
- Alignment
- AngularJS
- AppleScript
- Babel
- Batch File
- Bower
- C#
- C++
- CSS
- CSS Color Converter
- CSS Format
- CSSFormat
- Calculate
- Case Conversion
- Clojure
- Color Highlighter
- Color Scheme - Default
- D
- Default
- Default File Type
- Diff
- EditorConfig
- Erlang
- Git Config
- Go
- Graphviz
- Groovy
- Grunt
- HTML
- HTMLBeautify
- Haskell
- Java
- JavaScript
- JavaScriptNext - ES6 Syntax
- JsFormat
- LaTeX
- Language - English
- Lisp
- Lua
- MacTerminal
- Makefile
- Markdown
- Matlab
- NodeEval
- OCaml
- Objective-C
- Oceanic Next Color Scheme
- PHP
- Package Control
- Perl
- Python
- R
- Rails
- ReactJS
- Regular Expressions
- RestructuredText
- Ruby
- SQL
- Sass
- Scala
- SerializedDataConverter
- ShellScript
- SideBarEnhancements
- SublimeGit
- TCL
- Text
- Textile
- Theme - Default
- Theme - Soda
- Theme - Soda SolarizedDark
- Theme - Spacegray
- User
- Varnish VCL
- Vintage
- Web Inspector
- XML
- YAML
- bz2
- rsub
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+left",
"command": "subwordNavigation.cursorSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+right",
"command": "subwordNavigation.cursorSubwordRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+left",
"command": "subwordNavigation.cursorSubwordLeftSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+right",
"command": "subwordNavigation.cursorSubwordRightSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+backspace",
"command": "subwordNavigation.deleteSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+delete",
"command": "subwordNavigation.deleteSubwordRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+c",
"command": "extension.calculateReplace",
"when": "editorHasSelection"
},
{
"key": "alt+shift+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+up",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+shift+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+down",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "home",
"command": "cursorTop",
"when": "editorTextFocus"
},
{
"key": "shift+home",
"command": "cursorTopSelect",
"when": "editorTextFocus"
},
{
"key": "end",
"command": "cursorBottom",
"when": "editorTextFocus"
},
{
"key": "shift+end",
"command": "cursorBottomSelect",
"when": "editorTextFocus"
},
{
"key": "cmd+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "lafe.duplicateCode",
"when": "editorHasSelection && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "!editorHasSelection && editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+l",
"command": "expandLineSelection",
"when": "editorTextFocus"
},
{
"key": "cmd+i",
"command": "-expandLineSelection",
"when": "editorTextFocus"
},
{
"key": "ctrl+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+k ctrl+d",
"command": "editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+k cmd+d",
"command": "-editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+l",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "f4",
"command": "workbench.action.toggleZenMode"
},
{
"key": "cmd+k z",
"command": "-workbench.action.toggleZenMode"
},
{
"key": "escape s",
"command": "workbench.action.showCommands",
"when": "!findWidgetVisible && !suggestWidgetVisible"
},
{
"key": "escape a",
"command": "workbench.action.quickOpen",
"when": "!findWidgetVisible && !suggestWidgetVisible"
},
{
"key": "ctrl+shift+o",
"command": "workbench.action.terminal.toggleTerminal"
}
]
# gotta be hella specific to keep defaults from overriding
# use cmd+. to check what's up if a keybinding isn't taking
'html body atom-workspace.workspace *':
'cmd-l': 'go-to-line:toggle'
'cmd-shift-l': 'editor:select-line'
'ctrl-d': 'find-and-replace:select-next'
'cmd-up': 'editor:move-line-up'
'cmd-down': 'editor:move-line-down'
'alt-up': 'editor:add-selection-above'
'alt-down': 'editor:add-selection-below'
'ctrl-left': 'editor:move-to-previous-subword-boundary'
'ctrl-right': 'editor:move-to-next-subword-boundary'
'ctrl-shift-left': 'editor:select-to-previous-subword-boundary'
'ctrl-shift-right': 'editor:select-to-next-subword-boundary'
'alt-shift-up': 'editor:add-selection-above'
'alt-shift-down': 'editor:add-selection-below'
'ctrl-alt-shift-cmd-a': 'nuclide-quick-open:toggle-omni-search'
'ctrl-alt-shift-cmd-s': 'command-palette:toggle'
# requires duplicate-line-or-selection package
'cmd-d': 'duplicate-line-or-selection:duplicate'
# 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:
# * https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings
# * https://atom.io/docs/latest/behind-atom-keymaps-in-depth
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# https://atom.io/docs/latest/using-atom-basic-customization#cson
{
"auto_match_enabled": false,
"chrome_path":
{
"osx": "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"
},
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"dart_sdk_path": "~/homebrew/bin/dart",
"ensure_newline_at_eof_on_save": true,
"follow_symlinks": false,
"font_face": "Inconsolata",
"font_options":
[
"subpixel_antialias",
"dlig"
],
"font_size": 17.0,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"line_padding_bottom": 2,
"line_padding_top": 2,
"rulers":
[
80,
100,
120
],
"soda_retina_fix": true,
"tab_size": 2.0,
"theme": "Spacegray Oceanic.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"typescript_tsdk": "~/.config/yarn/global/node_modules/typescript/lib/",
"use_current_file_syntax": true
}
{
"clang-format.fallbackStyle": "google",
"editor.autoIndent": true,
"editor.fontFamily": "Fira Code Retina, Fira Code, Inconsolata",
"editor.fontSize": 16,
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"editor.rulers": [
80
],
"editor.tabSize": 2,
"files.associations": {
"BUILD": "bazel",
"METADATA": "bazel",
"WORKSPACE": "bazel"
},
"files.exclude": {
"**/dist/": true
},
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"git.autofetch": false,
"gitProjectManager.baseProjectsFolders":[
"~/Projects"
],
"gitProjectManager.ignoredFolders": ["node_modules"],
"gitProjectManager.storeRepositoriesBetweenSessions": true,
"window.zoomLevel": 0,
"workbench.colorTheme": "Oceanic Next (Sublime)"
}
<?xml version="1.0"?>
<root>
<item>
<name>Remap Caps Lock (F19) to Command + Control + Shift + Option</name>
<appendix>Caps Lock remapped to F19 in PCKeyboardHack.</appendix>
<identifier>f19_to_cmd_ctrl_shift_opt</identifier>
<autogen>
--KeyToKey--
KeyCode::F19,
KeyCode::COMMAND_L,
ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L
</autogen>
</item>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SUFeedURL</key>
<string>https://pqrs.org/osx/karabiner/files/seil-appcast.xml</string>
<key>sysctl</key>
<dict>
<key>enable_capslock</key>
<integer>1</integer>
<key>keycode_capslock</key>
<integer>80</integer>
<key>keycode_adb_keyboard_power</key>
<integer>48</integer>
</dict>
<key>NSWindow Frame SUUpdateAlert</key>
<string>530 478 620 392 0 0 1680 1028 </string>
<key>NSWindow Frame SUUpdateAlertFrame</key>
<string>669 173 575 392 0 0 1440 878 </string>
<key>NSWindow Frame SUStatusFrame</key>
<string>872 523 400 129 0 0 1440 878 </string>
<key>SULastCheckTime</key>
<date>2015-04-02T21:32:23Z</date>
<key>MigrationUtilitiesCurrentBundleIdentifer</key>
<string>org.pqrs.Seil</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment