FileHeader icon indicating copy to clipboard operation
FileHeader copied to clipboard

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

Open gillett-hernandez opened this issue 8 years ago • 1 comments

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

gillett-hernandez avatar Aug 03 '16 00:08 gillett-hernandez

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

liamjack avatar Nov 08 '16 14:11 liamjack