used just like any ordinary configuration or environment
variable.
- <p>For example, to view the manual, users can either define three
+ <p>For example, to view the manual, users can either define two
macros like the following
<tscreen><verb>
macro generic <F1> "!less -r /path/to/manual" "Show manual"
macro pager <F1> "!less -r /path/to/manual" "Show manual"
-macro index <F1> "!less -r /path/to/manual" "Show manual"
</verb></tscreen>
<p>for <tt/generic/, <tt/pager/ and <tt/index/. The alternative is to
define a custom variable like so:
<tscreen><verb>
-set user_manualcmd = '!less -r /path/to_manual"
+set user_manualcmd = '!less -r /path/to_manual'
macro generic <F1> "$user_manualcmd<enter>" "Show manual"
macro pager <F1> "$user_manualcmd<enter>" "Show manual"
macro index <F1> "$user_manualcmd<enter>" "Show manual"
+</verb></tscreen>
+
+ <p>to re-use the command sequence as in:
+
+<tscreen><verb>
+macro index <F2> "$user_manualcmd | grep '\^[ ]\\+~. '" "Show Patterns"
</verb></tscreen>
<p>Using this feature, arbitrary sequences can be defined once and