evwilson / slimux.nvim Goto Github PK
View Code? Open in Web Editor NEWSend content from the current Neovim buffer to a configurable tmux pane.
Send content from the current Neovim buffer to a configurable tmux pane.
the send highlighted text function currently sends the full line. Is there a possibility to send only a specific selection (without including the full line) to the other tmux pane?
I'm making a recording of a terminal session using https://asciinema.org/ (recording will be an "asciicast" I guess?) and would love to be able to send the characters 1-by-1 instead of the whole line in one blob :)
Thanks for a great and useful plugin.
I'm getting the following error when attempting to send a visual selection to a tmux pane:
E5108: Error executing lua: ...a/.local/share/nvim/lazy/slimux.nvim/lua/slimux/init.lua:98: b
ad argument #1 to 'gsub' (string expected, got nil)
stack traceback:
[C]: in function 'gsub'
...a/.local/share/nvim/lazy/slimux.nvim/lua/slimux/init.lua:98: in function 'escape'
...a/.local/share/nvim/lazy/slimux.nvim/lua/slimux/init.lua:139: in function 'send'
...a/.local/share/nvim/lazy/slimux.nvim/lua/slimux/init.lua:153: in function <...a/.l
ocal/share/nvim/lazy/slimux.nvim/lua/slimux/init.lua:151>
"Whiteboard.txt" 280L, 10089B
I'm use LazyVim and my slimux.nvim config is:
{
"EvWilson/slimux.nvim",
config = function()
local slimux = require("slimux")
slimux.setup({
target_socket = slimux.get_tmux_socket(),
target_pane = string.format("%s.2", slimux.get_tmux_window()),
})
vim.keymap.set(
"v",
"<leader>r",
slimux.send_highlighted_text,
{ desc = "Send currently highlighted text to configured tmux pane" }
)
vim.keymap.set(
"n",
"<leader>r",
slimux.send_paragraph_text,
{ desc = "Send paragraph under cursor to configured tmux pane" }
)
end,
},
I don't get any errors when sending paragraphs, only visual selections.
My version of Neovim is NVIM v0.11.0-dev-482+g7381f0a1d5
Hope this is useful!
awesome looking plugin!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.