Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a simple usability problem that I would love to fix. I work quite a bit with gedit as my LaTeX editor (with the excellent LaTeX plugin). I constantly need to work with several files. So, a very common situation for me is to be working on some file (hence gedit is running) when the need to edit another file arises. As Nautilus is easier to navigate than the "Open Dialog" of gedit, I usually open up a new Nautilus window, look for my file, and then double click on it (followed by a "Doh!"). What happens is that a new instance of gedit is started with a single tab of the file I just double clicked on, whereas the expected behavior (from my perspective at least) is that this new file should be opened in a new tab in the already running gedit instance.

So, to my question - is there a way to make it work the way that I prefer?

share|improve this question
1  
Which distro do you use? I run Ubuntu (11.04) and new files are always opened in a already open instance of gedit. –  igi May 22 '11 at 0:37

1 Answer 1

As @igi suggested, its the default behavior for Ubuntu Natty. Otherwise

Open /usr/share/applications/gedit.desktop and make sure the Exec property is equal to gedit --new-document %U

Alternately, you can open your ~/.bash_aliases or ~/.bashrc and add

alias gedit="gedit --new-document"
share|improve this answer
3  
--new-document open a window inside the current instance with a new empty document. –  enzotib May 22 '11 at 7:25

Your Answer

 
discard

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.