You are not logged in.

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.

geoffw

Beginner

  • "geoffw" started this thread

Posts: 4

Location: Australia

  • Send private message

1

Saturday, March 10th 2007, 7:42am

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.

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

2

Sunday, March 11th 2007, 11:52am

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)

geoffw

Beginner

  • "geoffw" started this thread

Posts: 4

Location: Australia

  • Send private message

3

Thursday, March 15th 2007, 2:11am

Thankyou Bram, this fixed my problem.

mufuti

Beginner

Posts: 2

Location: Nijmegen

Occupation: Scientist

  • Send private message

4

Wednesday, January 16th 2008, 11:40am

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.

geoffw

Beginner

  • "geoffw" started this thread

Posts: 4

Location: Australia

  • Send private message

5

Friday, January 18th 2008, 1:24am

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...

mufuti

Beginner

Posts: 2

Location: Nijmegen

Occupation: Scientist

  • Send private message

6

Friday, January 18th 2008, 7:44am

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?

geoffw

Beginner

  • "geoffw" started this thread

Posts: 4

Location: Australia

  • Send private message

7

Monday, January 21st 2008, 2:17am

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.