Skip to content

Commit

Permalink
Add options guide to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
babarot committed Apr 2, 2023
1 parent 2ed6b90 commit 00da9eb
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 13 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ $ (paths) | cd
```

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/4442708/229297681-f6c4404d-ebb9-463e-81b1-d80408abd1ba.gif">
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/4442708/229297676-2ddd4593-9ac6-4933-96fc-a2b0801179e6.gif">
<img alt="" src="https://user-images.githubusercontent.com/4442708/229297681-f6c4404d-ebb9-463e-81b1-d80408abd1ba.gif" width="600">
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/4442708/229368007-071958e1-77a6-4fd1-b371-535d1dac46f6.gif">
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/4442708/229368002-dd1c0c4c-6b53-4908-8b88-e00dc4e884ff.gif">
<img alt="piping" src="https://user-images.githubusercontent.com/4442708/229368007-071958e1-77a6-4fd1-b371-535d1dac46f6.gif" width="600">
</picture>

## Options
Expand Down Expand Up @@ -208,7 +208,13 @@ desc | a description for the option
func | a command which returns directory list (e.g. `ghq list --full-path`)
condition | a command which determine that the option should be implemented or not (e.g. `which ghq`)

<img width="600" alt="" src="https://user-images.githubusercontent.com/4442708/229298741-236f2920-cde2-4184-9fd3-72849af7a223.png">
<!-- <img width="600" alt="" src="https://user-images.githubusercontent.com/4442708/229298741-236f2920-cde2-4184-9fd3-72849af7a223.png"> -->

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/4442708/229365175-aecfe844-cbd7-4ee2-87a6-ea8471ac9b6f.gif">
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/4442708/229365177-6c8d6056-9ba3-4f22-ba28-48f3991f9f98.gif">
<img alt="options" src="https://user-images.githubusercontent.com/4442708/229365175-aecfe844-cbd7-4ee2-87a6-ea8471ac9b6f.gif" width="600">
</picture>

enhancd loads these `config.ltsv` files located in:

Expand Down
53 changes: 53 additions & 0 deletions docs/options.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Output options.gif

Set Theme "TokyoNight"
Set Theme "TokyoNightLight"

Set FontSize 40
Set Width 1800
Set Height 800

Set Shell zsh

Hide
Type `export PROMPT="%F{blue}%c%f %# "` Enter
Type "source $PWD/init.sh" Enter
Type "export ENHANCD_FILTER=fzy:fzf:peco:zf:sk" Enter
Type "export ENHANCD_DIR=$PWD/docs" Enter
Type "alias vim='nvim -u NONE'" Enter
Type "cd ~" Enter
Ctrl+L
Show

Set PlaybackSpeed 0.2

Sleep 1s
Type "cd --help" Sleep 1s Enter
Sleep 1s

Sleep 1s
Type "# You can add new option as you like by editing config file!" Sleep 1s Ctrl+C
Enter Enter
Type "vim ~/.config/enhancd/config.ltsv" Sleep 1s Enter
Type "i"
Type `short:-G long:--ghq desc:Show ghq list func:ghq list --full-path condition:which ghq` Sleep 1s
Escape
Type@300ms ":wq" Sleep 1s Enter

Sleep 1s
Enter Enter
Type "cd --help" Sleep 1s Enter
Sleep 1s

Type "# ghq option has been added! Let's try it out" Sleep 1s Ctrl+C
Enter Enter
Sleep 1s
Type "cd --ghq" Sleep 1s Enter
Sleep 1s
Type "enhancd" Sleep 1s Enter

# end
Enter Enter Enter
Sleep 500ms
Type "END."
Sleep 2
14 changes: 5 additions & 9 deletions docs/piping.tape
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
Output inputs.gif

# Dark theme
#Set Theme { "name": "Whimsy", "black": "#535178", "red": "#ef6487", "green": "#5eca89", "yellow": "#fdd877", "blue": "#65aef7", "magenta": "#aa7ff0", "cyan": "#43c1be", "white": "#ffffff", "brightBlack": "#535178", "brightRed": "#ef6487", "brightGreen": "#5eca89", "brightYellow": "#fdd877", "brightBlue": "#65aef7", "brightMagenta": "#aa7ff0", "brightCyan": "#43c1be", "brightWhite": "#ffffff", "background": "#29283b", "foreground": "#b3b0d6", "selection": "#3d3c58", "cursor": "#b3b0d6" }

# Light theme
#Set Theme { "name": "Spring", "black": "#000000", "red": "#ff4d83", "green": "#1f8c3b", "yellow": "#1fc95b", "blue": "#1dd3ee", "magenta": "#8959a8", "cyan": "#3e999f", "white": "#ffffff", "brightBlack": "#000000", "brightRed": "#ff0021", "brightGreen": "#1fc231", "brightYellow": "#d5b807", "brightBlue": "#15a9fd", "brightMagenta": "#8959a8", "brightCyan": "#3e999f", "brightWhite": "#ffffff", "background": "#ffffff", "foreground": "#4d4d4c", "cursor": "#f8aba6" }
Output piping.gif

Set Theme "TokyoNight"
Set Theme "TokyoNightLight"

Set FontSize 45
Set FontSize 40
Set Width 1800
Set Height 1000
Set Height 800

Set Shell zsh

Expand All @@ -35,6 +30,7 @@ Up@200ms 2 Sleep 1s
Type "dot" Sleep 1s Enter

# Second
Enter Enter
Sleep 1s
Type "echo ~/src/github.com/b4b4r07/enhancd | cd" Sleep 1s Enter
Sleep 1s
Expand Down

0 comments on commit 00da9eb

Please sign in to comment.