mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-16 17:08:27 +01:00
Small screencast updates
This commit is contained in:
parent
26beaf97a6
commit
0d44993653
5 changed files with 3 additions and 58 deletions
|
@ -27,7 +27,7 @@ While it does not seek to mirror all of *find*'s powerful functionality, it prov
|
|||
|
||||
## Demo
|
||||
|
||||
![Demo](./screencast.svg)
|
||||
![Demo](doc/screencast.svg)
|
||||
|
||||
## Benchmark
|
||||
Let's search my home folder for files that end in `[0-9].jpg`. It contains ~150.000
|
||||
|
|
1
doc/screencast.sh
Normal file
1
doc/screencast.sh
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 113 KiB |
1
doc/screencast.svg
Normal file
1
doc/screencast.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 109 KiB |
|
@ -1,56 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Designed to be executed via svg-term:
|
||||
# svg-term --command="sh screencast.sh" --out screencast.svg --padding=10
|
||||
set -e
|
||||
set -u
|
||||
|
||||
PROMPT="▶"
|
||||
|
||||
enter() {
|
||||
INPUT=$1
|
||||
DELAY=$2
|
||||
|
||||
prompt
|
||||
sleep $DELAY
|
||||
type $INPUT
|
||||
sleep 0.5
|
||||
printf '%b' "\n"
|
||||
eval $INPUT
|
||||
type "\n"
|
||||
}
|
||||
|
||||
prompt() {
|
||||
printf '%b ' $PROMPT | pv -q
|
||||
}
|
||||
|
||||
type() {
|
||||
printf '%b' $1 | pv -qL $[10+(-2 + RANDOM%5)]
|
||||
}
|
||||
|
||||
main() {
|
||||
IFS='%'
|
||||
|
||||
enter "fd" 0
|
||||
|
||||
enter "fd -e md" 1
|
||||
|
||||
enter "fd -e md --exec wc -l" 1
|
||||
|
||||
enter "fd mod" 1
|
||||
|
||||
enter "fd sh" 1
|
||||
|
||||
enter "fd -H sample" 1
|
||||
|
||||
enter "fd -h" 1
|
||||
|
||||
prompt
|
||||
|
||||
sleep 3
|
||||
|
||||
echo ""
|
||||
|
||||
unset IFS
|
||||
}
|
||||
|
||||
main
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 107 KiB |
Loading…
Reference in a new issue