I've mapped my Caps Lock key to act as the Ctrl key (in Keyboard & Mouse preferences > Modifier Keys...). Problem is, not all TextMate combos work with this.
[Hear me now, believe me later. I had an old Sun keyboard that was laid out this way, and it's the only way to fly. Especially on the MacBook Pro where the normal Ctrl key is quite inconvenient to hit.]
For example: Paste From History Ctrl-Option-Command-V. Works fine with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
Another example: Select Bundle Item... Ctrl-Command-T works fine both ways, however.
Perhaps there's something deep in TextMate's key processing code that's only looking directly at the Ctrl key, and not seeing the system-remapped Caps Lock key?
Thanks for your attention!
Jon
Jon Larkowski wrote:
For example: Paste From History Ctrl-Option-Command-V. Works fine with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
Works fine for me, both on a built-in 12" powerbook keyboard and on an external USB keyboard.
There can be wonkiness w/ some keyboard shortcuts w/ an external keyboard, but in my experience they are unrelated to a remapped ctrl key.
Wow, I'm surprised/encouraged to hear remapped Caps Lock as Ctrl works on 12" PowerBook.
For forensics' sake... I'm on a MacBook Pro running OS X 10.4.9 and TextMate 1.5.5 (1383) using the built-in keyboard. And it no worky.
On 30. May 2007, at 05:57, Jon Larkowski wrote:
[...] For example: Paste From History Ctrl-Option-Command-V. Works fine with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
I tried remapping it on a MBP and pressed ⇪⌥⌘V -- up comes the clipboard history. So works fine here.
See http://macromates.com/wiki/Troubleshooting/KeyBindings for troubleshooting suggestions.
On May 30, 2007, at 2:16 AM, Allan Odgaard wrote:
See http://macromates.com/wiki/Troubleshooting/KeyBindings for troubleshooting suggestions.
Thanks! That Key Codes program is pretty handy. Here's some more data, file under 'keyboard kraziness'... On Apple's external white USB keyboard, all combos work. On MacBook Pro built-in, however:
1. Key Codes app doesn't even "see" [caps as ctrl]-opt-cmd-v. 2. Nor does it see [caps as ctrl]-cmd-v. 3. But it does see [caps as ctrl]-cmd-b, c, e, f whatever
I checked all my bindings files and keyboard shortcuts pref pane. I'm at a loss.
Jon
On 5/30/07, Jon Larkowski jonlarkowski@gmail.com wrote:
I've mapped my Caps Lock key to act as the Ctrl key (in Keyboard & Mouse preferences > Modifier Keys...). Problem is, not all TextMate combos work with this.
[Hear me now, believe me later. I had an old Sun keyboard that was laid out this way, and it's the only way to fly. Especially on the MacBook Pro where the normal Ctrl key is quite inconvenient to hit.]
I like the sound of this, and I'm going to try it for a while. My Caps Lock is currently disabled anyway (I don't think I've ever seen anyone use caps lock except by accident). [1]
I've always wanted the caps lock to be replaced by an alternative tab, so that you could have one tab button for the tab character and another for moving around form items and such.
Ed
[1] Actually, I do remember once, a long time, working with someone who used caps lock for every capital letter she wrote. She also used the space bar to delete things (if you select text and press the space bar, the text goes away). Her filenames would often have upto eight spaces in a row in them.
On Tue, 29 May 2007 22:57:20 -0500, Jon Larkowski wrote:
I've mapped my Caps Lock key to act as the Ctrl key (in Keyboard & Mouse preferences > Modifier Keys...). Problem is, not all TextMate combos work with this.
You're not crazy Jon!
I too experience similar weirdness using caps->cntl on a a non-mac external keyboard. I'm using an old IBM Model M [1] and find the cntl key doesn't map correctly in some cases.
In my case I have remapped the following:
Alt -> Command Ctrl -> Option Caps -> Cntl
I think all my problems involve the left shift key. For example, Cntl + Shift + Opt + S doesn't invoke the SQL/Shell language menu. However if I use the *right* shift key it does work. Which means something is awray with the keyboard or the PS/2->USB converter. Any other keyboard does work. I've gotten use to using the right shift key in these cases but I'm not happy about it. And since I expect my Model M to last longer than my fingers (it's 20 yrs old already) I'd like to figure out what's wrong.
Anybody else using a Model M on a Mac?
[Hear me now, believe me later. I had an old Sun keyboard that was laid out this way, and it's the only way to fly. Especially on the MacBook Pro where the normal Ctrl key is quite inconvenient to hit.]
I *love* my new cntl key, regardless of keyboard. I've never missed the caps lock.
For example: Paste From History Ctrl-Option-Command-V. Works fine with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
Cntl + Opt + Command + V *does* work for me.
Quinn
On 1. Jun 2007, at 05:49, Quinn Comendant wrote:
[...] I think all my problems involve the left shift key. For example, Cntl + Shift + Opt + S doesn't invoke the SQL/Shell language menu. However if I use the *right* shift key it does work. [...]
Anybody else using a Model M on a Mac?
Most likely the wiring of the keyboard does not allow for these four keys to be pressed down simultaneously.
It’s not unusual (at least for old keyboards) to re-use the same wire for multiple keys, effectively disallowing some keys to be pressed at the same time.
Le 1 juin 07 à 08:56, Allan Odgaard a écrit :
On 1. Jun 2007, at 05:49, Quinn Comendant wrote:
[...] I think all my problems involve the left shift key. For example, Cntl + Shift + Opt + S doesn't invoke the SQL/Shell language menu. However if I use the *right* shift key it does work. [...]
Anybody else using a Model M on a Mac?
Most likely the wiring of the keyboard does not allow for these four keys to be pressed down simultaneously.
It’s not unusual (at least for old keyboards) to re-use the same wire for multiple keys, effectively disallowing some keys to be pressed at the same time.
Not only for old keyboard. I've suffered the same problem with my MBP (CoreDuo) when pressing simultaneously only two keys. Not modifiers, of course.
Quinn Comendant wrote:
You're not crazy Jon!
I too experience similar weirdness using caps->cntl on a a non-mac external keyboard. I'm using an old IBM Model M [1] and find the cntl key doesn't map correctly in some cases.
In my case I have remapped the following:
Alt -> Command Ctrl -> Option Caps -> Cntl
I think all my problems involve the left shift key. For example, Cntl + Shift + Opt + S doesn't invoke the SQL/Shell language menu. However if I use the *right* shift key it does work. Which means something is awray with the keyboard or the PS/2->USB converter. Any other keyboard does work. I've gotten use to using the right shift key in these cases but I'm not happy about it. And since I expect my Model M to last longer than my fingers (it's 20 yrs old already) I'd like to figure out what's wrong.
Anybody else using a Model M on a Mac?
Yes, this is consistent with some of the problems I get with a Model M plugged in to a USB adaptor. I'm not sure if the problem is with the keyboard or the adaptor.
For instance I need to use right ⇧ for ⌃⇧W (wrap selection in tag, in html). Oddly, it's only with the W key, and maybe a couple of others, that this is a problem. I have no trouble hitting ⌃⇧A with the left ⇧.
-Jacob