p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Re-integrate Emmet Auto-Rename Tag

Open raclim opened this issue 9 months ago • 4 comments

Notes This issue is part of the ongoing work to upgrade CodeMirror from v5 to v6 (see the parent issue for additional context). This also references the develop-codemirror-v6 branch for development, and not the main develop branch.

You can also gain a better understanding of how CodeMirror v6 works by referring to their Reference Manual.

Background and Implementation

In the current p5.js editor, when a user edits an HTML tag the opening and closing tags would be automatically updated to match. This behavior is missing in the CodeMirror v6 branch.

We probably want to update the portion around line 357 in the stateUtils.js file to implement the automatic tag renaming.

Suggestions to Start

  • Check if CodeMirror v6 or Emmet potentially provides a helper extension to handle this.

raclim avatar Feb 13 '26 16:02 raclim

Hi @raclim!

I'd love to work on this issue and submit the fix for it.

Nixxx19 avatar Feb 14 '26 02:02 Nixxx19

I've made a PR that fixes this issue.

Nishthajain7 avatar Feb 22 '26 16:02 Nishthajain7

Hi @Nishthajain7 ! Although the PR looks solid, I've noticed you jumped the queue on this and filed a PR without assignment, and despite another contributor volunteering first. Please don't do this in the future, that would be really appreciated! Thanks so much for your work and patience

ksen0 avatar Mar 09 '26 14:03 ksen0

@ksen0 I’ll follow the process going forward and make sure I’m assigned to the issue before submitting a PR.

Nishthajain7 avatar Apr 10 '26 04:04 Nishthajain7