aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-06-12 00:40:39 +0530
committerAkshay Nair <phenax5@gmail.com>2026-06-12 00:47:18 +0530
commit8828075fa3a25f37ec79507c0cf5179b76f35948 (patch)
tree86646a646f423343b016f5d353d8384802e8b8b0 /docs
parented728dfdf33ad58113b7dd7b4402d3b15dca91d8 (diff)
downloaddaffm-8828075fa3a25f37ec79507c0cf5179b76f35948.tar.gz
daffm-8828075fa3a25f37ec79507c0cf5179b76f35948.zip
Add init path substitution
Diffstat (limited to 'docs')
-rw-r--r--docs/daffm.117
-rw-r--r--docs/daffm.md17
2 files changed, 32 insertions, 2 deletions
diff --git a/docs/daffm.1 b/docs/daffm.1
index 25f26e8..200bb91 100644
--- a/docs/daffm.1
+++ b/docs/daffm.1
@@ -119,7 +119,7 @@ Same as shell but it adds a "Press any key to continue" prompt after the command
.SH COMMAND SUBSTITUIONS
-The following pattern (%,%d,%f,%s,%F,%S) are replaced with absolute paths
+The following pattern (%,%d,%f,%s,%F,%S,%0) are replaced with absolute paths
%: File under cursor
@@ -133,6 +133,21 @@ The following pattern (%,%d,%f,%s,%F,%S) are replaced with absolute 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
+
+
+
+.SH 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
+
.SH AUTHORS
Akshay Nair <phenax5@gmail.com>
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 \<phenax5@gmail.com\>