Bug 143778 - kate should not open documents twice but focus the already opened file
Summary: kate should not open documents twice but focus the already opened file
Status: RESOLVED DUPLICATE of bug 142596
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-03 10:51 UTC by Kai Krakow
Modified: 2009-06-04 23:42 UTC (History)
0 users

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 Kai Krakow 2007-04-03 10:51:55 UTC
Version:           2.5.6 (using KDE 3.5.6 "release 48.1" , openSUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.20.2-ccj47-desktop

Sounds like a feature wish but it isn't: If I have a lot of files open and thus cannot visually keep track of a file's loading status, I open it again from the quick file pane - just to continue fast with my work. The bug is that kate does not focus a document which may already be open but instead opens a new instance of it. This is very annoying because if I continue working on the file later and do not choose the freshest "instance" and apply changes to an older version and overwrite changes I made to the other instance I opened before. Kate even does not notice this when I close kate and effectivly throws away work. :-(

Kate should open/show documents only once in the document list. Or it should keep track of changes in every opened instance so I cannot accidently overwrite my latest loaded copy of a document (kate doesn't notice that the file was changed).

This at least applies to files loaded via SFTP oder FISH, as I usually work remote files when opening more that one file at once.

To not get it wrong: By "instance" here I mean opened multiple document instances within _one_ kate session, not multiple kate sessions. And I know that kate usually does not notify about changes in remote files - so it should really be fixed that kate does only allow one single document instance per session. So I consider it a bug and not a feature wish.

So the file open function should look if the specific file is already loaded and then focus it instead of loading another seperate copy. I love kate for its features and speed and I just don't want to kill that gain by endlessly searching thru the document pane if eventually I already opened that file in a big session.
Comment 1 Thomas Friedrichsmeier 2007-12-14 00:53:00 UTC
Well, in general kate does not open the same file twice, but in some cases it does not understand two files are the same. Most importantly bug #142596 and bug #139137. I think that the issue you see is likely another instance of bug #142596.
Comment 2 Dominik Haumann 2009-06-04 23:42:08 UTC
Close as duplicate. Duplicate paths due to multiple '/' in the url are now merged into one single file. Opening a file with the same remote url twice works here as single file. 
Opening a file using different protocols is something that kate can't check as there is no way to tell from the client side. So close as duplicate of the other bug which is about multiple slashes.

*** This bug has been marked as a duplicate of bug 142596 ***