Bug 508693 - Opening a file within the 'File System Browser' plugin while in tree view should not change the viewed directory.
Summary: Opening a file within the 'File System Browser' plugin while in tree view sho...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.0
Platform: EndeavourOS Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-25 02:24 UTC by Benjamin Currie
Modified: 2025-08-30 22:02 UTC (History)
1 user (show)

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


Attachments
Visual Aid for exact problem (189.63 KB, image/png)
2025-08-25 02:24 UTC, Benjamin Currie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Currie 2025-08-25 02:24:03 UTC
Created attachment 184421 [details]
Visual Aid for exact problem

SUMMARY
In the Kate program when using the 'File System Browser' plugin with the view mode set to either
`View Mode > Tree View`
or 
`View Mode > Detailed Tree view`
and opening a file within an expanded directory inside the currently viewed directory for some reason changes the directory viewed to the one of the opened file rather than just leaving the current view alone. The embedded file browser should not change the view unless a folder is double clicked. Opening a file should only open the file and not change the currently viewed directory to the one of the open file.

STEPS TO REPRODUCE
1. Create a folder named 'A' with a folder named 'B' contained within 'A'.
2. Create a file in folder 'B' called 'test.txt'
3. Enable 'File System Browser' plugin if not already active.
5. Open the 'File System Browser' on the side bar.
6. Right click -> `View Mode > Tree View`
7. Navigate to folder 'A' such that you can see Folder 'B'
8. Click the drop down arrow on folder 'B' such that you can see 'test.txt'
9. Double click 'test.txt'
10. Notice that the view has been changed to that of Folder 'B' and the folder tree no longer visible.

OBSERVED RESULT
Changing the currently viewed directory to that of the file.

EXPECTED RESULT
No change in the currently viewed directory.
Comment 1 Christoph Cullmann 2025-08-30 16:57:48 UTC
Have you enabled the option that the browser follows the current file?

(check the small settings menu in the file browser view)

That is default on and will lead to that.
Comment 2 Benjamin Currie 2025-08-30 22:02:35 UTC
I see you are correct and thank you! However this menu seems to only be accessible if you add the 'options' to the 'File System Browser' toolbar, which wasn't initially visible by default and took me a while to figure out.
The number of steps to achieve this seems far too high and not intuitive.

Settings -> Configure Kate -> File System Browser -> Double click on options to add to toolbar -> Okay button -> Click Options button within File System Browser tool bar -> Enable Automatically synchronize with current document

Would be nice if was available in a more convenient location such as
- Within the right click menu possibly under view mode
- Under Settings -> Configure Kate -> File System Browser and add the same options which are visible in that toolbar options menu.