Thanks for you reply, and I will implement 2),3) and 4) first as they are easier, and 1) will be implemented later, as it’s a bit harder…
[quote=“highend”]May I ask for a few feature requests?
1.) It would be nice if we could define different file_header_format templates.
Maybe with some type of scope so that they can be automatically applied to a file with a specific extension.
E.g.:
"file_header_format.xys": "/**********************************************************#\n# @@ScriptName: \n# @@Author: @@author <@@email>\n# @@Create Date:\n# @@Modify Date: \n# @@Function:\n#**********************************************************/",
.xys files are script files for XYplorer (a Windows file manager) and comment blocks are created inside
/* ... */
regions.
So a normal ctrl+1 would insert that template if I’m working inside a .xys file…
2.) Can you “reorganize” your settings that should be placed inside the Preferences.sublime-settings file?
Something like this:
{
"zyfileheader":
{
"ignore_files": "zy_file_header.py", "default.sublime-settings", "Preferences.sublime-settings"],
"file_header_format": "#*********************************************************#\n# @@ScriptName: \n# @@Author: @@author<@@email>\n# @@Create Date:\n# @@Modify Date: \n# @@Function:\n#*********************************************************#",
"python": "#!/usr/bin/env python\n# -*- coding:utf-8 -*-",
"shell" : "#!/usr/bin/env bash",
"author" : "Your name here",
"email" : "Your email here"
}
}
Otherwise all the different settings will be resorted (alphabetically) when the Preferences.sublime-settings file get’s rewritten, which makes it hard to edit those settings afterwards.
3.) Can we get an option to not insert a template automatically when a new file is created (via ctrl+n)?
4.) It would be nice if we could redefine the time format for created and modified date (globally or for every template).
E.g. in Germany we use: DD.MM.YYYY HH:MM:SS
Regards,
Highend[/quote]