From 0d449936536c7d74b00eddcbe556e6193784bd65 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 28 Jan 2018 13:32:26 +0100 Subject: [PATCH] Small screencast updates --- README.md | 2 +- doc/screencast.sh | 1 + doc/screencast.svg | 1 + screencast.sh | 56 ---------------------------------------------- screencast.svg | 1 - 5 files changed, 3 insertions(+), 58 deletions(-) create mode 100644 doc/screencast.sh create mode 100644 doc/screencast.svg delete mode 100644 screencast.sh delete mode 100644 screencast.svg diff --git a/README.md b/README.md index 154bb39..912c731 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/doc/screencast.sh b/doc/screencast.sh new file mode 100644 index 0000000..74cb5fa --- /dev/null +++ b/doc/screencast.sh @@ -0,0 +1 @@ +ffdCONTRIBUTING.mdCargo.lockCargo.tomlLICENSE-APACHELICENSE-MITREADME.mdappveyor.ymlbuild.rscici/before_deploy.bashdocdoc/fd.1doc/screencast.shdoc/screencast.svgscreencast.svgsrcsrc/app.rssrc/execsrc/exec/command.rssrc/exec/input.rssrc/exec/job.rssrc/exec/mod.rssrc/exec/token.rssrc/exit_codes.rssrc/fshelpersrc/fshelper/mod.rssrc/internal.rssrc/lscolorssrc/lscolors/mod.rssrc/main.rssrc/output.rssrc/walk.rssrc/windows.rsteststests/testenvtests/testenv/mod.rstests/tests.rsfdappfdsfdshfdsh--typefdsh--typefilefd-fd-efd-emfd-emdfd-emd--execfd-emd--execwcfd-emd--execwc-l356README.md20CONTRIBUTING.mdfd--fd--excludefd--excludesrcfd'^[A-Z]'fd--hiddenfd--hiddensample.git/hooks/applypatch-msg.sample.git/hooks/commit-msg.sample.git/hooks/fsmonitor-watchman.sample.git/hooks/post-update.sample.git/hooks/pre-applypatch.sample.git/hooks/pre-commit.sample.git/hooks/pre-push.sample.git/hooks/pre-rebase.sample.git/hooks/pre-receive.sample.git/hooks/prepare-commit-msg.sample.git/hooks/update.samplefdafdapfdsh-fdsh--fdsh--tfdsh--tyfdsh--typfdsh--typeffdsh--typefifdsh--typefilfd-emd-fd-emd--efd-emd--exfd-emd--exefd-emd--execwc-fd--efd--exfd--excfd--exclfd--exclufd--excludfd--excludesfd--excludesrfd'fd'^fd'^[fd'^[Afd'^[A-fd'^[A-Zfd'^[A-Z]fd--hfd--hifd--hidfd--hiddfd--hiddensfd--hiddensafd--hiddensamfd--hiddensampfd--hiddensampl \ No newline at end of file diff --git a/doc/screencast.svg b/doc/screencast.svg new file mode 100644 index 0000000..3e5604f --- /dev/null +++ b/doc/screencast.svg @@ -0,0 +1 @@ +ffdCONTRIBUTING.mdCargo.lockCargo.tomlLICENSE-APACHELICENSE-MITREADME.mdTODOappveyor.ymlbuild.rscici/before_deploy.bashdocdoc/fd.1doc/screencast.shdoc/screencast.svgfd-alternatives.mdfd-demo.mdfd-release-todo.mdregression.shsrcsrc/app.rssrc/execsrc/exec/command.rssrc/exec/input.rssrc/exec/job.rssrc/exec/mod.rssrc/exec/token.rssrc/exit_codes.rssrc/fshelpersrc/fshelper/mod.rssrc/internal.rssrc/lscolorssrc/lscolors/mod.rssrc/main.rssrc/output.rssrc/walk.rssrc/windows.rsteststests/testenvtests/testenv/mod.rstests/tests.rsfdmodfdshfd-fd--fd--typefd--typedfd-efd-emfd-emdfd-emd--execfd-emd--execwcfd-emd--execwc-l356README.md6fd-alternatives.md42fd-demo.md20CONTRIBUTING.md40fd-release-todo.mdfd'^\w{4}\b'fd--hiddenfd--hiddensample.git/hooks/applypatch-msg.sample.git/hooks/commit-msg.sample.git/hooks/post-update.sample.git/hooks/pre-applypatch.sample.git/hooks/pre-commit.sample.git/hooks/pre-push.sample.git/hooks/pre-rebase.sample.git/hooks/pre-receive.sample.git/hooks/prepare-commit-msg.sample.git/hooks/update.samplefdmfdmofdsfd--tfd--tyfd--typfd-emd-fd-emd--efd-emd--exfd-emd--exefd-emd--execwc-fd'fd'^fd'^\fd'^\wfd'^\w{fd'^\w{4fd'^\w{4}fd'^\w{4}\fd'^\w{4}\bfd--hfd--hifd--hidfd--hiddfd--hiddensfd--hiddensafd--hiddensamfd--hiddensampfd--hiddensampl \ No newline at end of file diff --git a/screencast.sh b/screencast.sh deleted file mode 100644 index 2ca23e1..0000000 --- a/screencast.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/screencast.svg b/screencast.svg deleted file mode 100644 index 2523702..0000000 --- a/screencast.svg +++ /dev/null @@ -1 +0,0 @@ -ffdCONTRIBUTING.mdCargo.lockCargo.tomlLICENSE-APACHELICENSE-MITREADME.mdappveyor.ymlbuild.rscici/before_deploy.bashdocdoc/fd.1screencast.shscreencast.svgsrcsrc/app.rssrc/execsrc/exec/command.rssrc/exec/input.rssrc/exec/job.rssrc/exec/mod.rssrc/exec/token.rssrc/exit_codes.rssrc/fshelpersrc/fshelper/mod.rssrc/internal.rssrc/lscolorssrc/lscolors/mod.rssrc/main.rssrc/output.rssrc/walk.rssrc/windows.rsteststests/testenvtests/testenv/mod.rstests/tests.rsfd-fd-efd-emfd-emdfd-emd--execfd-emd--execwcfd-emd--execwc-l356README.md20CONTRIBUTING.mdfdmodfdshfd-Hfd-Hsample.git/hooks/applypatch-msg.sample.git/hooks/commit-msg.sample.git/hooks/post-update.sample.git/hooks/pre-applypatch.sample.git/hooks/pre-commit.sample.git/hooks/pre-push.sample.git/hooks/pre-rebase.sample.git/hooks/pre-receive.sample.git/hooks/prepare-commit-msg.sample.git/hooks/update.samplefd-h-p,--full-pathSearchfullpath(default:file-/dirnameonly)-0,--print0Separateresultsbythenullcharacter-h,--helpPrintshelpinformation-V,--versionPrintsversioninformationOPTIONS:-d,--max-depth<depth>Setmaximumsearchdepth(default:none)-t,--type<filetype>...Filterbytype:f(ile),d(irectory),(sym)l(ink)-e,--extension<ext>...Filterbyfileextension-x,--exec<cmd>...Executeacommandforeachsearchresult-E,--exclude<pattern>...Excludeentriesthatmatchthegivenglobpattern-c,--color<when>Whentousecolors:never,*auto*,always-j,--threads<num>Setnumberofthreadstouseforsearching&executingARGS:<pattern>thesearchpattern,aregularexpression(optional)<path>...therootdirectoryforthefilesystemsearch(optional)fd-emd-fd-emd--fd-emd--efd-emd--exfd-emd--exefd-emd--execwfd-emd--execwc-fdmfdmofdsfd-Hsfd-Hsafd-Hsamfd-Hsampfd-Hsamplfd6.2.0USAGE:fd[FLAGS/OPTIONS][<pattern>][<path>...]FLAGS:-H,--hiddenSearchhiddenfilesanddirectories-I,--no-ignoreDonotrespect.(git)ignorefiles--no-ignore-vcsDonotrespect.gitignorefiles-s,--case-sensitiveCase-sensitivesearch(default:smartcase)-i,--ignore-caseCase-insensitivesearch(default:smartcase)-a,--absolute-pathShowabsoluteinsteadofrelativepaths-L,--followFollowsymboliclinks \ No newline at end of file