[GH-ISSUE #178] advice on editor passthrough (like tmux) #140

Closed
opened 2026-03-04 01:02:18 +03:00 by kerem · 3 comments
Owner

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.

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.
kerem closed this issue 2026-03-04 01:02:18 +03:00
Author
Owner

@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 ?

<!-- gh-comment-id:435795663 --> @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 ?
Author
Owner

@rivo commented on GitHub (Nov 5, 2018):

Can't find much information on temux on their GitHub page so I'm not sure what it is.

tview doesn'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, in tcell but I'm not sure if this is on tcell's roadmap.

There is ANSIWriter() which can help you when you pipe the output of other processes into tview.

And there is Application.Suspend() which allows you to stop your tview application temporarily, to run other processes, and then get back to it.

Both are not exactly what you are looking for but they may help.

<!-- gh-comment-id:435810303 --> @rivo commented on GitHub (Nov 5, 2018): Can't find much information on `temux` on their GitHub page so I'm not sure what it is. `tview` doesn'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, in `tcell` but I'm not sure if this is on `tcell`'s roadmap. There is [`ANSIWriter()`](https://godoc.org/github.com/rivo/tview#ANSIWriter) which can help you when you pipe the output of other processes into `tview`. And there is [`Application.Suspend()`](https://godoc.org/github.com/rivo/tview#Application.Suspend) which allows you to stop your `tview` application temporarily, to run other processes, and then get back to it. Both are not exactly what you are looking for but they may help.
Author
Owner

@tjstebbing commented on GitHub (Nov 5, 2018):

Thanks for the advice!

<!-- gh-comment-id:435811359 --> @tjstebbing commented on GitHub (Nov 5, 2018): Thanks for the advice!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#140
No description provided.