add default macro file (forgotten earlier)

This commit is contained in:
Maximilian Keßler 2022-02-09 18:02:57 +01:00
parent 3e6f2f99c3
commit 8a6bfef421

View file

@ -0,0 +1,18 @@
from .macros import *
def make_simple_macro(name: str, arg):
return SimpleMacro(
name,
MacroReplacement(
'%s',
arg
)
)
def get_default_macros():
return [
make_simple_macro('!', FormatterProperty.file_prefix),
make_simple_macro('name', FormatterProperty.name)
]