Skip to content

Instantly share code, notes, and snippets.

@wizioo
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save wizioo/af5a1b6c78e3037a864e to your computer and use it in GitHub Desktop.

Select an option

Save wizioo/af5a1b6c78e3037a864e to your computer and use it in GitHub Desktop.

Revisions

  1. wizioo revised this gist May 26, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,10 @@ Key binding for Sublime Text in OSX w/ Keyboard + Keypad
    =========================================================

    Allow user to use "Home" & "End" touches and mix it with ctrl and shift.

    Configuration
    -------------

    Just copy those line in sublime text after : Sublime Text > Preferences > Key Bindings - Users

    Associations created
  2. wizioo revised this gist May 26, 2015. 1 changed file with 16 additions and 0 deletions.
    16 changes: 16 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    Key binding for Sublime Text in OSX w/ Keyboard + Keypad
    =========================================================

    Allow user to use "Home" & "End" touches and mix it with ctrl and shift.
    Just copy those line in sublime text after : Sublime Text > Preferences > Key Bindings - Users

    Associations created
    ----------------------------
    - **Home** : go to beginning of line
    - **End** : go to end of line
    - **Shift+Home** : select from cursor until the beginning of line
    - **Shift+End** : select from cursor until the end of line
    - **Ctrl+Home** : go to beginning of file
    - **Ctrl+End** : go to end of file
    - **Ctrl+Shift+Home** : select from cursor until the beginning of file
    - **Ctrl+Shift+End** : select from cursor until the end of file
  3. wizioo created this gist May 26, 2015.
    10 changes: 10 additions & 0 deletions OSX.sublime-keymap
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    [
    { "keys": ["end"], "command": "move_to", "args": { "to": "eol" } },
    { "keys": ["home"], "command": "move_to", "args": { "to": "bol" } },
    { "keys": ["shift+end"], "command": "move_to", "args": { "to": "eol", "extend": true } },
    { "keys": ["shift+home"], "command": "move_to", "args": { "to": "bol", "extend": true } },
    { "keys": ["ctrl+end"], "command": "move_to", "args": { "to": "eof" } },
    { "keys": ["ctrl+home"], "command": "move_to", "args": { "to": "bof" } },
    { "keys": ["ctrl+shift+end"], "command": "move_to", "args": { "to": "eof", "extend": true } },
    { "keys": ["ctrl+shift+home"], "command": "move_to", "args": { "to": "bof", "extend": true } },
    ]