Bug 495806 - Terminal prompt - do not switch directory if a search term is not found
Summary: Terminal prompt - do not switch directory if a search term is not found
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: terminal (show other bugs)
Version: git-master
Platform: Solus Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-04 22:51 UTC by TraceyC
Modified: 2024-12-05 15:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TraceyC 2024-11-04 22:51:22 UTC
If a content search is performed, and the search term is not found, the terminal cd's to /run/user/1000/kio-fuse-xxxxx/baloosearch


STEPS TO REPRODUCE
1. Open Dolphin and open the terminal pane
2. Open search - choose Content or Filename
3. type in a string that will get no results

OBSERVED RESULT
Terminal shows:

cd  /run/user/1000/kio-fuse-xxxxx/baloosearch

EXPECTED RESULT
terminal does not change directory

SOFTWARE/OS VERSIONS
Plasma, Frameworks from git-master
Qt Version: 6.7.3
Comment 1 Akseli Lahtinen 2024-11-12 16:18:56 UTC
Can confirm, for me the terminal changes to the folder immediately when searching, I think it should wait until search is done.

dolphin 25.03.70
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.0
Kernel Version: 6.11.7-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 2 Akseli Lahtinen 2024-12-03 11:54:03 UTC
I am closing this as intentional, since the terminal panel is just following the given URL which is same as KURLNavigator has. As far as terminal is concerned, empty search is just an empty folder to it, which makes sense to me.

Feel free to reopen this if you disagree :)
Comment 3 TraceyC 2024-12-03 17:41:43 UTC
While this is intentional, I think it's not a great user experience. Comparing the behavior to what happens when searching through the main UI for files / folders, a user expects that if there are no search results, their view does not change. They also expect that the folder shown in terminal matches the folder they are browsing.

With that in mind, I will change this to a feature request:
If the case when no results are found, do not change directory in terminal
Comment 4 TraceyC 2024-12-05 15:35:57 UTC
.