Peter Bieringer 10 месяцев назад
Родитель
Сommit
3bdc438283
2 измененных файлов с 8 добавлено и 3 удалено
  1. 3 1
      DOCUMENTATION.md
  2. 5 2
      config

+ 3 - 1
DOCUMENTATION.md

@@ -1334,7 +1334,9 @@ Command that is run after changes to storage. Take a look at the
 Default:
 Default:
 
 
 Supported placeholders:
 Supported placeholders:
- - `%(user)`: logged-in user
+ - `%(user)s`: logged-in user
+ - `%(cwd)s`: current working directory _(>= 3.5.1)_
+ - `%(path)s`: full path of item _(>= 3.5.1)_
 
 
 Command will be executed with base directory defined in `filesystem_folder` (see above)
 Command will be executed with base directory defined in `filesystem_folder` (see above)
 
 

+ 5 - 2
config

@@ -223,10 +223,13 @@
 
 
 # Command that is run after changes to storage, default is emtpy
 # Command that is run after changes to storage, default is emtpy
 #  Supported placeholders:
 #  Supported placeholders:
-#   %(user): logged-in user
+#   %(user)s: logged-in user
+#   %(cwd)s : current working directory
+#   %(path)s: full path of item
 #  Command will be executed with base directory defined in filesystem_folder
 #  Command will be executed with base directory defined in filesystem_folder
 #  For "git" check DOCUMENTATION.md for bootstrap instructions
 #  For "git" check DOCUMENTATION.md for bootstrap instructions
-# Example: git add -A && (git diff --cached --quiet || git commit -m "Changes by \"%(user)s\"")
+# Example(test): echo \"user=%(user)s path=%(path)s cwd=%(cwd)s\"
+# Example(git): git add -A && (git diff --cached --quiet || git commit -m "Changes by \"%(user)s\"")
 #hook =
 #hook =
 
 
 # Create predefined user collections
 # Create predefined user collections