Skip to content

Instantly share code, notes, and snippets.

@yubik9
Forked from kconragan/keyrepeat.shell
Created March 20, 2014 22:40
Show Gist options
  • Save yubik9/9675562 to your computer and use it in GitHub Desktop.
Save yubik9/9675562 to your computer and use it in GitHub Desktop.

Revisions

  1. @kconragan kconragan revised this gist Sep 23, 2013. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions keyrepeat.shell
    Original file line number Diff line number Diff line change
    @@ -9,11 +9,12 @@
    # to repeatedly press the keys to navigate.

    # You can disable this feature for just Sublime Text by issuing the following command
    # in your terminal (Note: *not* the Sublime Text console:
    # in your terminal (*not* the Sublime Text console):

    defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false

    (Note: replace com.sublimetext.3 with whichever version of Sublime Text you are running—eg. com.sublimetext.2)
    # Note: replace com.sublimetext.3 with whichever version of Sublime Text you are running
    # eg. 'com.sublimetext.2'

    # Alternately, if you want this feature disabled globally, you can enter this:

  2. @kconragan kconragan revised this gist Sep 23, 2013. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions keyrepeat.shell
    Original file line number Diff line number Diff line change
    @@ -4,19 +4,21 @@
    # for input.
    #
    # It's a nice feature and continues the blending of Mac OS X and iOS features. However,
    # it's a nightmare to deal with in Sublime Text 2 if you're running Vintage (Vim) mode,
    # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
    # as it means you cannot press and hold h/j/k/l to move through your file. You have
    # to repeatedly press the keys to navigate.

    # You can disable this feature for just Sublime Text 2 by issuing the following command
    # in your terminal:
    # You can disable this feature for just Sublime Text by issuing the following command
    # in your terminal (Note: *not* the Sublime Text console:

    defaults write com.sublimetext.2 ApplePressAndHoldEnabled -bool false
    defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false

    (Note: replace com.sublimetext.3 with whichever version of Sublime Text you are running—eg. com.sublimetext.2)

    # Alternately, if you want this feature disabled globally, you can enter this:

    defaults write -g ApplePressAndHoldEnabled -bool false

    # In either case you'll need to restart your computer for the change to take place.
    # In either case you'll need to restart Sublime Text for the change to take place.

    # Happy coding!
  3. @kconragan kconragan created this gist Apr 27, 2012.
    22 changes: 22 additions & 0 deletions keyrepeat.shell
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
    # that enables you to choose a character from a menu of options. If you are on Lion
    # try it by pressing and holding down 'e' in any app that uses the default NSTextField
    # for input.
    #
    # It's a nice feature and continues the blending of Mac OS X and iOS features. However,
    # it's a nightmare to deal with in Sublime Text 2 if you're running Vintage (Vim) mode,
    # as it means you cannot press and hold h/j/k/l to move through your file. You have
    # to repeatedly press the keys to navigate.

    # You can disable this feature for just Sublime Text 2 by issuing the following command
    # in your terminal:

    defaults write com.sublimetext.2 ApplePressAndHoldEnabled -bool false

    # Alternately, if you want this feature disabled globally, you can enter this:

    defaults write -g ApplePressAndHoldEnabled -bool false

    # In either case you'll need to restart your computer for the change to take place.

    # Happy coding!