BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.07k stars 1.47k forks source link

Export and import preferences #3114

Closed arcturus140 closed 3 years ago

arcturus140 commented 5 years ago

Issuehunt badges

Current behavior

preferences cannot be exported. It would be nice if I could import preference settings to a new installation of Boostnote.

Expected behavior

Import and export preferences to back up Boostnote configurations.


IssueHunt Summary ### Backers (Total: $60.00) - [boostio boostio](https://issuehunt.io/u/boostio) ($60.00) ### Submitted pull Requests - [#3146 Created import/export tab](https://issuehunt.io/r/BoostIO/Boostnote/pull/3146) --- #### [Become a backer now!](https://issuehunt.io/r/BoostIo/Boostnote/issues/3114) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/BoostIo/Boostnote/issues/3114) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/BoostIo/Boostnote/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. --- IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members)
issuehunt-oss[bot] commented 5 years ago

@boostio has funded $60.00 to this issue.


bertomoore commented 5 years ago

Hello, I'm interested in adding this feature! I picture the export file to be a JSON file and an "Import/Export" tab placed after "Snippets" in "Preferences". Let me know if this works. Thank you!

Flexo013 commented 5 years ago

@bertomoore That sounds great! Feel free to start working on a pull request.

bertomoore commented 5 years ago

Awesome! I'll start working on this now.

themattgabriel commented 5 years ago

I currently do this manually.

I created a batch file that exports the following directories:

@ECHO off
REM Export boostnote-local
ROBOCOPY C:\Users\<username>\AppData\Local\boost <destination> /MIR /R:1 /W:0 /REG /MT:16 /XA:SH /XJ
REM Export boostnote-files
ROBOCOPY C:\Users\<username>\Boostnote <destination> /MIR /R:1 /W:0 /REG /MT:16
REM Export boostnote-roaming
ROBOCOPY C:\Users\<username>\AppData\Roaming\Boostnote <destination> /MIR /R:1 /W:0 /REG /MT:16 /XA:SH /XJ

Switching the source and destination above simple imports my preferences and notes.

Environment

OS: Windows 10 Version: 1903

ips138 commented 5 years ago
  • Exports %USERPROFILE%\Boostnote

Note that this is pointing to the default notes storage folder. If you changed your default location, and/or added others to give you a n hierarchy of note folders (like I have) then you'd need to take this into account.

I created a folder called Boostnotes into my sync location to collate all my storage locations together. I then added a few folders within, each mapped in Boostnote storage settings. I use each of those as a collection: Coding, Personal, etc. Each collection you can add folders as normal.

HTH