LostPaul / obsidian-folder-notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
https://lostpaul.github.io/obsidian-folder-notes/
GNU Affero General Public License v3.0
264 stars 11 forks source link

Option to make every new note or canvas a folder #98

Open FlorianWege opened 3 months ago

FlorianWege commented 3 months ago

Hi,

I would like if there was an option to make every new note or canvas a folder automatically. I am using another plugin to control the sorting of folders/files in the binder to make the order type-agnostic; it sorts folders and files purely by name. So I see folders as just an aspect of files. As long as a hierarchical file organization is used, it is quite often the case that I would want to put something below a note/canvas, for example attachments to show within the note or sub concepts or have it extensible for later.

A problem with the distinction between folder and note/canvas is that you cannot easily move files below notes (like CTRL+M) unless you had turned them into a folder priorly or on the other hand jump to folders with CTRL+O. If everything was a folder, it would be much faster and more convenient.

LostPaul commented 2 months ago

This already exists for new folders but not for files yet, thank you for the suggestion and the explanation for why this would be needed. I might add this kind of feature in the next days but I also would want to add a whitelist for file extensions that would automatically turn into a folder note and that it isn't only for canvas and normal notes only. What do you think about that?

FlorianWege commented 2 months ago

Sorry, I confused the repository, I had been using https://github.com/xpgo/obsidian-folder-note-plugin. So was not aware that, here, notes could already be automatically created for new folders. Trying your plugin now.

I think it would be interesting if other files could be automatically turned into folders as well. I had been pondering how to annotate other files seamlessly and be able to externalize them (https://github.com/qawatake/obsidian-binary-file-manager-plugin/issues/13).

For normal notes and canvases I would also like to suggest another mechanism: UI-wise, folders suggest that there is something below them. If everything is turned into a folder, then it looks expandable everywhere even when there is nothing below it. Maybe instead of turning everything into a folder from the getgo, it would be possible to target normal files for folder operations, like if you opend the modal for moving a file (CTRL+M), you could also target normal files there and turn them into folders just-in-time. Alternatively, I guess, the visualization could be changed to display folders differently when there is nothing in them.