Re: word selection problems using less

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

 



On 10/16/07, michael <cs@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> If I have a file name, say, that wraps at the end of the line, then
> using
>  ls -alt  I can double click the file to select it, but if I use
>  ls -alt | less
> then a double click only selects to the end of the line.
>
>
> Can anybody enlighten me as to why this is and how I can amend the
> behaviour to what I would expect (ie less doesn't affect click
> selection)? I've noticed this in gnome-terminal on FC7 & Debian.
>
> Thanks, Michael
>

I can't explain how to change this, but I can show you why it does
that.  In your ls -alt | less output hit the minus key followed by
uppercase N.  You will get a message at the bottom saying "Constantly
display line numbers   (press RETURN)"

Press the RETURN key and less now numbers the lines.  Note that long
filenames that go to the next line are indeed another line (which I
assume means there is an end of line character inserted by less).
Whereas when you simply do an ls, the terminal window is not using an
end of line character.  If you expand the width of the window with the
less filter you will note that it does re-adjust the lines if you make
it wide enough to accommodate the entire line (lines are re-numbered).
 Why it does that vs behaving like the terminal window does with the
ls command only I don't know.  Maybe someone can offer a better
explanation?

By the way use -n (minus lowercase n) to remove the line numbering.
Or exit less and rerun and it goes away.

Jacques B.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux