Przeglądaj źródła

feat(docs): demo gif and gif generation recipe

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 lat temu
rodzic
commit
0c75e4cc97
5 zmienionych plików z 121 dodań i 1 usunięć
  1. 3 0
      Justfile
  2. 1 1
      README.md
  3. 0 0
      docs/images/screenshots.png
  4. 114 0
      docs/tapes/demo.tape
  5. 3 0
      flake.nix

+ 3 - 0
Justfile

@@ -1,6 +1,9 @@
 all: build test
 all-release: build-release test-release
 
+genDemo:
+    fish_prompt="> " fish_history="eza_history" vhs < docs/tapes/demo.tape
+    nsxiv -a docs/images/demo.gif
 
 #----------#
 # building #

+ 1 - 1
README.md

@@ -16,7 +16,7 @@ A modern, maintained replacement for ls.
 
 </div>
 
-![Screenshots of eza](screenshots.png)
+![eza demo gif](docs/images/screenshots.png)
 
 ---
 

+ 0 - 0
screenshots.png → docs/images/screenshots.png


+ 114 - 0
docs/tapes/demo.tape

@@ -0,0 +1,114 @@
+Output docs/images/demo.gif
+Set Width 1536
+Set Height 512
+Set Shell fish
+Set FontFamily "FantasqueSansM Nerd Font Mono"
+Set FontSize 13
+
+Type "# eza is a modern, maintained replacement for ls."
+Enter
+Type "# "
+Enter
+Type "# It has too many features to cover in a gif, but we'll"
+Enter
+Type "# try to show off some cool stuff :3"
+Enter
+Type "# "
+Enter
+Sleep 4s
+Enter
+
+Type "# Let's start with the basics."
+Enter
+Type "eza src/"
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...but add some icons."
+Enter
+Type "eza -l --icons src/"
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...and how about a grid view."
+Enter
+Type "eza -l --icons --grid"
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...with headers."
+Enter
+Type "eza -l --icons --grid --header"
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...and perhaps some octal permissions."
+Enter
+Type "eza -l --icons --grid --header --octal-permissions"
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...or what about blocksize."
+Enter
+Type "eza -l --icons --grid --header --blocksize"
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...or hyperlinks."
+Enter
+Type "eza -l --icons --grid --header --hyperlink"
+Sleep 2s
+Enter
+Sleep 4s
+Type "# Admittedly, those aren't really very visual in a"
+Enter
+Type "# gif like this >_<"
+Enter
+
+Type "# ...what about a custom time style?"
+Enter
+Type 'eza -l --icons --grid --header --time-style "+%Y/%m/%d - week %W"'
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...or a bit of git status."
+Enter
+Type 'eza -l --icons --grid --header --git'
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# ...or a lot of git."
+Enter
+Type 'eza -l --icons --grid --header --git --git-repos'
+Sleep 2s
+Enter
+Sleep 4s
+
+Type "# Of course, this was only a glimpse off all "
+Enter
+Type "# the features that eza has to offer."
+Enter
+Type "# "
+Enter
+Type "# For more info, checkout the README.md or check"
+Enter
+Type "# out the github repo or the website at https://eza.rocks"
+Enter
+Type "# "
+Enter
+Type "# Thanks for watching <3"
+Enter
+Sleep 4s
+
+# Type 'eza -l --icons --grid --blocksize -l --hyperlink --grid --git-repos -x --time-style "+%Y, %Y, %d%d%d - %a %u" --git --header --icons -Z -@ -o --group --smart-group --no-quotes'
+# Sleep 500ms
+# Enter
+# Sleep 2s

+ 3 - 0
flake.nix

@@ -193,6 +193,9 @@
             convco
             zip
 
+            # For generating demo
+            vhs
+
             cargo-hack
             cargo-udeps
             cargo-outdated