feat(summary): add strategy which categorizes current directory only #1264
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
I like to structure my notes in hierarchial manner inside folders. However, the workspace summary creates a summary of the whole workspace, even though I would like to create a summary of only current directory, creating links to subfolder index files. And that is what these modifications do.
What
I added new strategy
current_dir
which creates links to subfolderindex.norg
files and categorizes the regular files in the directory as before. If subdirectory does not contain index.norg file, it is not created and the link is not added.Open points / problems
P.S. This is my first pull request to open source project ever. I hope the changes are not too bad.