How do I turn on line numbering in Meld diff viewer?

12

I can't find the option to enable line numbering. It'd be very helpful!

trusktr

Posted 2012-04-05T07:11:51.360

Reputation: 1 521

Nevermind, I hovered over the grayed-out option and it said to install gnome-python-desktop. – trusktr – 2012-04-05T07:14:02.870

Answers

3

Just believe it needs other dependencies, I saw them on Meld homepage but they are optional. On Fedora, try this

yum install gtksourceview
yum install gnome-python2-gtksourceview
yum install gnome-python2-gnomeprint 

Truong Ha

Posted 2012-04-05T07:11:51.360

Reputation: 305

5

I had this problem on Ubuntu and just to spare another unobservant person the time I spent digging around for it I thought I'd add an answer here as well.

If you go into preferences you can see that the option to show line numbers is grayed out but if you hover over it it says to install python-gtksourceview2.

So on ubuntu:

sudo apt-get install python-gtksourceview2

And you should be good to go.

Klepto

Posted 2012-04-05T07:11:51.360

Reputation: 216

2

The previous answer said to go into preferences within Meld. However, I can't see any preferences menu entry, which is consistent with the following post I found that proposed a solution with dconf-editor to toggle line numbers on/off.

Steps:

  1. Open dconf-editor
  2. Navigate to the path org.gnome.meld
  3. Toggle the setting for line numbers:

dconf-editor screenshot

For me, on Ubuntu 18.04, I didn't need to install any additional dependencies.

trent

Posted 2012-04-05T07:11:51.360

Reputation: 121