Skip to content

Instantly share code, notes, and snippets.

@zachharkey
Created November 18, 2013 01:47
Show Gist options
  • Save zachharkey/7521106 to your computer and use it in GitHub Desktop.
Save zachharkey/7521106 to your computer and use it in GitHub Desktop.
~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/Default\ \(OSX\).sublime-keymap

Screenshot

[
  { "keys": ["super+k", "super+t"], "command": "title_case" },
  { "keys": ["ctrl+shift+j"], "command": "toggle_single_line_css" },
  { "keys": ["n", "n"], "command": "advanced_new_file",
    "context":
    [
      { "key": "setting.command_mode", "operand": true }
    ]
  },
  { "keys": ["j", "j"], "command": "exit_insert_mode",
    "context":
    [
      { "key": "setting.command_mode", "operand": false },
      { "key": "setting.is_widget", "operand": false }
    ]
  },
  // Gist
  //{ "keys": ["super+k", "super+i"], "command": "gist" },
  //{ "keys": ["super+k", "super+l"], "command": "gist_private" },
  //{ "keys": ["super+k", "super+s"], "command": "gist_update_file" },
  //{ "keys": ["ctrl+super+g"], "command": "gist_list" }

  // Redeclare these because the Gist package wipes them out
  { "keys": ["alt+super+g"], "command": "find_under" },
  { "keys": ["shift+alt+super+g"], "command": "find_under_prev" },
  { "keys": ["ctrl+super+g"], "command": "find_all_under" },

  // Toggle Word Wrap
  { "keys": ["ctrl+option+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"} },

  { "keys": ["ctrl+alt+super+g"], "command": "gist_list" },

  // Mark and Move
  { "keys": ["ctrl+shift+tab"], "command": "mark_and_move_window_select" },
  { "keys": ["ctrl+tab"], "command": "mark_and_move_window_toggle" },
  { "keys": ["ctrl+m"], "command": "mark_and_move_do_it_all" },
  { "keys": ["alt+m"], "command": "mark_and_move_next" },
  { "keys": ["alt+shift+m"], "command": "mark_and_move_prev" },
  { "keys": ["ctrl+shift+m"], "command": "mark_and_move_recall" },
  { "keys": ["ctrl+alt+m"], "command": "mark_and_move_clear" },

  // Package: Goto Documentation
  { "keys": ["ctrl+shift+h"], "command": "goto_documentation" },

  // Open Snippets palette
  { "keys": ["ctrl+shift+l"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}},

  // Copy scope of character after the cursor to the clipboard (for themeing)
  { "keys": ["shift+alt+super+p"], "command": "scope_to_clipboard"  },

  // Reindent
  { "keys": ["ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}},

  
  // Increase and decrease font size with standard shortcuts
  { "keys": ["super+plus"], "command": "increase_font_size" },
  { "keys": ["super+shift+plus"], "command": "increase_font_size" },
  { "keys": ["super+equals"], "command": "increase_font_size" },
  { "keys": ["super+shift+equals"], "command": "increase_font_size" },
  { "keys": ["super+minus"], "command": "decrease_font_size" },
  { "keys": ["super+shift+minus"], "command": "decrease_font_size" },


  // Additional Panel Layouts
  {
    "keys": ["super+alt+right"],
    "command": "set_layout",
    "args":
    {
      "cols": [0.0, 0.33, 1.0],
      "rows": [0.0, 1.0],
      "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
    }
  },
  {
    "keys": ["super+alt+left"],
    "command": "set_layout",
    "args":
    {
      "cols": [0.0, 0.66, 1.0],
      "rows": [0.0, 1.0],
      "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
    }
  }

]


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment