pjs icon indicating copy to clipboard operation
pjs copied to clipboard

Feat/tofiles

Open bashbunni opened this issue 1 year ago • 2 comments

This no longer writes projects to a SQLite DB and instead writes them to ~/.pjs. It uses os.UserHomeDir to determine the home directory based on your OS; that is $HOME on Unix-based systems and %USERPROFILE% on Windows.

The projects are now directories while the entries are markdown files that are titled based on the date they are created. Pretty much this is just a little CLI notebook built for fun and convenience. If you want to export any of your files to PDF, I'd recommend using Pandoc!

Sorry, I haven't provided any migration scripts for getting your notes from SQLite to plain markdown files.

To fix before merge:

  • [ ] render issues when adding new project
  • [ ] change 'c' mapping to 'n', for new, instead of create
  • [ ] if the project has been created and soft-deleted before, delete previous and archive latest...

bashbunni avatar May 29 '23 20:05 bashbunni

Pull Request Test Coverage Report for Build 5836023228

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-27.8%) to 0.0%

Totals Coverage Status
Change from base Build 4347395533: -27.8%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

github-actions[bot] avatar May 29 '23 20:05 github-actions[bot]

Also consider https://github.com/bashbunni/pjs/issues/30#issuecomment-1410092450

bashbunni avatar May 29 '23 20:05 bashbunni