redhat-developer / redhat-developer/vscode-xml

Fold/Collapse tags by name independenlty of the tree level

Open
#905 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
328
Forks
101
Avg merge
1d 17h
Merged PRs (30d)
7

Description

I work with recursive XML, that is the same structure appears at different levels of the XML.

Sometimes when working I need to fold those areas manually, and if the XML is big, it takes a lot of time, because folding/collapsing works at certain levels but not with certain tags.

So this is kind of a feature request: allow folding tags by name, independently of the level in the XML tree those tags are, so for this:

<a>
  <b>
    <c>..</c>
  </d>
  <c> ..</c>
</a>

I would like all "c" tags to be folded/collapsed.

Would that be possible?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is identified in the issue. Start by locating the XML folding implementation and its tests, then determine whether folding can target tag names across recursive levels; done means all matching c tags in the example can be collapsed independently of their tree depth.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.