mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-23 01:40:12 -05:00
doc: better examples for pipe-* commands
This commit is contained in:
parent
bc8c2e0112
commit
69df42c51b
2 changed files with 5 additions and 7 deletions
|
|
@ -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*
|
||||
|
|
|
|||
2
foot.ini
2
foot.ini
|
|
@ -158,7 +158,7 @@
|
|||
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||
# pipe-selected=[xargs -r firefox] none
|
||||
# pipe-command-output=[sh -c "cat - > /tmp/foot-cmd-out.txt"] none # Write output of last command to /tmp/foot-cmd-out.txt (requires shell integration)
|
||||
# pipe-command-output=[wl-copy] none # Copy last command's output to the clipboard
|
||||
# show-urls-launch=Control+Shift+o
|
||||
# show-urls-copy=none
|
||||
# show-urls-persistent=none
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue