Git commands output have no mouse support.

Bug #326460 reported by Welton Rodrigo Torres Nascimento
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
git-core (Debian)
Confirmed
Unknown
git-core (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: git-core

git-core 1:1.5.6.3-1.1ubuntu2
ubuntu 8.10

Expected:

If i do a git log or git show the output is shown using a pager, /usr/bin/pager, but there is no mouse support, no scroll wheel.

But if I do, say, git log | pager, guess what? Mouse support!

find /etc/ | less? Mouse support.

Git must have mouse support on Ubuntu!

Revision history for this message
Anders Kaseorg (andersk) wrote :

git exports LESS=FRSX if the LESS environment variable is not already set. The -X (--no-init) is required to let -F (--quit-if-one-screen) work sensibly, but breaks mouse wheel scrolling.

To work around this, you can disable both of those options by exporting LESS=RS. You will gain mouse wheel scrolling, but the disadvantage is that you will always have to explicitly quit the pager, even if it is displaying less than a screenfull.

If you think the default should be changed, consider talking to the upstream developers: <http://vger.kernel.org/vger-lists.html#git>.

Changed in git-core (Debian):
status: Unknown → New
Changed in git-core (Debian):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in git-core (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.