christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

No luck running multiline bash commands. #109

Open c4lliope opened 1 year ago

c4lliope commented 1 year ago
wasmtime run \
  --mapdir /usr::3_2-wasm32-unknown-wasi-full/usr \
  ruby.wasm -- -e 'puts "Hello."'

...comes across as...

$ wasmtime run \
> ruby.wasm -- -e 'puts "Hello."'
christoomey commented 1 year ago

Hmm, it looks to be working on my configuration. For clarity, I'm testing with

❯ echo \
… ❯ "hello"
hello

I visually selected the

echo \
  "hello"

In a vim buffer, and then used <C-f> to send (based on noremap <C-f> :VtrSendLinesToRunner<cr> mapping).

Anything in that seem different from your setup?

c4lliope commented 1 year ago
  I can only guess an edge case, 

  because in my example I used three lines, 

  and line 2 ended up missing. 

  Can you check using 

  ```bash 

  echo \ 

  hello \ 

  again 

  ``` 

  My mapping is `<leader>rl` (run lines). 

   On Sunday, Feb 05, 2023 at 8:34 PM, Chris Toomey ***@***.***> wrote: 

  Hmm, it looks to be working on my configuration. For clarity, I'm testing with 

   ❯ echo \… ❯ "hello"hello 

  I visually selected the 

   echo \  "hello" 

  In a vim buffer, and then used <C-f> to send (based on noremap <C-f> :VtrSendLinesToRunner<cr> mapping). 
  Anything in that seem different from your setup? 
  —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***> 
  ***@***.***": ***@***.***": "EmailMessage","potentialAction": ***@***.***": "ViewAction","target": "https://github.com/christoomey/vim-tmux-runner/issues/109#issuecomment-1418365082","url": "https://github.com/christoomey/vim-tmux-runner/issues/109#issuecomment-1418365082","name": "View Issue"},"description": "View this Issue on GitHub","publisher": ***@***.***": "Organization","name": "GitHub","url": "https://github.com"}}]
christoomey commented 1 year ago

Seems likely that you're hitting some edge case -- sorry about that!

Running with three lines seems to work for me as well:

❯ echo \
… ❯ hello \
… ❯ again
hello again