-
Notifications
You must be signed in to change notification settings - Fork 117
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
Cannot remove note #164
Comments
Is it the same if you edit the note with the editor option? |
You can use the t kill --id command to delete entries. There's more detailed usage info in the Readme. |
@jostber Thank you for drawing my attention to the editor, it is indeed possible to remove a note with it. @samg the kill command does only solve the problem in a very complicated manner – if I want to remove the note from an older entry, I have to write down its start and end time, kill the entry, then recreate it using |
Sorry misunderstood your issue. I see the current semantics of the CLI make it impossible to blank out a note, though the editor option provides a nice workaround. I'm happy to reopen the issue and review any PRs that would address this. Thanks! |
Closes: samg#164 The regex used to see if a note has been provided cannot find empty strings. It is therefore not possible to look for empty string to clear a note. Instead a new flag (-c or --clear) clears the last entry's note or it can be used with the -i flag to clear another entry's note.
It does not seem possible to remove a note once it is added.
I tried to use
t edit ''
and variations of it, but the note remains.Current workaround:
t edit
with a zero-width space as argument at least removes any visible notes.The text was updated successfully, but these errors were encountered: