Eliminate copy-pasting between notes and terminal.
Find marked pane in all tmux sessions and send line under cursor to that pane.
- In a new window create few panes with ssh sessions to different servers;
- Sync input with
setw synchronize-panes
; - Mark one synced pane;
- Go to your notes and send commands to marked pane;
{
"SfinxNT/sentmux.nvim",
lazy = true,
keys = {
{ "<leader>p", "<cmd>SendCommand<CR>", desc = "Send to TMUX" },
},
}
{
"SfinxNT/sentmux.nvim",
lazy = true,
keys = {
{
"<leader>P",
function()
require("sentmux").send_command("echo 'hmm... interesting...'")
end,
desc = "Hmm...",
},
},
}