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

Current board's folder as default new note folder and customizable new note folder for a single board #1052

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HamzaBenyazid
Copy link

@HamzaBenyazid HamzaBenyazid commented Sep 23, 2024

Previous behavior

  1. When Note folder setting is left as Default folder and a new note is created from a card, the note gets created in the root dir of the vault, I don't think this is the appropriate default behavior as most users would expect it to get created in the same folder as the kanban board.
  2. There is no way to set a default folder for a single kanban board, the only existing option is to set a global folder for notes, which doesn't look great in case of having multiple boards in different folder.

New Behavior

  1. When Note folder setting is left as Default folder and a new note is created from a card, the default behavior is to create it in the same folder as the board.
  2. You can set the new note folder for a single kanban board by:
    - Openning the board as markdown
    - Creating a new property with name new-note-folder. The values should be the path to the folder starting from your vault as root. For example if you have inside your vault a folder called projects with a nested folder named project-x the value should be just project/project-x
image
  1. The local property new-note-folder has higher priority than the value in the Note folder setting.

added a way to customize a single board's new note default folder
@HamzaBenyazid
Copy link
Author

Closing this as the customization was already working, and making the current folder as default folder can be configured in the settings

@adamsmd
Copy link

adamsmd commented Dec 9, 2024

For those who come here looking for this feature and who (like I) might be initially confused by @HamzaBenyazid's comment: When Obsidian Kanban's "Note Folder" is set to "Default Folder", where new notes are put is control by Obsidian's (not the plugin's) "Default location for new notes", which can be the Vault (i.e., root) folder or "Same folder as current file" (which achieves the effect of this pull-request). To set this, go to Obsidien's (not the plugin's) settings then "Files and links" -> "Default location for new notes" -> "Same folder as current file".

Note that there is an open feature request (#865), which the pull-request closer supports, to add an option to override the global setting for Kanban, so if the pull-request author wishes to add options controlling this behavior, it might get accepted.

@HamzaBenyazid
Copy link
Author

Hi @adamsmd, sorry for the delay in responding—I just saw your comment. I originally closed this PR because the "Default Folder" setting solved my issue, and I hadn't considered other use cases requiring more customization. After reading your comment, I understand the need for this feature, so I'm re-opening the PR.

@HamzaBenyazid HamzaBenyazid reopened this Mar 20, 2025
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

Successfully merging this pull request may close these issues.

2 participants