Bug 498526

Summary: Wish: Document browser: allow open file
Product: [Applications] kate Reporter: Allen Winter <winter>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: VERIFIED FIXED    
Severity: wishlist CC: amch9605
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Allen Winter 2025-01-11 12:49:33 UTC
This is a wish to add "Open" on a folder's context menu  in Document view.

currently the menu has "Reload", "Close" , "Expand..", "Collapse..", etc.
I'm asking to add an Open option that would allow opening a new file within the selected folder
Comment 1 Waqar Ahmed 2025-01-31 09:23:40 UTC
Git commit f2d4ca2a1956b6edb69af5652568327b7feff7f7 by Waqar Ahmed.
Committed on 31/01/2025 at 09:23.
Pushed by waqar into branch 'master'.

Add file open action to Document context menu

M  +8    -0    addons/filetree/katefiletree.cpp

https://invent.kde.org/utilities/kate/-/commit/f2d4ca2a1956b6edb69af5652568327b7feff7f7
Comment 2 Allen Winter 2025-01-31 11:59:40 UTC
thanks Waqar.
could you make the open file dialog start at the dir of the selected folder?

currently it seems to open at the parent dir of the current document
Comment 3 Waqar Ahmed 2025-01-31 12:43:09 UTC
Git commit 88c9e9cda3da29bbf00583bd64ffa360d9fa50a1 by Waqar Ahmed.
Committed on 31/01/2025 at 12:42.
Pushed by waqar into branch 'master'.

Make Documents context menu Open action more context relevant

Instead of using the generic "Open..." action, create a new action that
opens the File Dialog in the directory of current document. Also, hide
the action if the current item is a "widget" or "open widgets" action

M  +17   -4    addons/filetree/katefiletree.cpp

https://invent.kde.org/utilities/kate/-/commit/88c9e9cda3da29bbf00583bd64ffa360d9fa50a1
Comment 4 Allen Winter 2025-01-31 12:52:38 UTC
works perfectly now.
thank you