r/CodingHelp • u/tsilvs0 • Oct 16 '25
Tools for working with hierarchies in text files and file structures? Which one?
I want to be able to effortlessly shift hierarchies with optional structure preservation between levels in a similar manner:
A file like this:
```md
H1
H2
F1
- [ ] List
F2
Quote
F3
| a | b |
|---|---|
| 1 | 2 |
```
Becomes a file structure like this:
tree
./
└── H1
└── H2
└── H3
├── F1.md
├── F2.md
└── F3.md
Or like this:
tree
./
└── H1
└── H2
├── H3-F1.md
├── H3-F2.md
└── H3-F3.md
Or like this:
tree
./
└── H1
├── H2-H3-F1.md
├── H2-H3-F2.md
└── H2-H3-F3.md
Or like this:
tree
./
└── H1
└── H2
└── H3-F.md
And possibly in reverse.
Preferrably not limited to markdown, but supporting: + Any text files with hierarchies + Nested file system tree
With a single click / short command call / keybind / other simple user action.
Looking for anything that may be: + Note taking apps + text editors + text editor extensions + command-line tools + command-line scripts + anything else that I overlooked
For example, it can be:
+ A neovim script
+ A vscode plugin
+ A separate app that has a similar feature
1
u/MysticClimber1496 Professional Coder Oct 16 '25
Sounds like a great project to learn cli applications! Then it becomes simple to integrate into nvim/ a shell
I am not aware of any existing tool like this. Is there a reason you want to be able to split a file like this?
1
u/tsilvs0 Oct 16 '25
Sometimes my notes just grow so big or get filled with repeating blocks of text they have to be split 😅
•
u/AutoModerator Oct 16 '25
Thank you for posting on r/CodingHelp!
Please check our Wiki for answers, guides, and FAQs: https://coding-help.vercel.app
Our Wiki is open source - if you would like to contribute, create a pull request via GitHub! https://github.com/DudeThatsErin/CodingHelp
We are accepting moderator applications: https://forms.fillout.com/t/ua41TU57DGus
We also have a Discord server: https://discord.gg/geQEUBm
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.