aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-04-16 14:21:31 +0800
committerGitHub <noreply@github.com>2020-04-16 14:21:31 +0800
commitec6349fb3fc0b5d9e482f98e2e17e874de5929a7 (patch)
treeb06df6d77841e1f76b03dcdbdb4a333e7ae62c8b
parent4fb31858b4b2ca879f485ebccd79f566fb9eb84a (diff)
refactor: remove update info from file header
The file update info can be accessed from the file directly on the command line. We often forget to update the update field in the Python source file header, making this field rather useless. I have also set up the Neovim to show file update time on the title of terminal window. So there is no need to retain the update field in header comment.
-rw-r--r--my_snippets/python.snippets3
1 files changed, 1 insertions, 2 deletions
diff --git a/my_snippets/python.snippets b/my_snippets/python.snippets
index 2d146ec..0f19ba6 100644
--- a/my_snippets/python.snippets
+++ b/my_snippets/python.snippets
@@ -2,8 +2,7 @@ snippet head "Python source file header" b
"""
Description: $1
Author: Jie-dong Hao
-Date: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
-Update: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
+Created: `!v strftime("%Y-%m-%d %H:%M:%S%z")`
"""
$0
endsnippet