DrawX : ASCII and Unicode Art (etch-a-sketch style)
script karma |
Rating 4/3,
Downloaded by 207 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Richard Bentley-Green |
|
script type |
utility |
|
description |
INTRODUCTION
DrawX makes ASCII-art drawing relatively easy. You can draw boxes and lines, and there is support for easily including special characters in your drawings. As well as supporting standard ASCII characters, it also supports a number of different line-drawing styles courtesy of the wider Unicode character set
There are two (actually quite separate) drawing functions provided;-
1/ Box and ellipse drawing - This allows quick drawing of arbitrary-sized boxes and ellipses, optionally filled with blank space
2/ Tracing - This allows you to move the cursor around and trace a path as you go. Support is provided for joining lines etc
NOTE: This may well work for vim versions prior to 7 - I haven't tried it though
*** If you have any suggestions for improving this, then please let me know. If you think it's rubbish then PLEASE let me know why - it's far more useful than just 'voting it down' (which really doesn't help at all). Contact details are in the top of the README file ***
Here is a (rather uninspiring) example. I know it doesn't display very well because it needs a fixed-width font, but it's better than nothing and should give you an idea...
┌────────────┐ ╔════════════╗
│Here's a Box │ ║Here's a Box ║
└─────┬──────┘ ╚═════╤══════╝
│ │
╰────────┬───────╯
│
╭╌╌╌╌╌╌╌┴╌╌╌╌╌╌╌╮
╎And another Box ╎
╰╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╯
┏━━━━━┓
■┃◍ ◍┃■
┃ ═══ ┃
┗━━╦━━┛
┌──┳━━━╩━━━┳──┐
│ ┌┨ ┏┅┅┅┓ ┠┐ │
│ │┃ ┗┅┅┅┛ ┃│ │
│ │┃ DrawX ┃│ │
│ │┃ ┃│ │
└─┘┃ ┃└─┘
┗┳━┳━┳━┳┛
┃ ┃ ┃ ┃
┃ ┃ ┃ ┃
┃ ┃ ┃ ┃
┗━┛ ┗━┛
|
|
install details |
Just un-tar into ~/.vim/bundle/ as usual and read the README file for config options |
|
script versions (upload new version)
Click on the package to download.
drawx.tar.gz |
02/03/21 |
2021-03-03 |
7.0 |
Richard Bentley-Green |
Improved 'X' placement (see mapping 'x') and special character placement to prevent them being overwritten (in some cases) when moving away from the place position
|
drawx.tar.gz |
29/01/21 |
2021-01-29 |
7.0 |
Richard Bentley-Green |
- Added `s` mapping and `DrawXStyle` command to allow setting of arbitrary styles - you can not set a style based on any single character and use it in all drawing functions
- Fixed a bug whereby box drawing function was not drawing dotted lines and curved corners correctly
|
drawx.tar.gz |
26/01/21 |
2021-01-27 |
7.0 |
Richard Bentley-Green |
- Added ellipse drawing function and associated mappings
- Added fill/no fill option for box drawing; unfortunately, also changed box draw mapping as a result
|
drawx.tar.gz |
03/01/20 |
2021-01-04 |
7.0 |
Richard Bentley-Green |
- Added 'erase' mode toggle
- Added new mappings to allow moving cursor without tracing (but staying in trace mode)
|
drawx.tar.gz |
30/12/20 |
2020-12-31 |
7.0 |
Richard Bentley-Green |
- Documented 'cursor keys' and 'exit trace' mappings
- Added ability to change 'exit trace' and `exit menu` keys (both default to `<esc>`) to avoid conflicts with cursor keys
|
drawx.tar.gz |
20/11/20 |
2020-11-21 |
7.0 |
Richard Bentley-Green |
Initial upload |
ip used for rating: 34.239.150.57
|