mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #164] Cooperate with Vim #130
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#130
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 @JesseAldridge on GitHub (Sep 8, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/164
Hi, I'm using tview to build a shared note-taking tool: https://github.com/JesseAldridge/dentist
I'm wondering if it's possible to get tview to work well with Vim.
Below is a test script. Vim gets launched successfully but the input seems to be conflicting with tview somehow and it doesn't work well.
I'm new to Go and tview so maybe I'm doing something wrong.
@JesseAldridge commented on GitHub (Sep 8, 2018):
Actually, looks like I just need to wrap the vim call with
StopandRun:@rivo commented on GitHub (Sep 10, 2018):
I know you closed this already but while
Stop()andRun()should probably work, there is a function dedicated to these kind of situations:Suspend().I thought this may be useful to you.
@JesseAldridge commented on GitHub (Sep 10, 2018):
Oh cool. Thanks for letting me know.
@JesseAldridge commented on GitHub (Sep 10, 2018):
Actually I'm still seeing some odd behavior. Everything works well when I use
vimas the editor. But if I usesublinstead, after I finish editing the file and come back to the terminal my next keystroke seems to get dropped.In the demo below I run the script, hit return to open sublime, close the text file, select the terminal, press return again (nothing happens), press return again (sublime opens again). I get similar behavior if I use
subl -winstead ofsubl.sublis configured like so: https://www.sublimetext.com/docs/3/osx_command_line.htmlAny idea what the issue could be?
@JesseAldridge commented on GitHub (Sep 10, 2018):
I should probably open a separate issue for this: https://github.com/rivo/tview/issues/165