Problem with paste, zap (related) question

Donny <[email protected]> Thu, 26 Oct 2023 13:00:52 -0700
Newsgroups gmane.editors.nano.general
Message-ID <CA+28Jy1rrY+gN3xojv4XAUjP-DgaGD=DesVyWxgFMZ0Hq_67Hg@mail.gmail.com>
--0000000000000bad7b0608a408f4
Content-Type: text/plain; charset="UTF-8"

I'll ask my zap (related) question first so it doesn't get lost in all the
key binding stuff below...

I really like "set zap" - the behavior is closer to what I'm used to.
Unfortunately, what I really AM used to is selecting text then typing over
it. That's the way I edit text and have for decades; I can't seem to break
myself of it. That doesn't work in nano - the selected text doesn't go
away. Is there a setting I'm missing/not understanding that could enable
that behavior?
______________________________________________________

Key Bindings Issue

I don't know what I did (some change I made to nanorc) but I can no longer
copy a line then paste it. It pastes whatever is on the (main/system?)
clipboard and I can't seem to fix it.

I've pasted my key bindings below. As you can see, I bound ^V to "all" and
unbound "^U from "all". I originally had ^V bound to "Paste all" - I think
that's where the problem started. If I try to change the binding to "all"
or "paste", the line turns red and I get a message: [ Mistakes in
'etc/nanorc' ]

The weird part of this is that I think this works fine (as configured) on
my machines and servers at home. Could this be a weird quirk of WSL
(Windows Subsystem for Linux) on my (W11) work machine?

*Key Bindings:*
bind ^X cut main
bind ^C copy main
bind ^V all
bind ^Q exit all
bind ^S savefile main
bind ^W writeout main
bind ^O insert main
set multibuffer
#bind ^H help all
#bind ^H exit help
bind ^F whereis all
bind ^G findnext all
bind ^B wherewas all
bind ^E findprevious all
bind ^R replace main
bind ^Z undo main
bind ^Y redo main
unbind ^K main
unbind ^U all
unbind ^N main
unbind ^Y all
unbind M-J main
unbind M-T main
bind ^A mark main
bind ^P location main
bind ^L gotoline main
#bind ^T gotodir browser
#bind ^T cutrestoffile execute
#bind ^L linter execute
#bind ^E execute main

*Other changes I made (skipping all the commented lines to reduce bloat) -
in case the problem is there somewhere:*
set afterends
set atblanks
set autoindent
set mouse
set smarthome
set softwrap
set stateflags
set zap

--0000000000000bad7b0608a408f4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:verdana,=
sans-serif;color:#073763">I&#39;ll ask my=C2=A0zap (related) question first=
 so it doesn&#39;t get lost in all the key binding stuff below...</div><div=
 class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:#073=
763"><br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sa=
ns-serif;color:#073763">I really like &quot;set zap&quot; - the behavior is=
 closer to what I&#39;m used to. Unfortunately, what I really AM used to is=
 selecting text then typing over it. That&#39;s the way I edit text and hav=
e for decades; I can&#39;t seem to break myself of it. That doesn&#39;t wor=
k in nano - the selected text doesn&#39;t go away. Is there a setting I&#39=
;m missing/not understanding that could enable that behavior?=C2=A0</div><d=
iv class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:#0=
73763">______________________________________________________</div><div cla=
ss=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:#073763"=
><br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-s=
erif;color:#073763">Key Bindings Issue</div><div class=3D"gmail_default" st=
yle=3D"font-family:verdana,sans-serif;color:#073763"><br></div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:#073763">I=
 don&#39;t know what I did (some change I made to nanorc) but I can no long=
er copy a line then paste it. It pastes whatever is on the (main/system?) c=
lipboard and I can&#39;t seem to fix it.=C2=A0</div><div class=3D"gmail_def=
ault" style=3D"font-family:verdana,sans-serif;color:#073763"><br></div><div=
 class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:#073=
763">I&#39;ve pasted my key bindings below. As you can see, I bound ^V to &=
quot;all&quot; and unbound &quot;^U from &quot;all&quot;. I originally had =
^V bound to &quot;Paste all&quot; - I think that&#39;s where the problem st=
arted. If I try to change the binding to &quot;all&quot; or &quot;paste&quo=
t;, the line turns red and I get a message: [ Mistakes in &#39;etc/nanorc&#=
39; ]=C2=A0</div><br class=3D"gmail-Apple-interchange-newline"><span style=
=3D"color:rgb(7,55,99);font-family:verdana,sans-serif">The weird part of th=
is is that I think this works fine (as configured) on my machines and serve=
rs at home. Could this be a weird quirk of WSL (Windows Subsystem for Linux=
)<span class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;colo=
r:rgb(7,55,99)"> on my=C2=A0(W11) work machine</span>?</span><div class=3D"=
gmail_default" style=3D"font-family:verdana,sans-serif;color:#073763"><br><=
/div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;c=
olor:#073763"><b>Key Bindings:</b></div><div class=3D"gmail_default" style=
=3D"font-family:verdana,sans-serif;color:#073763">bind ^X cut main<br></div=
><div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color=
:#073763">bind ^C copy main<br>bind ^V all<br>bind ^Q exit all<br>bind ^S s=
avefile main<br>bind ^W writeout main<br>bind ^O insert main<br>set multibu=
ffer<br>#bind ^H help all<br>#bind ^H exit help<br>bind ^F whereis all<br>b=
ind ^G findnext all<br>bind ^B wherewas all<br>bind ^E findprevious all<br>=
bind ^R replace main<br>bind ^Z undo main<br>bind ^Y redo main<br>unbind ^K=
 main<br>unbind ^U all<br>unbind ^N main<br>unbind ^Y all<br>unbind M-J mai=
n<br>unbind M-T main<br>bind ^A mark main<br>bind ^P location main<br>bind =
^L gotoline main<br>#bind ^T gotodir browser<br>#bind ^T cutrestoffile exec=
ute<br>#bind ^L linter execute<br>#bind ^E execute main<br></div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:#073763"><=
br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-ser=
if;color:#073763"><b>Other changes I made (skipping all the commented lines=
 to reduce bloat) - in case the problem is there somewhere:</b></div><div c=
lass=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:#07376=
3">set afterends<br>set atblanks<br>set autoindent<br>set mouse<br>set smar=
thome<br>set softwrap<br>set stateflags<br>set zap</div></div>

--0000000000000bad7b0608a408f4--