Quickly convert ASCII boxes into more visually appealing extended UTF-8 boxes.
Add to neovim with your favorite package manager:
Plug 'superhawk610/ascii-blocks.nvim'
This plugin provides the :AsciiBlockify
command. It will scan the current
buffer for any ASCII boxes and convert them to their UTF-8 equivalents.
For example, given this input:
+---------+ +---+
| | | | <- smallest
| some | +---+
| text |
| | <- standard
+---------+
+--------------+
| |
+-----+----+ |
| | | |
| +----+---------+
| | <- overlapping
+----------+
generate this output:
┌─────────┐ ┌───┐
│ │ │ │ <- smallest
│ some │ └───┘
│ text │
│ │ <- standard
└─────────┘
┌──────────────┐
│ │
┌─────┼────┐ │
│ │ │ │
│ └────┼─────────┘
│ │ <- overlapping
└──────────┘
© 2022 Aaron Ross, All Rights Reserved.