[Github-comments] [geany/geany-plugins] Project Organizer: Add option/ability to set filetype of opened files. (Issue #1121)

xiota notifications at xxxxx
Sun Oct 17 16:31:48 UTC 2021


@techee

I opened a similar issue at [geany/#2946](https://github.com/geany/geany/issues/2946).  I was informed that the feature might be a better fit with one of the project-related plugins.  Since the Project Organizer already has some file extension-related settings, setting filetype for ambiguous header files may be within its scope.

The issue is that `.h` files are ambiguous with respect to C and C++.  Identifying the right type most visibly affects syntax highlighting.  But it may also affect whether class structures and other symbols are correctly identified.

1. Many header files have corresponding source files.  When a pair is found, the header type can be changed if needed.

2. Projects may have sufficient information about file locations to find related files in separate directories?

3. If pairing files is too troublesome, or wasteful of cpu cycles, whichever language predominates the project could be used.

4. The project organizer could have a setting that identifies the main project language.  Ambiguous header files could then be set accordingly.

What do you think?  Any other ideas?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1121
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211017/d9b1bd13/attachment.htm>


More information about the Github-comments mailing list