nano-devel
[Top][All Lists]
Advanced

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

Re: Global tabgives and spacestotab config option


From: Benno Schulenberg
Subject: Re: Global tabgives and spacestotab config option
Date: Wed, 9 Jun 2021 10:04:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Op 08-06-2021 om 17:30 schreef Peter Magnusson:
> Would it be possible to track if the user copy something with the
> mouse -> do a meta-command that look up what was copied and if thereĀ 
> is actually tabs in the buffer it will replace the spaces with tabs

When selecting text by dragging the mouse you are in a graphical
environment, in X, and while dragging the mouse X is talking to
the terminal, the graphical terminal, to obtain the text that is
being selected.  There is no communication between X and nano,
nano has no knowledge of what you are doing with the mouse.

(And when you use --mouse, then you cannot select text with the
mouse.  Nano consumes the clicks.)

So no, it's not possible to let nano modify text selections that
you make with the mouse under X.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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