help-nano
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nano key bindings


From: Victor Khong - Horsefly Realty
Subject: Re: nano key bindings
Date: Wed, 11 Jan 2023 11:24:57 -0800

Hi Donnie,

- Which version of nano are you using? The version you are using will control whether custom keybindings work.
- Ensure there is a copy of this file in your home directory: .nanorc  (note the '.' before the 'nanorc' part of the filename). This is the personalization file for nano.
- Edit .nanorc and add these bindings if not already present.

For commonly used keyboard shortcuts, study the next section. "^F" means pressing CTRL and 'F" at the same time.  

Placing an '#" in front of the line makes it inactive like so:
#bind ^F whereis all

These are active key bindings you want to have for commonly used 

bind ^F whereis all
bind ^B findnext all
bind ^S savefile main
bind ^Z undo main
bind ^X cut all
bind ^C copy main
bind ^V paste all



On Wed, Jan 11, 2023 at 11:13 AM Chris Allegretta <chrisa@asty.org> wrote:
Hi Donnie,

This would probably best be send to nano-help@ (and please send replies there) but it sounds like you want something like the following:

bind ^F whereis all
Or another suitable key binding. the nanorc man page will probably help you out here.

------- Original Message -------
On Wednesday, January 11th, 2023 at 2:05 PM, Donnie Ferris <DonnyBahama@gmx.com> wrote:

Hello,
 
The Ctrl+W key binding is utterly egregious. Every time I (forget and) try to search for text, it closes my browser tab and I lose EVERYTHING. I would like to change the key bindings so that they are more standard - Ctrl+C to copy, Ctrl+X to cut, Ctrl+V to paste, Ctrl+F to find text, etc.
 
I'm not a C/C++ programmer, but this has happened one too many times  One of these days, the blood pressure spike is going to kill me. I'd like to try changing the key bindings (and the text at the bottom that lists the most common ones) and compile from the modified source. I'm hoping I can make sense enough of the code to pull this off. Can you please point me in the right direction? nano.c seemed like the logical place to start but when I (opened it in xed and) searched for "binding" then (when nothing was found) "justify", I didn't find anything that seemed to be what I'm looking for.
 
Thanks for your time and consideration.
 
~ Donnie


reply via email to

[Prev in Thread] Current Thread [Next in Thread]