diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-02-07 16:09:01 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-02-07 16:09:01 +0000 |
| commit | 69df42c51bfed4ac25130751a578d6d5487c908a (patch) | |
| tree | 6531ad9a868c1388b756e7111279040e21a0f2a6 /doc | |
| parent | wayland: regression: use correct scaling factor when calling render_resize() (diff) | |
doc: better examples for pipe-* commands
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/foot.ini.5.scd | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/foot.ini.5.scd b/doc/foot.ini.5.scd index 14999a8b..f184eb9a 100644 --- a/doc/foot.ini.5.scd +++ b/doc/foot.ini.5.scd @@ -858,16 +858,14 @@ e.g. *search-start=none*. use *sh -c "command line"* if you need that. Example #1: - # Extract currently visible URLs, let user choose one (via fuzzel), then launch firefox with the selected URL++ -*pipe-visible=[sh -c "xurls | uniq | tac | fuzzel | xargs -r - firefox"] Control+Print* +*pipe-visible=[sh -c "xurls | uniq | tac | fuzzel | xargs -r firefox"] Control+Print* Example #2: - # Write scrollback content to /tmp/foot-scrollback.txt++ -*pipe-scrollback=[sh -c "cat - > /tmp/foot-scrollback.txt"] - Control+Shift+Print* + # Open scrollback contents in Emacs running in a new foot instance++ +*pipe-scrollback=[sh -c "f=$(mktemp) && cat - > $f && foot emacsclient -t $f; rm $f"] Control+Shift+Print* + Default: _none_ *show-urls-launch* |
