baruchel / vim-notebook

A plugin for the Vim editor for handling any interpreter in a Notebook style
MIT License
95 stars 7 forks source link

Three-spaces problem in J #6

Open jonahx opened 7 years ago

jonahx commented 7 years ago

You mention this in the docs. I'm still seeing it despite using the suggested config:

let g:notebook_cmd = '/Applications/j64-804/bin/jconsole'
let g:notebook_stop = "exit ''"
let g:notebook_send0 = "''"
let g:notebook_send = "'VIMJNOTEBOOK'"
let g:notebook_detect = '   VIMJNOTEBOOK'

To clarify the issue, the 3 spaces before every prompt are collected and included with the output. Therefore if I execute a code block with N lines, the first line of the output will include 3*N spaces at the start. Eg,

    x=.7;8;9
    x=.2;x
    *:&.> x

         ┌─┬──┬──┬──┐
│4│49│64│81│
└─┴──┴──┴──┘

The desired behavior would be:

    x=.7;8;9
    x=.2;x
    *:&.> x

┌─┬──┬──┬──┐
│4│49│64│81│
└─┴──┴──┴──┘

Any suggestions?

Thanks!