Bug 357185 - open header plugin not working
Summary: open header plugin not working
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-26 19:39 UTC by cat22
Modified: 2016-06-13 15:41 UTC (History)
0 users

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 cat22 2015-12-26 19:39:29 UTC
OpenSuse 13.1 x86_64
KDE 4.11.5
Kate 3.11.5
The "open header" plugin is checked and enabled but if i right click on  "#include <stdio.h>" for example, there is no option to load that file, also i dont see anything on the menus.


Reproducible: Always

Steps to Reproduce:
1. in Settings, Configure Kate, Plugins, enable "Open Header" plugin
2. Load a .C program and 
3. Right click on one of the #include <> files. e.g #include <stdio.h>


Actual Results:  
There is no available option to load the file on the right click menu
There is no main menu option either (that i could find)

Expected Results:  
option on right click menu to open the include file under the cursor
Comment 1 Dominik Haumann 2016-06-13 14:15:47 UTC
KDevelop provides this kind of functionality.

Kate's Open Header plugin will allow you to toggle the header and source file, if both are in the same folder. It has nothing to do with the #includes in a file.

Example: If you are in MyFile.c, and invoke open header, it will open MyFile.h.
Comment 2 cat22 2016-06-13 14:57:53 UTC
That's not too useful, it would be better to expand the Open Header functionality to open any #include'd header
Comment 3 Dominik Haumann 2016-06-13 15:41:38 UTC
I agree, but it's not possible for Kate to know where to look for #includes, since Kate does not parse any Makefile to know all the include paths. That is, even if we implement it, it will be just a bad heuristic that does not really fix the feature request...