slimux
slimux copied to clipboard
Sending selection by stripping comments
In some cases there can be quite a few comment lines in the selected range and sending the comments to the target pane makes no sense. It would be great to have a flag/argument to SlimuxREPLSendSelection to strip out the comments before sending the selection to the target pane.
If the lines are comments, why is it a problem to send them? And what if you're not sending the lines to an interpreter? You might want to keep the comments. I guess having a flag let's the user choose, but the default should be to send the literal lines without editing.
This sounds like a concern that you might fix at the vim level. Write a macro to temporarily remove the comments, then use slimux, and put the comments back.