autoclose-html icon indicating copy to clipboard operation
autoclose-html copied to clipboard

Close tags when user types </

Open Flatta opened this issue 9 years ago • 4 comments

#143.

but I don't know which one is better for key mapping, '/' or '< /'

Flatta avatar Mar 30 '16 06:03 Flatta

I would have a separate command and function for this, if nothing else for organizational purposes.

Other than that I'll run it through some testing and let you know what I find

mattberkowitz avatar Mar 30 '16 22:03 mattberkowitz

Thank you for looking into this.

so, should I add an option that enables / disables this function?

Flatta avatar Mar 31 '16 13:03 Flatta

I would definitely add an option for this.

As far as checking for "/" or "</" I think just "/" would be better, for example I could type "<", go elsewhere in the document and do stuff then come back and type "/". Also you're already checking that the character before the "/" is "<" in the function that executes

mattberkowitz avatar Mar 31 '16 18:03 mattberkowitz

Thanks! I appreciate it.

I've just committed my changes and I left keymaps as it is.

Flatta avatar Apr 01 '16 05:04 Flatta