Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previous command just like the continue command #10

Open
vinodkumartekarch opened this issue Jul 7, 2020 · 3 comments
Open

Previous command just like the continue command #10

vinodkumartekarch opened this issue Jul 7, 2020 · 3 comments

Comments

@vinodkumartekarch
Copy link

It would be great if you can create a previous command, that can redo the previous step. Its like the opposite of continue step. This way while doing the presentation, if i do some mistake and want to redo the previous step... it can be redone.

@mauricedb
Copy link
Owner

Hi @vinodkumartekarch,

An option to redo the last command would not be to hard to implement. But I was wondering how useful that would be.

The way I understand your question you executed a number of steps and then had a wait. During the wait you made some manual edits and these are wrong and you want those undone. Well in that case just redoing the previous command would not help because the current state is not the same as at the point the last ste was done. So in all likely-hood the instruction would be applied in the wrong way.

If I understand your request correctly you would need to revert all changes back to a known state and then re-apply all instructions up to the current point. My first impression is to use Git for that. As the last step befor the wait stage all changes using a git add *. Then you can just undo the unstaged changes and you are back in a good position. I never tried to automate that so not sure if you can do that with a type command or not.

But then again maybe I am completely misunderstanding your request. If so please clarify.

@vinodkumartekarch
Copy link
Author

vinodkumartekarch commented Jul 7, 2020 via email

@mauricedb
Copy link
Owner

So if I understand correctly the mistake is advancing to far in the playback script and you would like to undo the extra step there so you can undo this and redo later.

Not quite sure how to do that. A Git diff comes to mind but not even sure that would work all that well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants