mnemonic icon indicating copy to clipboard operation
mnemonic copied to clipboard

Better way to sync mnemonics

Open georgeyord opened this issue 6 years ago • 3 comments

Hi and thanks for the great work. I would like to "sync" my notes between computers so I would like to use a custom path to store my mnemonics. Is this feasible? And if so, how can I achieve this?

georgeyord avatar Jan 25 '19 09:01 georgeyord

The mnemonics are stored as .md files in the local data directory for your OS (so, mine are at ~/.local/share/mn because I'm on Linux; check the directories-rs docs to see the data_local_dir for your OS). So it would definitely be possible to manually sync the mnemonics.

That said, I very much want to make syncing a bit easier. A Reddit commenter suggested creating an option to sync through git, which would be one way to do it. Your suggestion of allowing the user to specify a custom path would also work—and would be much simpler to implement. On the other hand, it would probably require storing configuration variables somewhere to avoid the need to add the custom path to each use of mn.

In any event, I plan to leave this issue open until I've added support for at least one better way to sync mnemonics.

codesections avatar Jan 25 '19 14:01 codesections

Thanks for opening this, @georgeyord.

U007D avatar Jan 27 '19 16:01 U007D

I agree on the configuration file. Maybe the 'common' way of having a dotted configuration file in home folder, something like .mn, could be a solution.

As for the directory, I have already read directories-rs docs and found my way to ~/Library/Application\ Support/mn/ folder which has a notes.md as expected. The strange thing is that this file is empty even though mn show notes shows the expected content. Do you think this is expected?

georgeyord avatar Jan 28 '19 11:01 georgeyord