gyim / vim-boxdraw

An ASCII box drawing plugin for Vim
MIT License
194 stars 18 forks source link

how to create a rectangle without clean content inside? #2

Closed jackywu closed 2 years ago

jackywu commented 5 years ago

how to create a rectangle without clean content inside?

uzimonkey commented 5 years ago

I was also wondering this. This plugin seemed really useful at first, but it makes it very hard to draw anything. I can't write the label first, because the box drawing overwrites it. I can't use the "draw box with label" command because I don't know how large to draw the box until I write the label. Seems like that's a rather fundamental thing to be missing.

gyim commented 5 years ago

My main use case is to draw small architectural diagrams with this plugin and then convert them into png with Ditaa. I draw some large boxes (modules) with short labels in it, and then connect them with arrows. So I haven't needed this functionality yet.

But I agree that this would be a useful feature. Feel free to create a PR. The drawing logic is in Python, and it is quite easy to extend it with a new command.

On 2019. Apr 28., at 9:42, uzimonkey notifications@github.com wrote:

I was also wondering this. This plugin seemed really useful at first, but it makes it very hard to draw anything. I can't write the label first, because the box drawing overwrites it. I can't use the "draw box with label" command because I don't know how large to draw the box until I write the label. Seems like that's a rather fundamental thing to be missing.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Shane-XB-Qian commented 4 years ago

looks it can workaround by +- then +| thanks @gyim create a wonderful plugin !