Skip to content

Conversation

@armandsauzay
Copy link
Owner

  • Add ConfigDir to Config struct to properly track config location
  • Rename DefaultEditor to Editor for consistency
  • Add GetEditor() with proper fallback chain:
    1. Config file setting
    2. NOTE_EDITOR env var
    3. VISUAL env var
    4. EDITOR env var
    5. /usr/bin/vi
    6. /bin/ed as final fallback
  • Add --config flag to print config location and contents
  • Fix config file location to use ConfigDir instead of NotesDir
  • Improve directory creation handling

@armandsauzay armandsauzay merged commit 399bdd8 into main Dec 16, 2024
2 checks passed
@armandsauzay armandsauzay deleted the feat/improve-editor-configuration branch December 16, 2024 23:51
@github-actions
Copy link

🎉 This PR is included in version 0.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants