Bug 490515 - Feature request: Open folder in tree view
Summary: Feature request: Open folder in tree view
Status: RESOLVED FIXED
Alias: None
Product: ghostwriter
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: pseudo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-19 17:57 UTC by liverslices
Modified: 2026-03-01 20:56 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liverslices 2024-07-19 17:57:32 UTC
A valuable feature to add to ghostwriter would be an "open folder" option in the File menu, allowing for all .md files in a a folder to be shown in a tree view in the sidebar. This would allow users to switch between multiple .md files for note taking or bulk editing, rather than keeping multiple instances of ghostwriter open.

For example, see the screenshot in this unrelated StackOverflow post about NP++: https://stackoverflow.com/a/35767074

Similar requests (improperly opened in github):
- Possibility of tabbed document views: https://github.com/KDE/ghostwriter/discussions/658
- Feature request: Open/edit multiple files at once: https://github.com/KDE/ghostwriter/discussions/886
- Sidepanel for opening files: https://github.com/KDE/ghostwriter/discussions/847
- Sidepanel for opening files: https://github.com/KDE/ghostwriter/discussions/673
Comment 1 plato.phaedrus 2025-03-26 02:36:56 UTC
This feature would make Ghostwriter my #1 writing application.
Comment 2 Olivier BELLEUX 2025-05-18 13:34:14 UTC
I Agree. Good proposition. +1
Comment 3 pseudo 2026-01-31 07:57:48 UTC
I'll  echo the other commenter in that this feature would also make this my primary writing app. I hope that someone out there is able to pick up this feature and implement it in the near future!
Comment 4 pseudo 2026-02-04 09:13:01 UTC
I've submitted a PR implementing this feature: https://invent.kde.org/office/ghostwriter/-/merge_requests/58
Comment 5 megan.conkle 2026-02-28 20:08:04 UTC
Git commit 8c61bdbf516cc7d8319cfea31b3f354431e2402b by Megan Conkle, on behalf of Nate Peterson.
Committed on 28/02/2026 at 20:05.
Pushed by wereturtle into branch 'feature/folder-view'.

Add folder view for an open file.
This feature opens the parent folder structure in the sidebar for the
an opened file, allowing for quick browsing of other files adjacent to it.

M  +1    -0    src/CMakeLists.txt
M  +2    -2    src/documentmanager.cpp
M  +1    -1    src/documentmanager.h
A  +206  -0    src/folderviewwidget.cpp     [License: GPL(v3.0+)]
A  +68   -0    src/folderviewwidget.h     [License: GPL(v3.0+)]
M  +26   -0    src/library.cpp
M  +14   -0    src/library.h
M  +28   -7    src/mainwindow.cpp
M  +5    -1    src/mainwindow.h
M  +21   -1    src/settings/appsettings.cpp
M  +6    -1    src/settings/appsettings.h
M  +5    -1    src/settings/preferencesdialog.cpp
M  +29   -0    src/settings/preferencesdialog.ui
A  +342  -0    src/settings/preferencesdialog_ui.py

https://invent.kde.org/office/ghostwriter/-/commit/8c61bdbf516cc7d8319cfea31b3f354431e2402b
Comment 6 megan.conkle 2026-03-01 20:56:18 UTC
Git commit 4d2744828f98143edf69fb7e568a340220596bf0 by Megan Conkle.
Committed on 01/03/2026 at 20:56.
Pushed by wereturtle into branch 'master'.

Add folder view for an open file.
This feature opens the parent folder structure in the sidebar for the
an opened file, allowing for quick browsing of other files adjacent to it.

NOTE: This merge request replaces merge request #58 to add some bug fixes and copyright comments.

M  +1    -0    src/CMakeLists.txt
M  +2    -2    src/documentmanager.cpp
M  +1    -1    src/documentmanager.h
A  +206  -0    src/folderviewwidget.cpp     [License: GPL(v3.0+)]
A  +68   -0    src/folderviewwidget.h     [License: GPL(v3.0+)]
M  +26   -0    src/library.cpp
M  +14   -0    src/library.h
M  +28   -7    src/mainwindow.cpp
M  +5    -1    src/mainwindow.h
M  +21   -1    src/settings/appsettings.cpp
M  +6    -1    src/settings/appsettings.h
M  +5    -1    src/settings/preferencesdialog.cpp
M  +29   -0    src/settings/preferencesdialog.ui
A  +342  -0    src/settings/preferencesdialog_ui.py

https://invent.kde.org/office/ghostwriter/-/commit/4d2744828f98143edf69fb7e568a340220596bf0