LudoPinelli / comment-box.nvim

:sparkles: Clarify and beautify your comments and plain text files using boxes and lines.
MIT License
408 stars 15 forks source link

Extract text out of the box #22

Closed ShinyZero0 closed 10 months ago

ShinyZero0 commented 1 year ago

It'd be nice to have a command to extract text out of the box (remove the box and leave only the text) or quickly yank the entire content of box to edit it or change the box style.

LudoPinelli commented 1 year ago

I guess it would require a kind of parser to be able to do that and I unfortunately don't have the knowledge required right now, but I keep the suggestion for the future!

ShinyZero0 commented 1 year ago

Well i kinda did that for one line texts with a macro dd0dw$dawjdd

LudoPinelli commented 10 months ago

Hello, You can now delete a box (while keeping the text) with the command CBdbox. The box must be entirely selected for it to work though. I keep this issue open until I add a command that yank only the content of a box.