Use symbolically linked sub-directories like "real" directories.
I love that I can have sub-folder inside a "main" notes folder. I'd really like to be able to create sym-links to other folders and drop them into the parent folder, and have nvUltra see them as "regular" folders. This would make some workflows (notably using shard vs. non-shared directories) possible.
For example:
/shared_dir/shared_dir_notes_folder/ <-- folder i want "inside" my notes foler
/me/notes_folder <- root notes folder
/me/notes_folder/real_subfolder <- "real" sub folder
/me/notes_folder/sym_link_shared_dire_notes_folder <- the sym-link to the shared_dir_notes_folder
-
Due to the way macOS sandboxing works, I'm not sure this will be possible. macOS requires that the *user*, not the program, performs the action that opens a document. In the case of nvUltra, you open the folder, which gives the app permission to access everything inside the folder. So subfolders work just fine, since the subfolder and its contents are contents of the original folder. So nvUltra would not have permission to access `/shared_dir/shared_dir_notes_folder`.
Hypothetically, *if* you opened that shared folder to establish permissions, then it *might* work, but no guarantees, and that could change depending on what Apple does.
We'll have to think through other potential consequences of enabling soft link support, as it could lead to some edge cases of difficulty understanding what the user's actual intent is (e.g. modifying the link to the folder or the folder being linked-to.)
We can consider this, but just be aware that the specific use case you describe *might* not work even if we enable link support.
0 -
I know it might be unrealistic for this feature to work within the app itself -- unfortunately the `ln` command doesn't allow for making hard-links, which is really what I want, or at least puts the responsibility on me/the os, rather then the app, for the sub-folder inclusion stuff.
An other option would be to have multiple folders "open", but all their contents mixed in the side-note-view -- obviously there would be issues with possible duplicate naming, but maybe those top-level-open-folders could just look like sub-folders currently do?
I will keep experimenting with `bindfs` as a way to setup hard-link-like things, and see how nvUltra works with those -- again, I think my requirements are more on me, then on the app itself. :)
Thanks for replying and even considering this request!
0 -
`ln` won't do hard links, but you can still create them.
https://stackoverflow.com/questions/1432540/creating-directory-hard-links-in-mac-os-x
0 -
Sadly the `hln` from brew (from the link you give -- I already read that one! :) ) does not work on more recent OS updates -- I'm on 10.14.5, and the methods shown at that link do not work for me, thus my foray into trying `bindfs`, which is supposed to work with APSF volumes and more recent OS versions... Or it could be something else which isn't working for my particular setup. Thanks for the link!
0 -
So, trying to use the bindfs stuff, via FUSE, does not do what I was hoping for -- it really does "mount" the directory into the other directory, it isn't like a hard-link at all.
So that might be a bust for the "inserting another directory into an existing one" for my purposes. Worse case is that I have to have multiple "folders" open at once in nvUltra -- my ideal is to still just have one window which shows all the folders under it, rather then the multiple-document style display.
Will keep messing around however, and thanks again for the software!
0
Please sign in to leave a comment.
Comments
5 comments