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

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


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 

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.


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.