https://bugs.kde.org/show_bug.cgi?id=486689
--- Comment #2 from Dominik Kummer <[email protected]> --- (In reply to Igor Kushnir from comment #1) > Kate does something similar to what you request: it uses the directory of > the last active tab though (not the previous in the visible tab order). > KDevelop ends up using the directory of some unspecified tab (possibly first > in tab order). Here is why: > 1. KTextEditor::DocumentPrivate::getSaveFileUrl() delegates the ordering to > KTextEditor::Editor::instance()->application()->activeMainWindow()->views() > [we will try to get the url of the last used view, we assume some properly > ordered views() list is around]. > 2. Kate returns KateMainWindow::views(), which delegates to > KateViewManager::views() [@return all views sorted by their last use, most > recently used first]. > 3. KDevelop returns KTextEditorIntegration::MainWindow::views(), which > delegates to Sublime::Area::views() [@return the list of all views in this > area in no particular order]. > > KDevelop's Most-Recently-Used Document Switcher plugin (Ctrl+Tab) maintains > the list of documents sorted by their last use. So KDevelop could do the > same as Kate. Might be difficult to implement properly though, because the > list is in the plugin, not KDevPlatform. Maybe your proposed tab ordering > would be easier to implement. > > Note: I don't expect anyone to implement this feature any time soon, unless > you scratch your own itch. Thanks for your hint! I will look into this deeper! -- You are receiving this mail because: You are watching all bug changes.
