ob-tmux
ob-tmux copied to clipboard
execute line by line or combine them
#+begin_src tmux :session local-vterm :line-mode below :combiner ;
echo hello111
echo hello222
echo hello333
#+end_src
line-mode
- current
- below
- above
can you provide some explanations and comment the function please ?
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