Sublime Forum

Standardised Keys

#1

I currently switch (for development reasons) very frequently between Mac and Linux (I have one of each on my desk).

It would be really handy if I could set sublime text to use the same key binding on both OSes (for example, on Linux replace is ctrl+H, but on mac it is alt+ctrl+F)

Is there any easy way to set (for example) the Linux sublime text to just use the mac key bindings (assuming I have a windows key, for the mac key)

1 Like

#2

+1

Though I really doubt this will come to pass. Mac have always been in their own world on this. Users of multiple operating systems might find it useful, but hardcore mac users would probably find this a difficult to adapt to. I find it quite annoying that Apple did not/does not wish to adapt to the convention used by most operating systems. I currently develop on windows at work and Linux or Mac at home, and I am always hitting the wrong keys. Not to mention the fact that my bash scripts quite frequently break when I try to run them on mac since they use different variants of utilities such as sed etc. (though I do understand this more than the key binding differences).

0 Likes

#3

If you want, you can change all of the keybindings yourself. Why not take the "Key Bindings (Linux) and copy the commands over to “Key Bindings (OSX)”? There may be some conflicts because OSX has a lot of control keys mapped to random system things…

BTW. the keybindings can be found in your app support folder (Preferences > Browse packages)

0 Likes

#4

+1 to the request of the original poster!!

it is super-annoying that the keyboard shortcuts for a cross-platform editor are completely different on those two platforms!
what is the hold-up? even EMACS can do this. Sublime is better, no?

Having completely different keyboard shortcuts for each platform invalidates Sublime being cross-platform.

my 2 cents

0 Likes

#5

That’s so much the way I feel after having played on the mac version for 2 days, and now discovering the linux version. It’s just like using 2 different editors. And i still have to install the windows version :frowning:
Learning shortcuts is hard enough on one platform, but doing the effort 3 times, and switchng on the 3 platforms all the time? Not sure I can handle it.
So now, I’ll start creating my own set of shortcut I find usefull, trying to keep them identical everywhere. That’s real pain. I will buy ST only if I succeed. Otherwise… I’ll have to find something else.

0 Likes

#6

@alexf The differences between Windows & Linux are minimal. The only thing that regularly trips me up is selecting multiple lines with the cursor keys – which, now that I thought of it, I just fixed by adding the Windows bindings in my User/Default (Linux).sublime-keymap.

0 Likes

#7

I switch from Linux (work) to Mac (home). I’ll give it a try by changing the keys. The Command key in Mac is indeed a bit odd to adapt to when you come from Windows/Linux, but it has it’s benefits one you are used to (for example Command-C to copy has saved me from hitting Ctrl-C to a running program in a console :stuck_out_tongue: ).

I still have to decided which binding to use, each of them implies to change some of the OS’s default bindings.

Anyway, it would be great to have some “sublime suggested key bindings” so all sublime users can standarize to them if they want. In fact, it would be great to create an standard or so :smile: openkeybindings.org? hehe It would be great and not just for coding!

0 Likes

#8

You guys can checkout my kinto.sh project if you’re interested in resolving this for Linux and Windows.

0 Likes