Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Sublime Text 2 Swap Line Up/Down Keystroke #138

Closed
stephenway opened this Issue Sep 13, 2012 · 6 comments

Comments

Projects
None yet
4 participants

After running the ./.osx file the following keystrokes don't work.

Sublime Text 2 Swap Line Up/Down Keystroke
Control + Command + Up Arrow
Control + Command + Down Arrow

Did you ever find a fix for this?

Nope, I'm one of those vim guys now.

Contributor

hkdobrev commented Nov 13, 2013

@devinhalladay Thank you for bringing this again! Here is a solution:

System Preferences -> Keyboard -> Shortcuts -> Mission Control -> Uncheck "Mission Control" and "Application Windows". Or just change them to different shortcuts.

I am not entirely sure this is the actual fix. It was a long time ago, but switching lines works for me with the default shortcuts in Sublime Text.

@hkdobrev that's part of the solution. You'll also need to copy the keyboard shortcut bindings from the default keymap to the user keymap. In theory, this shouldn't achieve anything – but it works!

[
    { "keys": ["ctrl+super+up"], "command": "swap_line_up" },
    { "keys": ["ctrl+super+down"], "command": "swap_line_down" }
]
Contributor

hkdobrev commented Aug 1, 2014

@barneycarroll Actually I don't have these in my user keymap and it works for me.

I am on Mac OS 10.10 with Sublime Text Build 3059.

OS 10.9.4. YMMV!

@stephenway stephenway closed this Nov 11, 2015

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