Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
How do I get Kate to open new files in the existing window
Whenever I choose to open a text file with Kate from a Konqueror file list, by right clicking and selecting 'Open with Kate' from the pop-up menu, it starts a new instance of Kate instead of using the already open Kate instance. I'm using Kate version 2.5.6 under KDE 3.5.6.
It used to behave properly on previous versions but no more. When I first starting the newer version I was presented with a dialog box asking if I want to start a new session or use an existing session. I chose to use the existing default session and also selected the 'always use this choice' checkbox but, subsequently, instead of using the already open default session it opens the default session in a new window.
RE: How do I get Kate to open new files in the existing window
Use
|
Source code
|
1
|
kate -u
|
You can enter this command in the file associations for text files you'd like to open with Kate.
Bram Schoenmakers
KDE Netherlands (www.kde.nl)
Thankyou Bram, this fixed my problem.
I hate this behavior as well, but the -u option only does it for me from the command line. Changing the file association in konqueror doesn't change a thing, i.e. kate is still propagating many windows! This is a pain, why is it now default
I am using kate 2.5.8, kde 3.5.8.
How do I get Kate to open new files in the existing window
mufuti,
You probably have to set the -u option in the command for kate in the KDE menu. On my system the KDE menu command for kate is:
kate -u %U
This seems to work...
RE: How do I get Kate to open new files in the existing window
Hmm... I don't have a KDE menu, since I am running gnome. Adding -u %U in the command from konqueror doesn't do it though. Still propagating windows like mad. I can try logging in with a kde desktop, and see if I can find the setting. Maybe it works, and either it changes how kde deals with itself even under gnome, or I stay in kde. What does the %U do anyway?
RE: How do I get Kate to open new files in the existing window
I believe that the %U is the URL of the file to edit, this would usually be a local filename or a URL such as
ftp://somedomain.com/dir/file.txt.