slimux icon indicating copy to clipboard operation
slimux copied to clipboard

Sending selection by stripping comments

Open dabsingh opened this issue 8 years ago • 1 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.

dabsingh avatar Jul 13 '16 02:07 dabsingh

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.

dvbuntu avatar Jul 13 '16 22:07 dvbuntu