help-nano
[Top][All Lists]
Advanced

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

Re: how to delete a full word with cursor in the middle of the word?


From: Andreas Radke
Subject: Re: how to delete a full word with cursor in the middle of the word?
Date: Tue, 15 Nov 2022 18:36:49 +0100

Am Tue, 15 Nov 2022 18:03:31 +0100
schrieb Benno Schulenberg <bensberg@telfort.nl>:

> The example given above would work here too.  But if you don't want
> to use --afterends, you could make a binding specific for this case:
> 
>    bind ^D "{end}{left}{chopwordleft}" main

fails here missing the 2nd quote:
md5sums=('20e5b706ee3201aa2741dabca824cd8b')
md5sums=(')

> 
> If the closing quote is not guaranteed to be at end-of-line, something
> a little more complicated could work:
> 
>    bind ^D "{home}{whereis}'{enter}{findnext}{chopwordleft}" main

This works better placing the cursor to any place from/incl ()
md5sums=('20e5b706ee3201aa2741dabca824cd8b')
md5sums=('')

but both bindings fail when placing the cursor on the leading "md5sum"
not deleting md5sum but still removing the checksum itself and not the
word under cursor.

So this is only a special case searching the quote but fails for
a more generic "delete word under cursor".

-Andy

Attachment: pgpZFwVmybvZz.pgp
Description: Digitale Signatur von OpenPGP


reply via email to

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