Commit 3e0a9464 authored by loh.tar's avatar loh.tar Committed by Christoph Cullmann
Browse files

Highlight current file when "sync with doc" is checked

parent 57c6942a
......@@ -36,6 +36,7 @@
#include <QDir>
#include <QLineEdit>
#include <QStyle>
#include <QTimer>
#include <QVBoxLayout>
// END Includes
......@@ -329,6 +330,11 @@ void KateFileBrowser::autoSyncFolder()
{
if (m_autoSyncFolder->isChecked()) {
setActiveDocumentDir();
// Highlight current document. 300 was the lowest delay working also on startup
QTimer::singleShot(300, this, [this] {
m_dirOperator->view()->clearSelection();
m_dirOperator->view()->keyboardSearch(activeDocumentUrl().fileName());
});
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment