-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Proper coloring of items with DONE state #165
Conversation
@schoettl You can get the A single headline doesn't have a todoKeywordSet. Those are set on a buffer level with these in-buffer settings: https://github.com/200ok-ch/organice#in-buffer-settings |
Thanks, I got it :) I hope this fix (especially Or should I add a line |
Yes, please add the FIXME. I’ll add memoization when I get to the PR^^ |
From looking on the diff on my phone: This looks very nice. I like you implemented it in a functional way. This will be easy to memoize, too! I’ll probably also add an acceptance test as safeguard against regressions before merging, because it’s a user visible feature. |
That sounds good!
... coming from Haskell in my last projects :) I will watch your changes, I have to learn about acceptance and integration tests... |
It shows! The best JS devs I know in person or have seen in FOSS projects are the ones with some background in proper FP languages - often from Clojure or Haskell. Happy to have you here^^ Regarding your proposed FIXME: I really like that you're thinking of performance! And in the other search feature, we likely will have to think of it some time. But back to this feature: When I was commenting before, I was only on my phone and thought too quickly. For the particular function that you wrote, memoization would be overkill. The function you wrote checks if a value is a member of a small set. However, I did the other thinks we talked about - I made a refactoring, documented the feature in the sample.org and and wrote an integration test. If you were curious on how I would have done the memoization: If the component would have been a functional component, we could have used a React feature called hooks - specifically the useMemo hook. Since this is not a functional component, I would have used lodashs' memoize function. Really great feature, thank you very much for building it! 🙏 🙇 |
I have updated the changelog with the new feature and attribution: d7db53c |
Thanks for the information. Perfect, that it doesn't compromise performance! We can remove the comment when we come to that place again. In the meantime, I'm confident that nobody else will work on this and adds unnecessary complexity :D |
🚀
👍 |
This closes #16
@munen In case you know at the first glance where to get
todoKeywordSet
from, I'd be happy about a hint. Otherwise I'll figure it out, shouldn't be too hard.