bzixilu / dotplugin

Dot language plugin for Intellij IDEA
55 stars 10 forks source link

Handle also files with .gv suffix? #33

Closed guy4261 closed 1 year ago

guy4261 commented 1 year ago

Some editors (e.g. GraphGalaxy save their dot files as .gv files (for GraphViz). Is there a way for the plugin to treat not only .dot files but also .gv files? Or some alternative way to define which files are opened by the plugin? Thank you very much!!!

guy4261 commented 1 year ago

E.g. if there could be multiple suffixes assigned, not only "dot".

https://github.com/bzixilu/dotplugin/blob/master/src/org/plugin/dot/filetypes/DotFileType.java#L33

guy4261 commented 1 year ago

Even weirder: I tried making PyCharm do that for me https://www.jetbrains.com/help/pycharm/creating-and-registering-file-types.html

But while I already have this configuration (by default - I didn't do it), the plugin still does not respond to .gv files the same as it does to .dot files (does not open the rendering pane).

Screen Shot 2022-11-29 at 21 34 02
guy4261 commented 1 year ago

My bad!!! I changed it in IntelliJ, not PyCharm . After changing on PyCharm and restarting the editor - it worked like a charm!!!