-
Notifications
You must be signed in to change notification settings - Fork 14
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
A way to remove extensions from item #49
Comments
@ransome1 , it seems to be possible, you simply need to specify the value of the extension like item.removeExtension('pri', 'A'); There is a test which cover that jsTodoTxt/src/Item.extensions.test.ts Lines 45 to 53 in 2a71923
|
Would it make sense to add an affordance for that (and perhaps other tags?) where a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the
next
branch, you can set an extension likeitem.setExtension('pri', 'A');
Once it is set, you can null the value, but you can't remove the whole extension object. So even if you set the extension to null, it will be part of
item.toString()
:pri:null
We might want to think about a way to remove extensions, like
item.removeExtension('pri');
The text was updated successfully, but these errors were encountered: