mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[GH-ISSUE #107] Record already opened vim session #698
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#698
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hpurmann on GitHub (Jun 22, 2015).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/107
I want to record a particular thing inside of vim (e.g. this neomake to syntastic comparison which is currently just a gif).
To be as minimal as possible, I don't want to include opening neovim and jumping to the right line.
Is there a way to record a certain terminal window which is already opened? I imagine this could be great in combination with tmux (remote record certain pane).
@ku1ik commented on GitHub (Jun 22, 2015):
Try
asciinema rec -c "vim file +123". Orasciinema rec -c "tmux attach -t session1".@ku1ik commented on GitHub (Jun 22, 2015):
You could first zoom a pane of your choosing (tmux has this) and then
asciinema rec -c "tmux attach -t session1".@hpurmann commented on GitHub (Jun 22, 2015):
Yeah this sounds like a really good idea. I'll try that soon and give feedback. Anyway: great tool, thanks!
@hpurmann commented on GitHub (Jun 22, 2015):
Works like a charm. But for some reason there seems to be an issue with the playback mode. I get 1;2 printed inside of vim as some line number. After detaching, I see that as well.
However, when looking at the uploaded cast, it looks just fine. Is this a known issue?
@hpurmann commented on GitHub (Jun 22, 2015):
In regular vim, this issue doesn't appear on playback. Really strange but probably nothing associated with asciinema. Closing this issue now. Thanks for your help.
@ku1ik commented on GitHub (Jun 22, 2015):
I know about this issue. It's a terminal itself putting these characters on vim's stdin (emulating user typing them) so vim can read and interpret them. It's a way of asking the terminal for its parameters. During playback asciinema sends the same escape codes that were emmited by vim but doesn't read from stdin so they stay in your prompt after asciinema finishes playback. The same thing happens for
script/scriptreplaytools.I'm opening a new issue to keep track of this.