Quoting Jonas Smedegaard (2020-01-30 10:53:44) > The sample nanorc file contains at the end a set suggested for > "usual" bindings. > > Enabling all of those (and no other customizations) fail, however, with > the following error message: > > > No key is bound to function 'Cancel' in menu 'yesno'. Exiting. > > If needed, use nano with the -I option to adjust your nanorc settings. > > A suggested fix is to additionally add the following line: > > bind ^C cancel yesno
Cancel is needed at more places than yesno menu - e.g. in find menu. A better fix is to insted limit custom cut/paste bindings to main mode, i.e. in /etc/nanorc replace these: #bind ^C copy all #bind ^V paste all with these: #bind ^C copy main #bind ^V paste main On a related note - thanks to feedback from my partner, who finds it confusing that "save" prompts for filename when editing an existing file - I suggest to add this to the "usual" set as well (e.g. just below initial ^Q binding): #bind ^S savefile main Thanks for considering, - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature

