Skip to content

Improvement: Custom note location#35

Merged
jooaf merged 7 commits intojooaf:mainfrom
robertoash:main
Oct 25, 2025
Merged

Improvement: Custom note location#35
jooaf merged 7 commits intojooaf:mainfrom
robertoash:main

Conversation

@robertoash
Copy link
Contributor

Added custom location for thoth notes. The app will now look for custom locations with this priority:

  1. Environment variable ($THOTH_NOTES_DIR)
  2. Config file (notes_dir = "~/Documents/thoth")
  3. Default: home dir (~)

Backups and clipboard md files are placed in the same location.

robertoash and others added 7 commits October 19, 2025 01:22
Refactor save file path retrieval logic

Refactor file path retrieval to check environment variable, config file, and default path for saving notes and backups.

Refactor ThothConfig structure and default implementation

Remove default implementation for ThothConfig and add notes_path field.

Changed to notes_dir

Remove unnecessary changes

Ran tests and clippy
Added section on customizing notes location with environment variable and config file examples.

Align README

More README fixes
Removed unnecessary whitespace in load and save methods.
@robertoash robertoash requested a review from jooaf as a code owner October 18, 2025 23:35
@robertoash
Copy link
Contributor Author

@jooaf So it seems that the build check failed because of a problem with the CI/CD pipeline and not the code.

ERROR: failed to build: failed to solve: process "/bin/sh -c apt-get update     && apt-get install        -y        --no-install-recommends        --no-install-suggests        git     && apt-get clean     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Let me know if you take a look at the code and see anything weird.

@jooaf
Copy link
Owner

jooaf commented Oct 25, 2025

Hi @robertoash, so sorry I've been on vacation and I'm still traveling but let me take a look at this

@jooaf
Copy link
Owner

jooaf commented Oct 25, 2025

thanks for your contribution :) !

@jooaf jooaf merged commit 482cd40 into jooaf:main Oct 25, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants