neovim icon indicating copy to clipboard operation
neovim copied to clipboard

Shell interaction

Open myitcv opened this issue 10 years ago • 3 comments

  • Is there currently anything like this for Vim?
  • Use acme win command as a model
  • Output point is the point after which input is considered
  • Enter transfers text after output point to stdin of shell
  • stdout of shell is placed after output point
  • Pressing enter or printing stdout advances output point
  • If the output point is deleted, recreate as last line
  • Can insert text anywhere
  • Per Russ cox video on acme
  • Jump to last line would take you to last character if no command entered
  • Could execute by reference to vim line number
  • Middle click executes selection in this context
  • Scroll down to show output with some space if possible
  • Cannot enter insert mode around prompt - how does acme enforce this?
  • Unsure what should happen if you try and O on last line (execute current line)? Or enter is command that sends to stdin

myitcv avatar Sep 27 '14 10:09 myitcv

@fmoralesc - FYI

myitcv avatar Oct 11 '14 20:10 myitcv

Hmm... for a couple days, I was experimenting with the idea of implementing a shell in pure vimscript. Doesn't work very well, but... https://gist.github.com/splinterofchaos/4b5134c7a9d33f29cedd

splinterofchaos avatar Nov 02 '14 03:11 splinterofchaos

@splinterofchaos - great! I had a proof of concept working a couple of months ago in Go (!). Very basic, but it worked. I need to resurrect the Go package today however because it has fallen behind.

myitcv avatar Nov 02 '14 09:11 myitcv