Replies: 1 comment
-
In a plugin you can use the function getSelection(bufpane)
local cursor = bufpane.Buf:GetActiveCursor()
local selection = cursor:GetSelection()
end Keep in mind there may be multiple cursors, and the code above only handles one. You can probably find the methods you need to handle them how you want in the internal documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to read selected text in shell command (Ctrl+b)?
Something like:
Ctrl+b
and typecat - | grep foo > some_file.txt
or justgrep foo > some_file.txt
Beta Was this translation helpful? Give feedback.
All reactions