Bug 432012

Summary: Project View Refresh button doesn't refresh
Product: [Applications] kate Reporter: Thomas Hunter II <me>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: jpmbatrina01
Priority: NOR    
Version First Reported In: 19.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of Kate and Dolphin
Project view showing newly added untracked file

Description Thomas Hunter II 2021-01-23 22:54:58 UTC
Created attachment 135117 [details]
Screenshot of Kate and Dolphin

SUMMARY


STEPS TO REPRODUCE
1. Open a file on the local filesystem
2. Switch to the Projects view on the left
3. Create a file in the filesystem
4. Click the refresh icon

OBSERVED RESULT

The tree view doesn't update.

EXPECTED RESULT

The tree view should show the newly created file.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.10.4
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION

Files are on the local root ext4 filesystem.
Comment 1 Jan Paul Batrina 2021-01-30 08:22:16 UTC
I think that's the intended behavior of the project plugin. From what I can gather, only the files tracked by the supported source control systems (e.g. git) are shown there.

For example, build folders will not be shown unless a `git add build` && `git commit -m "Add build folder"` is done.

For a "live" tracking of the current folder, there is the "File System Browser" plugin. Although it does not automatically show the current project folder, it has a manual "Current Document Folder" button and also automatically reloads the view when new files are created.
Comment 2 Jan Paul Batrina 2021-02-12 15:57:01 UTC
Created attachment 135638 [details]
Project view showing newly added untracked file

I think https://invent.kde.org/utilities/kate/-/merge_requests/234/diffs fixes this (the newly added file is listed under <untracked>). That said, it will only show newly added files and the listing only persists for a specific session.