Bug 479027 - Projects file tree > file context menu > have all suitable External Tools available there
Summary: Projects file tree > file context menu > have all suitable External Tools ava...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-26 12:44 UTC by Gregor Mi
Modified: 2024-09-28 18:02 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Mi 2023-12-26 12:44:27 UTC
It would be nice to have the user defined external tools (External Tools plugin)  available in the context menu of the Projects plugin's file tree.

Only suitable tools should be shown, which means...

* Tools that use file path variables like %{Document:FileName} or %{Document:Path}
* NOT tools that use cursor position variables like %{Document:Cursor:Line} or %{Document:Cursor:Column}
* NOT tools that have an Output setting which edits a document like "Insert at cursor position" or "Replace selected text"
Comment 1 ThomasvonderElbe 2024-03-19 11:59:25 UTC
What is the "Projects plugin's file tree"?

I would like to have an context-menu-entry for my external tools on every text document in Kate.

Would this be a different feature request?
Comment 2 Bug Janitor Service 2024-09-27 12:01:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1602
Comment 3 Christoph Cullmann 2024-09-28 16:53:33 UTC
Git commit 801cf1eae2baf8746ac5d5fb0287f532be78f67b by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 28/09/2024 at 16:45.
Pushed by cullmann into branch 'master'.

Show relevant external tools in context menu

Shown in project tree view context menu and Documents context menu.
The tools are filtered by mimetype. Tools which have no mimetype are
always shown.
Related: bug 451523

M  +25   -0    addons/externaltools/kateexternaltoolsview.cpp
M  +6    -0    addons/externaltools/kateexternaltoolsview.h
M  +10   -0    addons/filetree/katefiletree.cpp
M  +14   -0    addons/project/kateprojecttreeviewcontextmenu.cpp
M  +5    -0    addons/project/kateprojectviewtree.cpp
M  +7    -0    addons/project/kateprojectviewtree.h

https://invent.kde.org/utilities/kate/-/commit/801cf1eae2baf8746ac5d5fb0287f532be78f67b
Comment 4 ThomasvonderElbe 2024-09-28 18:02:08 UTC
Ah, wonderful! ... Something is happening! ... Thank you guys! :-)