On Thursday, January 12, 2023 at 12:03:19 PM EST, help-nano-request@gnu.org <help-nano-request@gnu.org> wrote:
Send Help-nano mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Help-nano digest..."
Today's Topics:
1. Re: nano key bindings (Chris Allegretta)
2. changing nano key bindings (Donnie Ferris)
3. Re: nano key bindings (Victor Khong - Horsefly Realty)
4. Re: changing nano key bindings (Benno Schulenberg)
----------------------------------------------------------------------
Message: 1
Date: Wed, 11 Jan 2023 19:13:05 +0000
Subject: Re: nano key bindings
Message-ID:
<k8wDJFTEjTGiEWPLKD1ayX8NuLbnpuD_srR3_GHnDESq7flWNoYSf9p3JzbiAvhnsJ6z3VJHCsARi_XiXdUdalV2TuDBgNPomKIGMF-U5gg=@asty.org>
Content-Type: text/plain; charset="utf-8"
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 -------
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Wed, 11 Jan 2023 20:10:35 +0100
Subject: changing nano key bindings
Message-ID:
Content-Type: text/plain; charset="utf-8"
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Wed, 11 Jan 2023 11:24:57 -0800
Subject: Re: nano key bindings
Message-ID:
Content-Type: text/plain; charset="utf-8"
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
> 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 <
>
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 4
Date: Thu, 12 Jan 2023 11:11:26 +0100
Subject: Re: changing nano key bindings
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Op 11-01-2023 om 20:10 schreef Donnie Ferris:
> 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.
Have you had a look at the end of the sample nanorc file?
tail -34 doc/sample.nanorc
(But as Victor says, it would be helpful to know which version of nano
you are using. And do you compile nano yourself or do you use the nano
provided by your distro?)
> 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.
There's no need to modify the source to change the key bindings.
Almost all bindings can be changed via your ~/.nanorc file.
Run 'man nanorc', and search for REBIND.
Benno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
------------------------------
Subject: Digest Footer
_______________________________________________
Help-nano mailing list
------------------------------
End of Help-nano Digest, Vol 178, Issue 1
*****************************************