I have installed visidata and am trying to integrate into my Emacs workflow through term-mode. As a proof of concept, I'm trying to successfully explore the mtcars data set as it would work when started *ansi-term*. That's not good enough for me since I would like to write additional functionality to integrate this into another program in Emacs (ESS).

(term-ansi-make-term "*vd<mtcars>*" "vd" nil "/path/to/mtcars.csv")

When I run this the vd table appears in the vd buffer, but none of the keybindings actually work. What am I missing?

Ideally, when I am done interactively exploring the data in vd, I could press q repeatedly until all "sheets" exit and automatically close the buffer when the process ends. Is there some existing emacs functionality which would make this possible?

  • Maybe I can kill the buffer automatically using something like (let ((livingp (process-live-p (get-buffer-process (get-buffer "*vd<mtcars>*"))))) (when (not livingp) (kill-buffer "*vd<mtcars>*"))? This of course doesn't handle the problem of getting the buffer to show reliably in the first place. – wdkrnls Jul 7 '20 at 0:20

Browse other questions tagged or ask your own question.