Sublime Forum

File Templates in ST3?

#1

Hi,

I would like to create some file templates for files I use frequently. I require control over project/path, filename, and contents.

My use case is for journaling. Something like:

Project: Journal.sublime-project
Path (relative to project): .
Filename: 20120510 - journal.md
Contents:

## 2012-05-10 07:43

Is there a plugin available that can help me do this? I get by with text expansion, but I’m more lazy than I thought I was :smile:

P.S. The likeliest candidated is SublimeFileTemplates, but it’s ST2 only.

Alex

0 Likes

#2

These might be of help?

sublime.wbond.net/packages/SublimeTmpl

sublime.wbond.net/packages/STProjectMaker

Found via sublime.wbond.net

0 Likes

#3

Thanks @subhaze!

ProjectMaker is unrelated. (It looks cool, though.)

SublimeTmpl looked promising (and I had missed it). But, as far as I can tell, it doesn’t go far enough. It creates an unsaved buffer with some pre-determined text, customizable with variables, including date. Unfortunately I want the file saved with a specific name and a specific path, which it doesn’t support. I would also prefer if the path was designated relative to project (not the current project, but one specified). I can hard-code the path, but I’ll run into trouble I think.

Anyway. Thanks for the recommendations, but I’m still in the market :smile:

0 Likes