Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 4787  / 1 Year ago, sat, december 24, 2022, 12:35:18

And likewise Ctrl+Left to prevword. I read the man page of nanorc and found




bind key function menu




So the line bind ^Left prevword main would be what I want, the problem is that nano only accepts




an alpha character or the word "Space"




so Left doesn't exist.



Is there a way to accomplish this? Right now I'm on natty (nano 2.2.2) but I will upgrade nano if a later (devel?) version can do this.


More From » editor

 Answers
2

Sadly, I don't think this is possible. I've found a thread where a nano developer said:





Hi, I've searched high and low trying to find out if it's possible to
navigate through the text with CTRL left/right-key to jump word by
word...




Unfortunately, no. Meta-Space and Ctrl-Space are the only keys to do
that. This is because in text mode, there's no way for nano to tell
the difference between Ctrl-Left and Left and between Ctrl-Right and
Right.




On another, he added:




because I figure that nano should work the same way under both X
terminals and the console, and I have yet to find a console that can
distinguish between [arrow key] and Ctrl-[arrow key]. I do wish that
wasn't the case...



[#44556] Monday, December 26, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
serveeel

Total Points: 347
Total Questions: 106
Total Answers: 117

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
;