So in conclusion you say you would like some kind import/conversion tool?
It should be possible to build something like that. If you think it’s needed you can add an issue on Github if you want. I guess I will not start on that kind of project at the moment because I have some other things to do with my company (to get some money).
The next thing with Bricks will be a name change and merge it with Bricks UI + write Bricks UI docs.
Been awhile since I’ve started a kirby project from scratch, but I’ll definitely consider bricks next time I do. This sort of structure will definitely be easier to maintain. Want to work on a specific page? Un-collapse that one folder in your IDE Project Files list, and you’ve got everything you need 1 click away (pretty much).
The downside is with all template files being named template, when you do a quick search by file name in your IDE/text editor project…
For example: “CTRL+P” (sublime text) or “CTRL+SHIFT+N” (phpstorm), then type “template.php” will bring up a lot of results in a large project.
Where as “CTRL+P”, then type “home.php” only brought up two results to choose from, the template/home.php and controller/home.php.
I guess we cant always have our cake and eat it too.
I have not been disturbed by that all snippets are called snippet.php. Visual Studio Code also show the folder name and when I search, in 99% of the cases, it’s in the files, not the filename.
Anyway, there is another way it could be done and that is to have the filename match the foldername like /my-snippet/my-snippet.php. The downside of that is if you want to rename it, you need to rename both the file and the folder.
Which do you prefer? Maybe make it an option depending on the environment?
Don’t feel the need to refine it on my account! I may not even get to play with this (for fun) for a few months, maybe longer.
And yes, I see the folder names in the quick file search as well, my point was more to having 3 files show (with directories to differentiate) vs having potentially large numbers of files showing (with directories to differentiate).
It’s really a minor issue anyway… was just sharing my thoughts, playing devils advocate if you will…
The downside of that is if you want to rename it, you need to rename both the file and the folder.
Yeah, that isn’t an ideal solution, imho, and I’m not sure I have an ideal solution readily available… But the beauty in what you created is it’s simplicity, much like Kirby in general.