Bug 432012 - Project View Refresh button doesn't refresh
Summary: Project View Refresh button doesn't refresh
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 19.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-23 22:54 UTC by Thomas Hunter II
Modified: 2021-02-12 15:57 UTC (History)
1 user (show)

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


Attachments
Screenshot of Kate and Dolphin (94.49 KB, image/png)
2021-01-23 22:54 UTC, Thomas Hunter II
Details
Project view showing newly added untracked file (67.71 KB, image/png)
2021-02-12 15:57 UTC, Jan Paul Batrina
Details

Note You need to log in before you can comment on or make changes to this bug.
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.