hadronized / mind.nvim

The power of trees at your fingertips.
Other
688 stars 42 forks source link

Use relative path for nodes #59

Closed Palpatineli closed 1 year ago

Palpatineli commented 2 years ago

When persistence.data_dir is set like '\~/note' for the master note, it's expanded first and the full path is saved to the state file when a node is created. Thus when the master note folder is moved between computers with different user names, the previous node files cannot be opened. Can you modify the save process so the path of a node is relative to the user folder, for example, '\~/note/202209131238-note-1.md'?

hadronized commented 1 year ago

This is currently not planned. You will have to modify the paths manually when doing so, or use local trees.

Alternatively, you can open a PR that does the expand on the fly but that’s a bit of work and I don’t intend working on that.