Modern watch
command.
Viddy well, gopher. Viddy well.
- Basic features of original watch command.
- Execute command periodically, and display the result.
- color output.
- diff highlight.
- Time machine mode. 😎
- Rewind like video.
- Go to the past, and back to the future.
- Look back history.
- Save and load history.
- See output in pager.
- Vim like keymaps.
- Search text.
- Suspend and restart execution.
- Support shell alias
- See detail #2 (comment)
- Customize keymappings.
- Customize color.
cargo install viddy
brew install viddy
wget -O viddy.tar.gz https://github.com/sachaos/viddy/releases/download/v1.1.2/viddy-v1.1.2-linux-x86_64.tar.gz && tar xvf viddy.tar.gz && mv viddy /usr/local/bin
Download from release page.
sudo port install viddy
To install Viddy on Windows, first install the Scoop package manager, and then run the commands below.
NOTE: The git package is required in order to add additional Scoop "buckets".
scoop install git
scoop bucket add extras
scoop install extras/viddy
yay -S viddy
Alternatively you can use the AUR Git repo directly
After enabling the community repository:
apk add viddy
asdf plugin add viddy
asdf install viddy latest
asdf global viddy latest
key | |
---|---|
SPACE | Toggle time machine mode |
s | Toggle suspend execution |
b | Toggle ring terminal bell |
d | Toggle diff |
t | Toggle header/title display |
? | Toggle help view |
/ | Search text |
j | Pager: next line |
k | Pager: previous line |
h | Pager: move left |
l | Pager: move right |
Control-F | Pager: page down |
Control-B | Pager: page up |
g | Pager: go to top of page |
Shift-G | Pager: go to bottom of page |
Shift-J | (Time machine mode) Go to the past |
Shift-K | (Time machine mode) Back to the future |
Shift-F | (Time machine mode) Go to more past |
Shift-B | (Time machine mode) Back to more future |
Shift-O | (Time machine mode) Go to oldest position |
Shift-N | (Time machine mode) Go to current position |
Viddy can be used without any configuration. However, if you want to customize the keybindings or default behavior, you can do so.
Install your config file on $XDG_CONFIG_HOME/viddy.toml
On macOS, the path is ~/Library/Application\ Support/viddy.toml
.
[general]
no_shell = false
shell = "zsh"
shell_options = ""
skip_empty_diffs =