Skip to content

Commit

Permalink
feat: update demo to showcase new features
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Apr 13, 2024
1 parent b33aa2f commit 5c1b7ae
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Yazi is a blazing fast file manager for the terminal. This plugin allows you to open yazi in a floating window in neovim.

<https://github.com/mikavilpas/yazi.nvim/assets/300791/4640cb54-efad-47b5-9157-735e78bf0c43>
<https://github.com/mikavilpas/yazi.nvim/assets/300791/c7ff98ee-54d6-4ad0-9318-903e4b674f84>

## Features

Expand Down
74 changes: 69 additions & 5 deletions demo/demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,86 @@ Set Height 600
Hide
Type "nvim ./file.txt" Enter
Sleep 1s
Enter
Escape
Space
Type "snd" # hide all notifications from my LazyVim
Type "" Escape # close any notifications

Show
Sleep 2.5s
Sleep 1s

Type "i" Enter
Type "Welcome to yazi.nvim!" Enter
Sleep 1s
Type "Let's open another file with yazi." Escape
Type "Let's open a couple of files with yazi." Escape
Sleep 2.5s


Type@800ms ":Yazi" Enter
Sleep 2.5s
# open yazi
Up
Sleep 2.5s

# select ./file-1.txt and open it with Enter
Down
Sleep 0.8s
Enter
Sleep 2s

Type "Go" Enter Enter
Sleep 0.5s
Type "Besides opening in the current buffer," Enter
Type "files can also be opened in splits." Enter
Type "Now let's open a file in a vertical split." Escape
Sleep 1s

# open yazi
Up
Sleep 2s

# select ./file-2.txt
Down
Sleep 0.8s
# open in vertical split
Ctrl+V
Sleep 1s
Type "Go" Enter Enter
Sleep 0.5s
Type "Let's open the next file in a horizontal split." Escape
Sleep 0.5

# open yazi
Up
Sleep 2s

# select ./file-1.txt
Down
Sleep 0.8s
# open in horizontal split
Ctrl+S
Sleep 2s

Type "Go" Enter Enter
Sleep 0.5s
Type "Yazi can also select multiple files" Enter
Type "with <space> or <c-a>." Enter
Type "This will place them in the quickfix list." Enter
Sleep 0.5
Type "Let's see what that looks like." Escape
Sleep 1

# close the new split windows in order to make room for the quickfix list
Space
Type "wd"
Sleep 0.2
Space
Type "wd"
Sleep 0.2

# open yazi
Up
Sleep 2s
Ctrl+A
Sleep 1s
Enter

Sleep 0.5
3 changes: 3 additions & 0 deletions demo/file-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is the first file.

What a great place to start a wonderful demo!
2 changes: 2 additions & 0 deletions demo/file-3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TODO: come up with an
actually funny vim joke for the demo 🤔
Empty file removed demo/file.txt
Empty file.

0 comments on commit 5c1b7ae

Please sign in to comment.