Comments (12)
Oh interesting, that is a very good idea and would be quite useful, IMO. I generally agree that it is a little confusing what Hide does and maybe needs a bit more documentation or a rename.
Maybe Skip
is a better name? And its counter part is Resume/Continue/Play?
from vhs.
Yep, do the Hide and all the typing and then clear the screen (by typing "clear" and Enter)
from vhs.
Just out of interest, why does Hide
not hide the full command? IMO it's not actually "hiding" the stuff between Hide
and Show
, and for me it's not very obvious that Hide
just disables the typing animation. Maybe a flag like Hide@animations
and/or Hide@all
would do the trick?
This could probably be expanded to Hide@cursor
, Hide@colors
, Hide@stderr
and stuff like that.
from vhs.
Oh okay, got it! Is there any way to hide the full setup? Using the docker env I have to install some packages as they are not already in alpine (like curl), but I'd like to hide them from the user.
from vhs.
The hide command will hide frames from being recorded not the actual content of what is being typed. That is why the README shows that the command is already typed and you do not see the typing in the GIF but the typing does occur on the terminal.
from vhs.
Okay this seems to (kinda) work! The first few frames are still showing the output of apk add curl
, but I think this will eventually be handled by #39 ?
from vhs.
Okay this seems to (kinda) work! The first few frames are still showing the output of
apk add curl
, but I think this will eventually be handled by #39 ?
Yes we'll definitely sort out the frames issue but to prevent it for now I think you can sleep for a little but after you've cleared the screen (but before the show)
from vhs.
But yes soon we'll have it so theres not extra frames cutting in. That is definitely a bug!
from vhs.
[...] I think you can sleep for a little but after you've cleared the screen (but before the show)
Works like a charmbracelet 😉
from vhs.
Maybe Skip is a better name? And its counter part is Resume/Continue/Play?
I'll leave the naming up to you, as I always struggle with it in my own projects 😆
Just another thing I noticed is, that with the clear
command solution, it's currently not possible to hide steps between steps that should be visible. For example, my project is an automated installer, and to showcase it, the terminal needs to be reopened (because the $PATH
changed). To simulate that, I source .profile
after the installer runs, but before the installed program is called. Now I want to hide the source .profile
in the middle.
This would also be handled then :)
from vhs.
Oh interesting, that is a very good idea and would be quite useful, IMO. I generally agree that it is a little confusing what Hide does and maybe needs a bit more documentation or a rename.
Maybe
Skip
is a better name? And its counter part is Resume/Continue/Play?
I too had trouble understanding it initially. Pause
/Resume
recording sounds better to me.
from vhs.
Pause and Resume will probably be the least confusing. Interestingly they behave very similar to Xoff
(^S) and Xon
(^Q).
(Also for what it's worth: compressed video players have to do something similar when doing a seek to a frame between two keyframes: they have to pause the video decoder's output, send it the previous keyframe, followed by all frames up to the frame it wants to show, then re-enable output and only then send it the frame it wants to display)
from vhs.
Related Issues (20)
- On-demand frame capture
- How can I change Shell Prompt HOT 18
- Changing the FontSize affects what is captured on Hide/Show HOT 2
- Outputs ignored if specifying more than one golden file format
- Source 1_example.tape raises "Expected path after Source" HOT 1
- Add option for split terminal HOT 6
- Padding and FontSize not applied via Source
- Add Command to "Set Title" for Window
- vhs freezes when i try to load a file HOT 6
- Automatic download and execution of browser from Google should be noted in README HOT 1
- serve mode not working HOT 10
- Unable to send and record some alt modifier sequences HOT 5
- Output frames don't do anything
- Hide `vhs publish` info when exiting with tape errors HOT 1
- Escaped prompt when running VHS in a nix shell
- Support customizing Padding and Margin.
- Make VHS available as a library to be used in test suites and make possible programmatically detect golden file changes
- Show what is being entered
- Publish command stalls (server unresponsive?) HOT 3
- Show output in real-time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vhs.