Open keetron opened 7 years ago
Workaround for now: in project view, click alt-Insert click: Edit File Templates Create a template called FitnesseSuite, give it the desired content and .wiki extention It works kinda, I now have two entries for FitNesse.
It would be best if we could edit the new file templates in this dialog but we could not find it.
I put in a PR because I was curious how difficult it could be. Truth be told, I did not compile and test because I had to take my kids to school (and had no idea how to start all that)
I merged it. Now, for the suite page, the contents is shown, as your PR suggested.
Ideally, it should look up for a TemplateLibrary folder and use that instead, but that'll be somewhat more work.
For now I suppose this is sufficient?
Not sure about integrating the TemplateLibrary into the plugin, as I am not to familiair with the function of that. Let me try it out in some project I am currently working on but you are probably right.
With that in mind, now when making a new page, there is the option to choose between old and new style. It would make sense to only show those that the FitNesse installation prefers. So old style for any installation with the pre november 2016 version or that has the old style setting on, new style for the rest. After this you can add the Template LIbrary templates without causeing to much clutter.
This might be by design but when I make a new, empty Suite using the wiki front-end, the content of SuiteName.wiki is by default:
When making a new Suite page using IntelliJ Alt-Ins (which I think is the best thing since grilled-cheese sandwiches), the content is:
The result of this last one is that the test files in the suite folder are not counted as content and I have to type or copy-paste the line with contents myself which is work and I like to avoid work.
Can it be added that when creating a new suite page in IntelliJ, the line '!contents -R2 -g -p -f -h' is added to the file?