Skip to content

Neovim plugin to prettify ASCII boxes using extended UTF-8 box drawing characters.

Notifications You must be signed in to change notification settings

superhawk610/ascii-blocks.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-blocks.nvim

Quickly convert ASCII boxes into more visually appealing extended UTF-8 boxes.

demo

Installation

Add to neovim with your favorite package manager:

Plug 'superhawk610/ascii-blocks.nvim'

Usage

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
  └──────────┘

Copyright

© 2022 Aaron Ross, All Rights Reserved.

About

Neovim plugin to prettify ASCII boxes using extended UTF-8 box drawing characters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published