shiyanhui / FileHeader

A powerful file templating plugin for Sublime Text
203 stars 75 forks source link

creating a new file when the template contains a {{file_name}} causes it to be undefined #67

Open gillett-hernandez opened 8 years ago

gillett-hernandez commented 8 years ago

eg: create the file "Python.tmpl" in your custom header folder (refer to FileHeader sublime settings for custom header, or set it yourself) with contents

# -*- coding: utf-8 -*-
# @File Name: {{file_name}}
# @Author: {{author}}
# @Date:   {{create_time}}
# @Last Modified by:   {{last_modified_by}}
# @Last Modified time: {{last_modified_time}}

right click > FileHeader > New File name it "test_fileheader.py" and observe that the file says undefined in place of the file name

liamjack commented 8 years ago

I'm unable to reproduce this error with ST 3126 and release 2.0.4 of FileHeader