A plugin for lighttable that allows arbitrary text to be sent to a tmux session
Simply highlight text and run the command Send selected text to tmux
.
For maximum awesome, consider adding the following to your user keymap:
:editor.shell {"pmeta-enter" [:lt.plugins.tmux/send-selected-text-to-tmux]}
Which will give you an eval ability inside shell files.
You can essentially eval anything that has a REPL/interpreter on the command line: sql, matlab, etc...
By default the target is ":" which is the last active tmux session (I think).
If you need to change it just use the Change the current session id
command.
Please