Closed Kristinita closed 2 years ago
Type: Question :question:
@yangshun , is any chance, that it will be implemented?
Thanks.
Sorry it's unlikely I will work on this as the use case is very niche. You're welcome to submit Pull Requests or maintain a fork.
We won't be working on this as it's a very niche use case. Apologies.
As a future improvement maybe we could read the file directory into a JS tree object which can then be printed in different kind of outputs. Currently we're traversing the tree and storing each line as a string to be printed
1. Summary
It would be nice, if would be possible print output to Markdown format.
2. Example data
Simple tree structure:
3. Expected result
4. Argumentation
I want to publish my big list of books, so that it can be conveniently referenced. For example, that would be possible show my Astronomy books to other users, I could share link
https://KiraExample.com/KiraBooksList#Astronomy
; Physics books —https://KiraExample.com/KiraBooksList#Physics
and so on.Yes, I know regular expressions. But currently, I have tree → Markdown conversion difficulties, because I can't do, that files would be higher than directories in output (
KiraFirstFile.txt
thanKiraDirectory/
).5. Examples of expected behavior
5.1. Markdown format
It would be very nice, if tree-node-cli can print output in Markdown format directly. For example, if I will run command:
I will get the expected result from section «Expected result»:
5.2. dirs-end
If you are for any reason will not do conversion to Markdown, it would be nice to have at least
--dirs-end
option. Files in this case will always be located above the directories.6. Not helped
I can't find in Internet third-party tools for conversion filesystem tree structure to Markdown format.
7. Do not offer
I don't need to convert filesystem tree structure to Markdown list; please, do not offer it. I need, that directories and subdirectories would be converted to Markdown headers; please, read section «Argumentation».
Thanks.