From 8828075fa3a25f37ec79507c0cf5179b76f35948 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 12 Jun 2026 00:40:39 +0530 Subject: Add init path substitution --- docs/daffm.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'docs/daffm.md') diff --git a/docs/daffm.md b/docs/daffm.md index d89a429..5fd319f 100644 --- a/docs/daffm.md +++ b/docs/daffm.md @@ -171,7 +171,7 @@ integrate with system utils for file management features. # COMMAND SUBSTITUIONS -The following pattern (%,%d,%f,%s,%F,%S) are replaced with absolute +The following pattern (%,%d,%f,%s,%F,%S,%0) are replaced with absolute paths %: File under cursor @@ -186,6 +186,21 @@ paths %F: Same as %S but if there are no selections, uses file under cursor +%0: First path that was loaded when daffm was initialized + +# ENV VARIABLES + +In addition to substitutions, there are also some env variables +available to access values those substitutions without escaping. + +\$files: Same as %f but unescaped + +\$selections: Same as %s but unescaped + +\$init_path: Same as %0 but unescaped + +\$cursor: Same as % but unescaped + # AUTHORS Akshay Nair \ -- cgit v1.3.1