STEPS TO REPRODUCE 1. Open Konsole 2. Hit Ctrl + Shift + F to open the search OBSERVED RESULT The search opens with prefilled text. The random prefilled text seems to be the first line(s) of the current command and can be even the whole debug output. EXPECTED RESULT The search opens empty or with the last entered search string. Having a random string in the search field on opening can be problematic. 1) it's likely not what you want to search for 2) it overwrites the former search string 3) when having a lot of (continuous) debug output, this can mean Konsole fully freezes as it becomes incapable of searching a huge string or the text appears too often, producing too many results. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 42 KDE Plasma Version: 6.4.4 KDE Frameworks Version: 6.17.0 Qt Version: 6.9.1 Kernel Version: 6.16.2-200.fc42.x86_64 (64-bit) Graphics Platform: Wayland
Yea, not sure what's going on but you are correct at times it is prefilled with some portion of the output on the screen.
This seems to be by design. It should not be random but what is selected on the session. However, I find on a new session, somehow part of my prompt is selected and thus shows in the Find dialog. QString selectedText = view()->screenWindow()->selectedText()