diff --git a/README.org b/README.org index 13ecc67..e220c81 100644 --- a/README.org +++ b/README.org @@ -92,6 +92,12 @@ following example, the ~:session~ argument has been changed to Executing this code block will add a window, ~new-window~, to your session. +You can parameterize scripts by using ~:var variable="value"~. This will add a +line containing =variable="value"= preceding the content body. +: #+begin_src tmux :var name="Ismael" +: echo hello ${name} +: #+end_src + You can exit your tmux session by detaching. The terminal window will close automatically. Ob-tmux will not detect that you have detached. Any commands you send will be sent to the tmux session in diff --git a/changelog.md b/changelog.md index c993116..9aa0156 100644 --- a/changelog.md +++ b/changelog.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated - Possibility to configure terminal using org-babel header arguments. ### Added +- Add possibility to define variables (Thanks to KaiHa!) - Add installation instructions for MELPA. - Add possibility to configure terminal and add options to the terminal. (Thanks to dkrm0!)