nano-devel
[Top][All Lists]
Advanced

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

Re: spotlight and cutting/copying/zapping


From: Benno Schulenberg
Subject: Re: spotlight and cutting/copying/zapping
Date: Wed, 10 Mar 2021 11:42:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Op 09-03-2021 om 05:00 schreef Liu Hao:
> How about the other way around? That is, let's preserve the spotlight, but 
> make
> Ctrl-K etc. cut the spotted text, instead of the entire line only because 
> there
> is no actual selection.

That would restore the --markmatch behavior (and make it the default).

That behavior was removed because I didn't like it.  Marking the found
occurrence seemed like a good idea, but in practice I had difficulty
adapting to it: apparently I regularly search for something, then cut
some lines and paste them somewhere else.  But with --markmatch, the
first ^K would cut the marked word, and I would wonder: what happened,
why isn't the line cut?  Until I learnt to first move the cursor before
cutting.  But that got to be annoying pretty quick.

> 1) To delete it or replace it.

If it's a whole word, Ctrl+Del can be used to delete it.

> 2) To do some complex processing. This is usually done via a macro.

Yes, that's why --markmatch seemed like a good idea.  But no one has
given any example of what they would be able to do with it.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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