This version introduces some breaking changes for how and where configuration is stored, as well as changes the default git branch from master
to main
, and making the branch name non-configurable.
- Config is now stored as JSON
- Config is now stored at
$XDG_CONFIG_HOME
, if unset use$HOME/.config/eureka
. This is more inline with where config should be stored main
branch is used by default, and you can't config the branch name anymore. Usegit checkout main
to create a new branch based on our current one.
Just update and run it to go through the first time setup again.
Other changes
- Only allow absolute path for repo
- Only allow to clear entire config instead of just repo (
--clear-config
) - Dependency and docs updates
- Bugfix: Commit and push to stored branch name
- Use git2-rs crate for running git commands
- Output to stdout is changed (because of that ^)
- Use $EDITOR to edit ideas, fall back to vi
- Use $PAGER to view ideas, fall back to less
- Refactor code to be more idiomatic and readable
- Only remove repo/editor if they exist
- Verify chosen editor exists on $PATH before finish setup
- Update deps to latest versions
- Include
Cargo.lock
in binary to make it possible to distribute via Homebrew
- If user inputs empty repo path - ask again
- Make binary resolution work on Windows too
- Remove unused
text_io
dependency
- Use path to vim that's compatible with more operating systems
- Add shorthand flag (
-v
) for viewing stored ideas - Trim all user input
- Abort early if any clear flag is present
- Add colors to output
- Add flag
--view
for viewing stored ideas.
- Remove usage of numbers in selecting your editor which caused confusion.
- After first time setup - do not prompt user for idea.
- The dependency
serde
has been removed. I think it deserves a new release.
- Flags
--clear-editor
and--clear-repo
now actually works