-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from babarot/babarot/ui
Add brand new UI for restore functionality (Bubble Tea integration)
- Loading branch information
Showing
29 changed files
with
3,564 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2023 Masaki ISHIYAMA | ||
Copyright (c) 2025 Masaki ISHIYAMA | ||
|
||
MIT License | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
Require gomi | ||
|
||
Output demo.gif | ||
|
||
Set Shell "zsh" | ||
Set FontSize 24 | ||
Set Width 1800 | ||
Set Height 1200 | ||
Set Theme "tokyonight" | ||
Set FontFamily "Hack Nerd Font" | ||
|
||
Hide | ||
Type "setopt interactivecomments" Enter | ||
Type "alias ls='exa --group-directories-first'" Enter | ||
Type "clear" Enter | ||
Show | ||
|
||
## Example 1 | ||
Sleep 1s | ||
Type "# Let's move files to trash" Sleep 0.2s Enter Sleep 0.5s | ||
Type "ls" Sleep 0.2s Enter Sleep 0.5s | ||
Type "gomi ./internal ./main.go" Sleep 0.2s Enter Sleep 0.5s | ||
Type "ls" Sleep 0.2s Enter Sleep 0.5s | ||
Type "# Ok, removed." Sleep 0.2s Enter Sleep 0.5s | ||
Type "# Let's restore files!" Sleep 0.2s Enter Sleep 0.5s | ||
Type "gomi --restore" Sleep 0.2s Enter Sleep 0.5s | ||
|
||
# See the UI | ||
Sleep 1.5s | ||
|
||
# file 1 | ||
Type " " Sleep 2s | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Sleep 0.5s | ||
Type "G" Sleep 100ms | ||
Sleep 0.5s | ||
Type "g" Sleep 100ms | ||
Sleep 1s | ||
Type " " Sleep 100ms | ||
Sleep 1s | ||
|
||
# next file | ||
Type "j" Sleep 100ms | ||
Sleep 1s | ||
|
||
# file 2 | ||
Type " " Sleep 2s | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Type "j" Sleep 100ms | ||
Sleep 0.5s | ||
Type "G" Sleep 100ms | ||
Sleep 0.5s | ||
Type "g" Sleep 100ms | ||
Sleep 1s | ||
Type " " Sleep 100ms | ||
Sleep 1s | ||
|
||
# restore | ||
Type "k" Sleep 100ms | ||
Sleep 1s | ||
Tab@1s | ||
Tab@1s | ||
Sleep 0.5s | ||
Enter | ||
Sleep 0.5s | ||
Type "# Let's check file is back" Sleep 0.2s Enter Sleep 0.5s | ||
Type "ls" Sleep 0.2s Enter Sleep 0.5s | ||
Type "# Now restored!" Sleep 0.2s Enter Sleep 0.5s | ||
Sleep 2s |
Oops, something went wrong.