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

Configurable separator character to replace ':'. Defaults to '#' #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

brockuniera
Copy link

Customizable separator. It could have a better user experience instead of having to edit this file, like overwriting a global shall parameter, but this is pretty usable as is.

Changing this character while save files already exists will break
output until the save files are fixed. It is very easy to fix these
files: just replace the old separator with the new separator.
reminder.plugin.zsh Outdated Show resolved Hide resolved
@@ -1,10 +1,14 @@
TODO_SAVE_TASKS_FILE="$HOME/.todo.sav"
TODO_SAVE_COLOR_FILE="$HOME/.todo_color.sav"

# Using '#' because its pretty uncommon to type
# typeset arrays by default use ':' but that means we can't have iTerm2 clickable URLs!
TODO_SEP="${TODO_SEP:-"\#"}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the default value should still be :, else it will break any existing todo file... Even if I don't know if there is a lot ^^

Suggested change
TODO_SEP="${TODO_SEP:-"\#"}"
TODO_SEP="${TODO_SEP:-":"}"

If you have a good argument against the colon, I am open to change the default to #.
But this would be a breaking change and so must be considered.

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.

None yet

2 participants