Replies: 1 comment
-
|
In a plugin you can use the function getSelection(bufpane)
local cursor = bufpane.Buf:GetActiveCursor()
local selection = cursor:GetSelection()
endKeep 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
Uh oh!
There was an error while loading. Please reload this page.
-
How to read selected text in shell command (Ctrl+b)?
Something like:
Ctrl+band typecat - | grep foo > some_file.txtor justgrep foo > some_file.txtBeta Was this translation helpful? Give feedback.
All reactions