jbyuki / venn.nvim

Draw ASCII diagrams in Neovim
MIT License
967 stars 21 forks source link

Feature request: draw box outside selection #19

Closed alexjuda closed 2 years ago

alexjuda commented 2 years ago

Hi! This plugin is amazing. I'm using it in my work daily.

Would it be possible to enable drawing the box outside the selected block?

My usual workflow is like this:

  1. Write the text I want to surround with a box. Usually multiple words in multiple lines.
  2. Get back to the first line and the first word of the line.
  3. Move one left.
  4. Move one up.
  5. Start selection.
  6. Find the last line/word.
  7. Move one right.
  8. Move one down.
  9. Toggle venn.

If venn was smart enough to offset the box characters by 1 I wouldn't have to remember to do steps (3), (4), (7), and (8). I often use ASCII notes as a drawboard during brainstorming meetings. Any additional cognitive load makes it harder to keep up with the discussion.

jbyuki commented 2 years ago

Hi. Really sorry for the delayed response. I just thought of something, wouldn't it be possible to implement it as a macro? Some other people made extension on venn.nvim, like you can see in the README.