Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/tofiles #32

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Feat/tofiles #32

wants to merge 10 commits into from

Conversation

bashbunni
Copy link
Owner

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 bashbunni added the enhancement New feature or request label May 29, 2023
@bashbunni bashbunni marked this pull request as draft May 29, 2023 20:30
@bashbunni bashbunni linked an issue May 29, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented May 29, 2023

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

@bashbunni
Copy link
Owner Author

Also consider #30 (comment)

@bashbunni bashbunni linked an issue May 29, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: store these as markdown files instead of db feat: allow editing of entries
1 participant