Bug 126954 - GUI option to make "--use" the default behavior (always open in running instance)
Summary: GUI option to make "--use" the default behavior (always open in running insta...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 153110 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-05-08 13:28 UTC by Maciej Pilichowski
Modified: 2012-10-28 22:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Pilichowski 2006-05-08 13:28:53 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    SuSE RPMs

Please, have mercy :-) and add such option.

I know there is a possibility for running kate in one instance, but after reading a lot of magic (shell alias, konqueror mime types) I am completely lost -- and I guess every not I-actually-wrote-unix user would be so.
Comment 1 Terry 2006-12-05 04:39:43 UTC
I was able to do this previously.  There was an option to require any new file opened to open in a new tab in the open instance of Kate.

It is often convenient to open a file from a file browser because it is faster to find files that way.

My practice now is to quit Kate whenever I have finished working on the document/s in that window, simply because I don't want more than one window cluttering up the desktops.  Please bring the option back.
Comment 2 Terry 2007-02-06 13:26:08 UTC
The option to add %U to the command in file associations is not generally known but does not work, in any case, for "hidden" associations.  For example, I can find no association in Konqueror for a text file with the extension .xcu, so I am unable to add %U to that command.
Comment 3 Anders Lund 2007-02-06 23:06:49 UTC
Just add --use to the general kate command.
Comment 4 Thomas Friedrichsmeier 2007-12-09 23:27:11 UTC
Retitling, as I was confused what was really being asked for, at first.
Comment 5 Thomas Friedrichsmeier 2007-12-09 23:27:47 UTC
*** Bug 153110 has been marked as a duplicate of this bug. ***
Comment 6 Martin Zbořil 2008-08-05 23:13:42 UTC
please do! this switch now even doesn't work within KDE 4.1 so my desktop is going crowded with windows even after you decided to annoy me with that stupid session menu.

at least i have all toolbar buttons when switching between documents (as it was not the case of kate in 3.5) in one window, that is a *huge* improvement!

thanks!
Comment 7 Martin Zbořil 2008-08-05 23:20:48 UTC
explaining the #6: KDEInit was not able to execute '/usr/bin/kate'.
Comment 8 Diederik van der Boor 2010-03-09 17:43:42 UTC
Please consider adding this option, even by default. I've tried using Kate on Windows lately, and the lack of this GUI option is a real turn off.

It boils down to:
"What's the use of a multi-document editor, if it opens each new document in a new window? ".
Comment 9 Diederik van der Boor 2010-03-09 17:49:43 UTC
My use-case / workflow is the following:
- I've got Dolphin open with my project files (images, CSS, HTML, etc..)
- Each time I like to edit a file, I open it.

This workflow works almost everywhere else.
Comment 10 Sergei Andreev 2010-03-10 23:22:08 UTC
*** This bug has been confirmed by popular vote. ***
Comment 11 Stefan Majewsky 2010-03-12 09:37:54 UTC
On my openSUSE 11.2 with KDE 4.4.1, "--use" actually *is* the default behavior. "kate --help" says:

>   -u, --use   Reuse existing Kate instance; default, only for compatibility

And http://websvn.kde.org/branches/KDE/4.4/kdesdk/kate/app/katemain.cpp?view=markup confirms this, see lines 138/139. Note the difference to http://websvn.kde.org/branches/KDE/4.3/kdesdk/kate/app/katemain.cpp?view=markup from the 4.3 branch, lines 85/86.

Interestingly, this is not the solution you were proposing, so I'm leaving it to someone else to mark this as RESOLVED.
Comment 12 Terry 2010-03-13 01:41:24 UTC
I have added -use to the settings in Konqueror.  Kate still opens a new instance of the saved session.
Comment 13 Christoph Cullmann 2012-10-28 22:12:38 UTC
Use is now standard again, since some KDE releases.