GitXplorerGitXplorer
t

vis-html-edit

public
1 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
3104b757b99d47e0f5139afd3cba26fa1384fe4e

remove vis:info debugging message

committed 5 years ago
Unverified
b945154628de0ac39ef4815adcc1bfd87f79d94c

check for self-closing tags

committed 5 years ago
Unverified
fea60e284d2487b8e3c87ba6e5b7803dbbbf199b

add .gitignore

committed 5 years ago
Unverified
4c3696ea98b07aed35989be9c1971fb2a3c536eb

check file syntax before doing anything

committed 5 years ago
Unverified
c43a265b3d0ab4af03faab6d22294f2e14de62dc

reimplement auto-indent feature

committed 5 years ago
Unverified
4d62d961078d3e836500f982c73ee0b0a252ce2c

update readme

committed 5 years ago

README

The README file for this repository.

Here's a basic, buggy HTML tag auto-completer for vis. It was inspired by this answer on Stack Overflow.

Features

  • Complete an arbitrary tag with > and replace the cursor in the middle of the tag
  • with a second closing bracket (typing another >—"double-closing"), push the closing tag onto the next line and indent

Bugs and issues

  • [x] The cursor isn't placed correctly if a tag is completed on the first line of a brand new file
  • [x] It doesn't know anything about self-closing tags
  • [ ] If you add some properties to the tag before closing it, the properties will be included in the closing tag, too
  • [x] Double-closing tags only places the cursor correctly if the line isn't already indented
  • [x] It doesn't check the syntax of the file to see if it's an html file—it's just always on
  • [ ] Hitting backspace doesn't delete the tag if it was just closed
  • [ ] Using this in a macro may cause unexpected results
  • [ ] And more, I'm sure

I created this because I really like the vis editor and I want to contribute what I can to its development, however small that contribution may be. I also write HTML most of the time, so I wanted to make something that would save me a little typing. I plan to fix some of the bugs listed above to make it better to use in real coding.