Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for HTML node name linked editing, highlighting and renaming #246

Closed
wants to merge 5 commits into from

Conversation

charlespwd
Copy link
Contributor

@charlespwd charlespwd commented Nov 10, 2023

What are you adding in this PR?

(WIP)

linked-editing.mp4

Fixes #241

What did you learn?

  • editor.linkedRangeEditing is false by default and turned off by the vim plugin.

Before you deploy

  • This PR includes a new checks or changes the configuration of a check
    • I included a minor bump changeset
    • It's in the allChecks array in src/checks/index.ts
    • I ran yarn update-configs and committed the updated configuration files
      • If applicable, I've updated the theme-app-extension.yml config
  • I included a minor bump changeset
  • My feature is backward compatible
  • I included a patch bump changeset

@charlespwd charlespwd force-pushed the fix/241-html-node-rename-goodness branch from e7cfd2e to 99507ca Compare November 14, 2023 13:31
Edit both the open and close tags at the same time... it's magical :D
- LiquidTagName highlight provider (if/endif, form/endform, etc.)
- HtmlTagName highlight provider (<main></main>, etc.)
@charlespwd charlespwd force-pushed the fix/241-html-node-rename-goodness branch 3 times, most recently from 0190b06 to 9e38ca1 Compare September 12, 2024 19:28
F2 to rename an HTML open/close pair.
Let's prevent folks from trying to rename things you can't really rename.

Let's also give the right placeholder for complex contexts

e.g. the placeholder for the rename should be the compound name
`product--{{ type }}` for the HTML element with a liquid name.

```
<product-{{ type }}></product--{{ type }}>
```
@charlespwd charlespwd force-pushed the fix/241-html-node-rename-goodness branch from 9e38ca1 to 246db8c Compare September 12, 2024 20:05
@charlespwd
Copy link
Contributor Author

I'm closing this PR. It's getting too big. I'll split it up and make it easier to digest. I'll also use this opportunity to document what I'm doing more for folks to onboard.

@charlespwd charlespwd closed this Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlight and rename html nodes in pairs
1 participant