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

Overview shows parent folder when Storage Location is parent folder #155

Open
igorakkerman opened this issue Sep 30, 2024 · 2 comments
Open

Comments

@igorakkerman
Copy link

igorakkerman commented Sep 30, 2024

Hi, thanks for the awesome plugin!

When I set the Storage Location to In the parent folder and select Switch to new storage location, the overview in each folder note lists the items of the parent folder.

For instance, if I have folder A/B, the folder note B.md is correctly located in folder A. When I open B.md, it shows a folder overview. I'd expect the overview to list the files and folders of folder B. Instead, it lists the files and folders of folder A.

@ReWaXx
Copy link

ReWaXx commented Dec 6, 2024

Hello, i found a solution for this problem :

  1. install & enable the templater plugin.

  2. In Folder Note > General > template path, add a file (ex: folder_template)

  3. Content of folder_template :

folderPath: "<% tp.file.folder(true) %>/<% tp.file.title %>"
title: "{{folderName}}"
showTitle: false
depth: 3
includeTypes:
  - folder
  - markdown
  - pdf
style: explorer
disableFileTag: true
sortBy: name
sortByAsc: true
showEmptyFolders: false
onlyIncludeSubfolders: false
storeFolderCondition: true
showFolderNotes: false
disableCollapseIcon: false

This method will solve your poblem and folder-overview will be automatically added when you create a new folder note

@igorakkerman
Copy link
Author

Thanks, @ReWaXx, great workaround for the issue.

I hope that the plugin will implement this behavior as the general default.

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

No branches or pull requests

2 participants