35

I know some other text editors like Notepad++ enable split pane to edit to files side by side. Is there any way I can add this functionality to Gedit?

4 Answers 4

32

In gedit, choose Documents > New Tab group or Ctrl+Alt + N your gedit will split vertically. And you can drag tabs.

1
  • 7
    But it still doesn't let you to have two views of the same file... That's annoying... I wanted split pane to avoid scrolling up and down to check declarations.
    – Calmarius
    Dec 11, 2015 at 12:50
13

Update: Gedit has now added this feature. I'm keeping my answer around for those using older versions of the application.

Gedit does not come with this feature.

But there is a plugin you can get:
Splitview plugin (Archived page from Gedit/Plugins - GNOME Live)
Splitview plugin source code (Archived page)

2
  • It doesn't behave exactly like Notepad++, but it'll suffice for the time being.
    – jumpnett
    Jul 28, 2010 at 21:47
  • 1
    Care to share the name of the plugin? Your link is not valid anymore.
    – lubosz
    Aug 23, 2018 at 16:27
2

Not yet, but it's in development see here (Gedit/Multiviews - GNOME Live!), someone's working on it (among other features) as a GSOC project as far as I know.

1
0

The new developments don't seem to go anywhere, but at least in Ubuntu 16.04 there is a workaround using also tabs as requested by the OP and with a read-only side:

  1. Open the file in a first window.
  2. Go to Documents->New Tab Group (or press Ctrl+Alt+N) as suggested by @thangdc94. This will vertically split the window opening a new document as a tab on the right side.
  3. Open a second window and open again the same file: gedit --new-window file. It will tell you that the file is opened somewhere else and ask you if you want to edit the file anyway. My suggestion is to use "Don't Edit", otherwise you'll be overwriting your own changes from one window to the other. It's better to use one for writing an the other for reading/copying.
  4. The tricky points: Open a new tab in the second window, so now you can see tabs instead of only the document.
  5. The tricky points: Drag from the second window, the tab of your document and drop it as a tab in the right side of the original window.
  6. Now you can close the second window and remove the undesired tabs of the right side of the original window.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.