mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #178] advice on editor passthrough (like tmux) #140
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#140
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 @tjstebbing on GitHub (Nov 3, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/178
I'm building a little tool for managing a wiki/collection of markdown documents, I'd like to be able to 'embed' $EDITOR in a view, like tmux does. Any advice on how to approach that would be great.
@tjstebbing commented on GitHub (Nov 5, 2018):
chzyer/temux seems to be an example of how to do this using pkg/term .. question would be how to render inside a tview widget ?
@rivo commented on GitHub (Nov 5, 2018):
Can't find much information on
temuxon their GitHub page so I'm not sure what it is.tviewdoesn't have a view to embed other applications. I think implementing this would be a major project by itself. It would probably make more sense to have the tools for this one level deeper, intcellbut I'm not sure if this is ontcell's roadmap.There is
ANSIWriter()which can help you when you pipe the output of other processes intotview.And there is
Application.Suspend()which allows you to stop yourtviewapplication temporarily, to run other processes, and then get back to it.Both are not exactly what you are looking for but they may help.
@tjstebbing commented on GitHub (Nov 5, 2018):
Thanks for the advice!