tag:blogger.com,1999:blog-13159893.post3199997329939252956..comments2015-05-05T21:17:11.929-07:00Comments on Stuff that happens, stuff that needs to happen: cmd-key-happy -- swap cmd and alt keys in Terminal.appAnonymoushttp://www.blogger.com/profile/17370975950164097980noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-13159893.post-74824311119953118532015-05-05T20:55:26.680-07:002015-05-05T20:55:26.680-07:00This comment has been removed by the author.Wenguang Wanghttps://www.blogger.com/profile/02669110105913585555noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-39914380969870298302014-03-12T12:29:55.007-07:002014-03-12T12:29:55.007-07:00Thank you so much! This is exactly what I have be...Thank you so much! This is exactly what I have been looking for. Unknownhttps://www.blogger.com/profile/14483139250664585090noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-50748118991261984862013-05-31T09:37:04.026-07:002013-05-31T09:37:04.026-07:00Hi guys,
any experience with OSX 10.8.3 ? I'...Hi guys,<br /><br />any experience with OSX 10.8.3 ? I've successfully builded the binary, turned on "Enable access for assistive devices", checked "Use option as meta<br />key" in terminal preferences and then fired this utility with<br /><br /> ./cmd-key-happy -d -f example-rcfile.lua<br /><br />but it don't swap alt/cmd in my case. No diagnostic found in system log. Any tips ?pipernoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-8144827563192398532013-05-27T09:31:48.960-07:002013-05-27T09:31:48.960-07:00thank you! this is the best thing on the internet...thank you! this is the best thing on the internet. (for at least the last 37 ms.)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-90910798968111136322013-04-08T00:08:04.257-07:002013-04-08T00:08:04.257-07:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-19387591147667822092013-04-07T13:37:26.070-07:002013-04-07T13:37:26.070-07:00This comment has been removed by a blog administrator.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-23758755735988874672011-08-24T00:07:08.519-07:002011-08-24T00:07:08.519-07:00As a note, the arrow keys are denoted as:
right
le...As a note, the arrow keys are denoted as:<br />right<br />left<br />up<br />down<br /><br />In my case, this was useful because I have them mapped to switch between (desktop) spaces. So I added:<br /><br />global_excludes = Set{ <br /> "cmd-right",<br /> "cmd-left",<br /> "cmd-down",<br /> "cmd-up"}<br /><br />and everything worked great!<br /><br />P.S. - These are defined in the escapeCharGrp1 in cmd-key-happy.mAlexnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-70531493012714011722011-03-03T17:25:45.468-08:002011-03-03T17:25:45.468-08:00This is the best utility ever. Seriously, put a do...This is the best utility ever. Seriously, put a donate button up and I will send you some money!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-9095236360546634432011-02-06T03:08:39.221-08:002011-02-06T03:08:39.221-08:00I recently added an `uninstall' rule which sho...I recently added an `uninstall' rule which should remove the binary and the plist file - its that files that causes the program to start automatically launch when you login.Anonymoushttps://www.blogger.com/profile/17370975950164097980noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-68951327539259539262011-02-04T16:55:30.333-08:002011-02-04T16:55:30.333-08:00Thank you! You've saved me much aggravation wi...Thank you! You've saved me much aggravation with this utility!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-78835283407152163332011-02-04T09:03:06.752-08:002011-02-04T09:03:06.752-08:00Hullo I have installed this and it seems to partia...Hullo I have installed this and it seems to partially work on snow leopard however the reason for installing it was to have both meta-key alt-x in emacs -nw but also have # alt-3. With cmd-key-happy running it switches alt-x to cmd-x as advertised but alt-3 and cmd-3 do nothing so i still have no #. What have I done wrong. <br /><br />Failing that how do I uninstall it if I dont want it as it launches at boot now everytime?Pietaginahttps://www.blogger.com/profile/10550818831163006789noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-76427415066758255442011-01-18T15:14:24.599-08:002011-01-18T15:14:24.599-08:00Thanks for this utility!
I've tried to add iT...Thanks for this utility!<br /><br />I've tried to add iTerm 2 by adding the following line to cmd-key-happy.lua in the 'apps' array:<br /><br /> ["iTerm 2"] = { exclude = {} },<br /><br />but it doesn't seem to work. Is that the proper Lua syntax for specifying keys w/ spaces? I tried a bunch of other methods but this was the first that actually compiled.NoFixedAbodehttps://www.blogger.com/profile/08095981004485889114noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-23199438483279218102011-01-17T11:07:51.939-08:002011-01-17T11:07:51.939-08:00The best thing to do is use the Makefile and not C...The best thing to do is use the Makefile and not CMake.Anonymoushttps://www.blogger.com/profile/17370975950164097980noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-59555763772709161952011-01-17T10:36:28.835-08:002011-01-17T10:36:28.835-08:00In case anyone else hits this problem when trying ...In case anyone else hits this problem when trying to build the source code...<br /><br />I got this CMake error:<br /><br />The C compiler "/Developer/usr/bin/gcc" is not able to compile a simple test program.<br />[...]<br /> ld: library not found for -lcrt1.10.6.o<br /><br />The cause might be that you ran the cmake command with the wrong arguments, or no arguments at all. You should run it with the following arguments. And case is important:<br /><br /> cmake -G Xcode<br /><br />If you really, really don't want to use XCode to build the project then running this command before running cmake might help:<br /><br /> export LIBRARY_PATH=/Developer/SDKs/MacOSX10.6.sdk/usr/lib<br /><br />Good luck!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-26842988783448822992010-11-19T09:24:20.916-08:002010-11-19T09:24:20.916-08:00This made my day.
Thanks so much for this awesome...This made my day.<br /><br />Thanks so much for this awesome app!Anonymoushttps://www.blogger.com/profile/06680133776621402139noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-2864795613030922072010-08-23T02:23:41.932-07:002010-08-23T02:23:41.932-07:00ah... took a year to find this
i was using emacs-...ah... took a year to find this<br /><br />i was using emacs-nw <br />with command-option switched<br /><br />but command-tab wouldn't work.<br /><br />now i can do normal editing in emacs and command-tab also works!another gamehttps://www.blogger.com/profile/12917900071094202214noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-3454037325752661172010-06-17T10:23:29.480-07:002010-06-17T10:23:29.480-07:00this is brilliant -- thanks for doing this.this is brilliant -- thanks for doing this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-13159893.post-40613641508706660912010-04-01T23:06:20.281-07:002010-04-01T23:06:20.281-07:00So happy I found this! Just wanted to confirm for...So happy I found this! Just wanted to confirm for anyone else that this works still great on Leopard. I tested on 10.5.8.<br /><br />Also, if you copy the Terminal settings, this will work perfectly for iTerm too.<br /><br />Once again, thanks!Unknownhttps://www.blogger.com/profile/15878050734596621621noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-52293365704952119492010-03-17T23:23:46.445-07:002010-03-17T23:23:46.445-07:00So far, it appears to work.
I added
<key>K...So far, it appears to work.<br /><br />I added<br /><br /><key>KeepAlive</key><br /><dict><br /><key>SuccessfulExit</key><br /><true/><br /></dict><br /><br />to the plist file and reinstalled.<br /><br />I had to reboot because for some reason the unload did not work.<br /><br />However, after reboot, it appears to be working correctly.<br /><br />I'll give this a week to see if it holds up.Unknownhttps://www.blogger.com/profile/07481873843280274012noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-7417239308108109172010-03-17T23:18:42.001-07:002010-03-17T23:18:42.001-07:00This comment has been removed by the author.Unknownhttps://www.blogger.com/profile/07481873843280274012noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-89417239985153076222010-03-17T23:11:27.882-07:002010-03-17T23:11:27.882-07:00I added:
launchctl stop
launchctl start
to my ....I added:<br /><br />launchctl stop<br />launchctl start <br /><br />to my .bashrc to see if that would help me from losing my mappings too quickly.<br /><br />Interestingly, it gave me a reproducible case. If I launch two windows with the keyboard, at the third launch the cmd-key-happy exits.<br /><br />Launchctl tells me that it exits with zero status. No message is left in syslog.<br /><br />Since it is exiting with zero status, it is possible that we could use the KeepAlive feature in the plist file and have launchd relaunch the program upon exit.<br /><br />This would give us a more formal workaround for the occasional time when cmd-key-happy exits.<br /><br />I'll play around with this and see if I can get it to work.Unknownhttps://www.blogger.com/profile/07481873843280274012noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-52923496003737454812010-03-16T11:14:57.734-07:002010-03-16T11:14:57.734-07:00Yes, alt-f works, but I want this to happen on the...Yes, alt-f works, but I want this to happen on the cmd key. In Terminal/Bash you cannot do cmd-f and get forward-word to work. You have to use alt-f. With cmd-key-happy you can swap those keys around so a cmd-f becomes alt-f.Anonymoushttps://www.blogger.com/profile/17370975950164097980noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-51086139935590548992010-03-15T14:21:21.646-07:002010-03-15T14:21:21.646-07:00With Snow Leopard Terminal.app can do this nativel...With Snow Leopard Terminal.app can do this natively.<br />Terminal.app > Preferences > Settings > Keyboard > Use option as meta key<br /><br />Alt-b and alt-f works for me now.Anonymoushttps://www.blogger.com/profile/05514614176760618342noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-60088117799397923202010-03-13T15:12:10.408-08:002010-03-13T15:12:10.408-08:00I just discovered this after being frustrated abou...I just discovered this after being frustrated about this for the better part of 2-3 years. I agree with the initial poster: where's the donate link?<br /><br />And thanks muchly -- this has indeed made my emacs -nw on remote machines gloriously more tolerable :P<br /><br />Cheers.intractablehttps://www.blogger.com/profile/00058931122045055452noreply@blogger.comtag:blogger.com,1999:blog-13159893.post-2826094589893333002010-03-01T09:54:13.404-08:002010-03-01T09:54:13.404-08:00Sounds like exactly what I've been looking for...Sounds like exactly what I've been looking for!<br />Unfortunately I wasn't able to get it running on Snow Leopard.<br /><br />Whenever I start or restart cmd-key-happy I get the following in the syslog:<br /><br />Mar 1 17:49:00 hostname cmd-key-happy[34022]: enable access for assistive devices<br />Mar 1 17:49:00 hostname com.frobware.cmd-key-happy[34022]: cmd-key-happy[34022]: enable access for assistive devices<br />Mar 1 17:49:00 hostname com.apple.launchd.peruser.501[186] (com.frobware.cmd-key-happy[34022]): Exited with exit code: 1<br /><br />No error message is given on the command-line:<br /><br />$ cmd-key-happy<br />cmd-key-happy[34036]: enable access for assistive devices<br />$ echo $?<br />1<br /><br />Downloaded the source code just today. Could someone help me with debugging?<br /><br />Thanks,<br />AndreasAndreashttps://www.blogger.com/profile/18031490781464663155noreply@blogger.com