5 ms·
Viddy: A modern watch command. Time machine and pager etc.
- jeppesen-io 4y agoThis is lovely - pleasing to the eyes and nice features such as time machine I see its in nixpkgs - think I'll alias it to watch right now
- lapser 4y agoYeah, I came across it a while ago, and figured I'd post it here when I ran watch today and viddy came up because I had aliased it when I came across it. I'm not sure how I haven't used watch since then but here we are.
- mftb 4y agoYea, this is cool. I use watch every once in a while. Good find.
- ducktective 4y ago>alias it to watch It's not on-par with `watch` feature-wise. (-e and -g are not implemented) Cool tool btw.
- koolba 4y agoWhat is that logo supposed to be? Looks like a golang gopher getting eye drops while being injected with syringes.
- yissp 4y agoIt's a reference to the film A Clockwork Orange (also where the name "viddy" comes from). https://commons.wikimedia.org/wiki/File:LudovicoMalcolmMcDowellAClockworkOrangetrailer.png#/media/File:LudovicoMalcolmMcDowellAClockworkOrangetrailer.png https://commons.wikimedia.org/wiki/File:LudovicoMalcolmMcDow...
- throwamon 4y agoThe logo does indeed look like a reference to the movie, but A Clockwork Orange is originally a book. Highly recommended btw.
- 0des 4y agoHow many folks know it by the book vs the movie, though?
- bdhcuidbebe 4y ago6.4
- FredPret 4y agoThat gopher looks absolutely wired. Wonder what’s in those eye drops.
- abrugsch 4y agoIt's been a while since I watched the movie, but in "A Clockwork Orange" IIRC they were a hallucinogenic (probably acid) to enhance the horror of what he was being forced to watch, to further traumatize him against the images of ultraviolence in a negative way. so that when he had the desire to carry out acts of ultraviolence after the 'treatment' he had flashbacks to the horrific visions he was subjected to. And being in eyedrops had the dual purpose of not letting his eyes dry out while he was unable to blink due to his eyelids being clamped open (this was a treatment, not a torture...)
- csdvrx 4y agoI'd suggest logging to sqlite to provide later replays and speed estimations at keypoints. It might be nice to also add some cascading signature of the timestamps for tamper evidence (ex: merkle tree) Usecase: storing timestamped proof of execution, automating metrics history User story: "after feature X got implemented, deployment became twice as slow as we can see from the viddy logs".
- shabble 4y agottyrec[1] would be an alternative format that's been around for a while. Would be an interesting feature to see here for recording, and can then be played back/analysed by various other tools. [1] https://en.wikipedia.org/wiki/Ttyrec https://en.wikipedia.org/wiki/Ttyrec
- sachaos 4y agoI didn't know that format. Actually, I'm looking for the solution to record and review that later. It might be fit. Thank you!
- whalesalad 4y agoThis is really neat. Reminds me of `lnav` which is a really awesome way to tail a logfile.
- deleted 4y ago[deleted]
- remram 4y agowatch supports shell aliases if you put the following in your bashrc: alias watch='watch ' You probably want to do the same for sudo. alias [-p] [name[=value] ...] [...] A trailing space in value causes the next word to be checked for alias substitution when the alias is expanded.
- kevincox 4y agoFor zsh you can create a global alias $=" " (I use $ because it is unlikely to be used anywhere but you can use anything and then just do watch $ myalias. IIRC this doesn't work in bash.
- euclaise 4y agoUseful, installed. I'm a bit annoyed at the trend of not having man pages though.
- sapphire_tomb 4y agoAh, so much this! Why do all these new utils not come with a man page? :(
- R0b0t1 4y agoThey tend to have the most random names, too. Name after purpose would be good.
- dewey 4y ago> Name after purpose would be good. That used to be a lot easier when there was not that many tools out there. How many watch alternatives are there by now and how would you name them? watch, watchng, watch2?
- mekster 4y agoIs it really hard to think for a few minutes and you could get a name from a word like "observe" instead?
- oxplot 4y agoThe awesome go-cli package makes it trivial to generate man pages [1] based on the commands/flags. This can be easily added to CI to avoid having to maintain a separate man page. [1]: https://pkg.go.dev/github.com/urfave/cli/v2#App.ToManWithSection https://pkg.go.dev/github.com/urfave/cli/v2#App.ToManWithSec...
- raydiatian 4y agoI am eternally grateful for the Clockwork Orange reference.
- sachaos 4y agoHi, I'm owner of the project. I am honored to be featured on HackerNews. I've been busy and haven't been very active, but I'm trying to resume maintenance. If you have any requests, please mention them in GitHub Issues.
- mkingston 4y agoFunny viddy came up here today. I created this note about watch in my dotfiles just yesterday (edit: probably not watch's fault! oops..): > # TODO: this is ugly, doesn't print colours, is there a modern version? I couldn't get watch to print colours and styles, with the -c switch and forcing colour output on the "inner" command. Viddy just works and I've immediately created an alias to watch, and substituted all my scripted watch usage. The history feature looks interesting and potentially super-useful, and I'll hopefully remember that exists when I have need for such a thing. Thank you, and keep up the great work!
- chrisshroba 4y agoJust curious, would you share the offending command? I’d be interested to take a crack at it.
- mkingston 4y agoI had two commands > watch -c -n 1 -- systemctl --user --state=failed > watch -c -n 1 -- lfs --color yes -c +inodes_use_percent I didn't actually look for colour output for systemctl (yeah.. bad debugging, kinda lazy, but it wasn't very important so I didn't give it too much time). I thought I'd try to reproduce for you and thought I should have a quick look at colour output for systemctl, and came up with: > watch -c -n 1 -- SYSTEMD_COLORS=1 systemctl --user --state=failed which works well. The lfs example still does not; I suspect it's probably ignoring the color arg depending on its environment (I wonder if watch changes the env?- not to imply it would be wrong to do so if so). I feel a bit bad for making it look like this was watch's fault, when it probably isn't. I'll dig into the lfs thing later.
- cloudrkt 4y agoYou can do the diff output with watch by using the -d option. watch -d <command> The rollback feature seems useful.
- deleted 4y ago[deleted]