Skip to content

which event to use for an autocmd to run a callback? #326

Discussion options

You must be logged in to vote

Just as a closing note, I'm not entirely sure how chuck cli command works... but you should try to separate it from the UI concerns. UI (splits) can be closed and opened again and again. But I'd assume you don't want to run chunk cli command multiple times. Also in shred_lines, I assume you're trying to listen to changes in the log file... you shouldn't do that every time UI is opened, you only need to do that once.

Once you separate out those two concerns, a lot of the problems you're facing will disappear.

And about :terminal <cmd> it creates a new terminal buffer, you can store that terminal buffer number somewhere and then just change the buffer of the split to that terminal buffer wh…

Replies: 1 comment 24 replies

Comment options

You must be logged in to vote
24 replies
@andreacfromtheapp
Comment options

@MunifTanjim
Comment options

@andreacfromtheapp
Comment options

@MunifTanjim
Comment options

Answer selected by andreacfromtheapp
@andreacfromtheapp
Comment options

@andreacfromtheapp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants