ob-tmux icon indicating copy to clipboard operation
ob-tmux copied to clipboard

execute line by line or combine them

Open pcompassion opened this issue 2 years ago • 2 comments

#+begin_src tmux :session local-vterm :line-mode below :combiner ;
echo hello111
echo hello222
echo hello333
#+end_src

line-mode

  • current
  • below
  • above

pcompassion avatar Aug 23 '23 14:08 pcompassion

can you provide some explanations and comment the function please ?

flintforge avatar Oct 23 '23 22:10 flintforge

I use org file to write project setup history / instruction.

Often have to incrementally write the document, by executing lines.

:line-by-line current executes code at cursor (on 2nd thought, i could have just created a function so that I can bind a key, so I don't have to switch the mode of operation whether to execute a line or a block of code

"below" would excute codes from cursor line to the remaining lines

i found sending multiple lines are not recognized as multiple commands so i added :combiner to do something like cmd1 && cmd2

pcompassion avatar Oct 24 '23 04:10 pcompassion