Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Nano text editor: commands conflict with OSX key shortcuts

Nano text editor: commands conflict with OSX key shortcuts
Thread Tools
Mac Elite
Join Date: Sep 2001
Location: Santa Monica, CA
Status: Offline
Reply With Quote
Aug 8, 2009, 02:13 PM
 
I've been using nano to edit text and wanted to step up my game by using nano's keyboard commands. Some of these, however, conflict with OSX system key shortcuts (e.g., ^Space, which in nano moves the cursor forward one word but in OSX invokes Spotlight).

How are people working around this? Or is there nothing for it but to remap those OSX keyboard shortcuts?

Thanks.
Mike
"Labor is prior to, and independent of, capital. Capital is only the fruit of labor, and could never have existed if labor had not first existed. Labor is the superior of capital, and deserves much the higher consideration." -- Abraham Lincoln, 1861
     
Moderator
Join Date: Apr 2005
Location: Cambridge, UK
Status: Offline
Reply With Quote
Aug 8, 2009, 04:18 PM
 
Originally Posted by brachiator View Post
I've been using nano to edit text and wanted to step up my game by using nano's keyboard commands. Some of these, however, conflict with OSX system key shortcuts (e.g., ^Space, which in nano moves the cursor forward one word but in OSX invokes Spotlight).

How are people working around this? Or is there nothing for it but to remap those OSX keyboard shortcuts?

Thanks.
Mike
Well, for the above shortcut and I think all the rest, you press control, not command.
     
Mac Elite
Join Date: Sep 2001
Location: Santa Monica, CA
Status: Offline
Reply With Quote
Aug 8, 2009, 04:36 PM
 
Originally Posted by seanc View Post
Some of these, however, conflict with OSX system key shortcuts (e.g., ^Space, which in nano moves the cursor forward one word but in OSX invokes Spotlight).
Well, for the above shortcut and I think all the rest, you press control, not command.
Thanks, seanc. I should have been more clear – I have cmd-Space set to invoke Launchbar, so ctl-Space invokes Spotlight. I'm not trying to use the command key in nano.

The control key combinations work in nano so long as there's not an OSX systemwide use for them. So, e.g., ctl-K deletes the current line...

I guess the solution may be to not map anything in the GUI to the control key, because the control key is relied upon so much in the CLI.
"Labor is prior to, and independent of, capital. Capital is only the fruit of labor, and could never have existed if labor had not first existed. Labor is the superior of capital, and deserves much the higher consideration." -- Abraham Lincoln, 1861
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:53 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2