How can you sent selected text to a script?
I want to select text with shift+arrows, press e.g. ctrl+c and then the selected text should be sent to my script either as a parameter or as stdin.
Been playing with the function
{execute}
in the nanorc file...I know it's not even close to the solution, I might have to use a complete different function and syntax....but which?
bind ^c "{execute}|tocb" main
*(my script is called tocb
)*
Asked by MrCalvin
(766 rep)
Jul 21, 2025, 12:54 PM
Last activity: Jul 23, 2025, 07:52 PM
Last activity: Jul 23, 2025, 07:52 PM