Project tag/category
This might already be possible and I might not understand the config options but let describe what I'm after:
I would like to have some way to group together scratch files. For example, I would like to create scratch files that are specific to a coding project I'm working on. I guess that I could enter a name manually that uses a project-specific prefix and an extension that make the file unique, e.g., project1-001.ext. But as this is cumbersome to type, I was wondering whether it would be possible to specify a list of keywords/tags in the config file from which one could choose when creating a new scratch file, with the plugin then automatically naming it with the prefix and applying a unique suffix (like the datetime in the current standard). So, basically something in between Scratch and ScratchWithName where one
- calls the command, e.g.,
ScratchWithTag - this brings up a first menu where one can select the tag/keyword (from a list specified in the config)
- after selection brings up the second menu for the filetype
- after selection, creates the file with the tag prefix and a unique suffix (like the datetime)
That would then allow to quickly filter down the list of all scratch files to the tag/keyword for the project one is currently in and open the respective file.
Hi, if you want to group some scratch files you can achieve by the config filetype_details.[typename].subdir option.
e.g.
{
...
"filetype_details": {
"myproject.ext": {
"subdir": "myproject"
}
},
...
}
then you can create a new file with name like <your scratch file path>/myproject/the_name_you_typed_in.myproject.ext
The plugin need some big refactor to have new functions~ Since I build this one quite long ago.
Thanks for getting back to me!
I don't know whether the filetype details would work in my case. Most of my projects are in the same programming language, so they would all be grouped in one directory instead of in one directory per project.
I guess I'll go with manually naming scratch files then. Thank you so much for developing this plugin!