Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Having already opened several text files with each in one tab in a window, now open another text file,

  1. gedit sometimes creates another window instead of a session under the current window. I wonder if it is possible to control whether to open the next file under the current window, or in a new one?
  2. if the text file has already been opened, gedit sometimes open it again in another window, and ask me if I want to edit or not. I was wondering how to make gedit not to open a file already opened?


share|improve this question
Is this the same as this Q&A?… – fossfreedom Sep 1 '12 at 16:16
close, but I asked much earlier than that one. – Tim Sep 1 '12 at 16:25
it doesnt really matter who asked first - we can merge the answers to either Q - what I need to know is, if that linked Q is the same in your eyes and if so, does the answer do what you are looking for? – fossfreedom Sep 1 '12 at 16:28

If you open the file from gedit (Ctrl+O, or use the big 'Open' button shown) it will open the new file in a new tab. If you open new files from Nautilus (or another file manager), it may or may not. Also, as @harisibrahimkv points out, files with different permissions/users will be handled differently.

gedit file open dialog

share|improve this answer

This sometimes happen if you are trying to open files with different permissions. As in, if you open a file with sudo while gedit is already open, it might open in another window.

share|improve this answer
BUt in all my cases, the files have the same permission – Tim May 1 '12 at 13:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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