From ad73de758fc1b2c5a48004adfb06559732cc305e Mon Sep 17 00:00:00 2001 From: Egor Maksimov Date: Wed, 28 Jan 2026 09:16:35 +0000 Subject: panel/terminal: Add ability to disable konsole url sync Sometimes when you work on the project using the build in konsole, most commands are meant to be run at the project root. This allows for user to disable URL sync so that one could browse the project tree without constantly needing go back to the root folder just to run a command. BUG: 306381 --- src/panels/terminal/terminalpanel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/panels/terminal/terminalpanel.h') diff --git a/src/panels/terminal/terminalpanel.h b/src/panels/terminal/terminalpanel.h index 8eee3c10f..0aaf921c0 100644 --- a/src/panels/terminal/terminalpanel.h +++ b/src/panels/terminal/terminalpanel.h @@ -55,6 +55,8 @@ public: public Q_SLOTS: void terminalExited(); void dockVisibilityChanged(); + void switchSync(bool syncUrl); + void setSwitchTerminalUrlSyncAction(QAction *urlToggle); Q_SIGNALS: void hideTerminalPanel(); @@ -77,11 +79,13 @@ private: enum class HistoryPolicy { AddToHistory, SkipHistory }; void changeDir(const QUrl &url); + void emitUrlChanged(const QUrl &url); void sendCdToTerminal(const QString &path, HistoryPolicy addToHistory = HistoryPolicy::AddToHistory); void sendCdToTerminalKIOFuse(const QUrl &url); private: bool m_clearTerminal; + bool m_syncUrl; KIO::StatJob *m_mostLocalUrlJob; QVBoxLayout *m_layout; @@ -92,6 +96,7 @@ private: QString m_konsolePartCurrentDirectory; QQueue m_sendCdToTerminalHistory; org::kde::KIOFuse::VFS m_kiofuseInterface; + QAction *m_switchTerminalUrlSyncAction; }; #endif // TERMINALPANEL_H -- cgit v1.3.1