Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Feature request: autoclose tags #14

Closed
remyoudemans opened this issue May 18, 2019 · 4 comments
Closed

Feature request: autoclose tags #14

remyoudemans opened this issue May 18, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@remyoudemans
Copy link
Contributor

I think it would make the REPL significantly more encouraging to use if html tags which are not self-closing were automatically closed when finish writing an opening tag.

I would be happy to implement this but I'm struggling to get the REPL running locally.

@Conduitry Conduitry added the enhancement New feature or request label May 18, 2019
@Conduitry
Copy link
Member

This sounds like a good idea. It looks like CodeMirror already has an option for doing this. I'm not sure how much work it would be to also get this happening for other tags like {#if}, {#each}, and {#await}.

@remyoudemans
Copy link
Contributor Author

That CodeMirror option looks perfect! I agree it would be great to have autoclosing on logic blocks too, and I would add autoclosing for brackets/parentheses/other opening and closing syntactical structures.

I would argue that those are all separate issues though, whose additions to the repl shouldn’t be interdependent.

@Conduitry do you mind if I make two more issues for those other autoclosings or would you rather keep them all here?

@Conduitry
Copy link
Member

Yep having separate issues for those other things sounds fine.

@Conduitry
Copy link
Member

Released in 0.0.11 and deployed to https://svelte.dev/repl - Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants