nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.04k stars 134 forks source link

Implement insert schedule/deadline for a task #65

Closed mortezadadgar closed 3 years ago

mortezadadgar commented 3 years ago

Does this feature exist in Emacs orgmode core?

N/A

Orgmode link

No response

Feature value

No response

Additional context

In doom emacs(idk about vanilla) a task can be scheduled with SPC m d s keys or SPC m d d for deadlines

kristijanhusak commented 3 years ago

It needs to be added. Related manual documentation: https://orgmode.org/manual/Inserting-deadline_002fschedule.html

mortezadadgar commented 3 years ago

It needs to be added. Related manual documentation: orgmode.org/manual/Inserting-deadline_002fschedule.html

Are you willing to implement this feature

kristijanhusak commented 3 years ago

Yeah, I'll add it.

kristijanhusak commented 3 years ago

This is added. Adding deadline date: https://github.com/kristijanhusak/orgmode.nvim/blob/master/DOCS.md#org_deadline Adding schedule date: https://github.com/kristijanhusak/orgmode.nvim/blob/master/DOCS.md#org_schedule

Let me know if it works ok.

mortezadadgar commented 3 years ago

@kristijanhusak yeah works fine btw what's the default color fallback for todo keyworks highlight, I have tried to change but it didn't work related commit and would implement a feature to highlight the whole that is marked as DONE like: image

kristijanhusak commented 3 years ago

Use https://github.com/kristijanhusak/orgmode.nvim/blob/master/DOCS.md#org_todo_keyword_faces to change colors of todo keywords, or override OrgTODO and OrgDONE hl groups, not the built in ones.

Changing hl of the whole line like that is tricky, it requires too much hacking around syntax matching.

mortezadadgar commented 3 years ago

@kristijanhusak thanks! and there's a small typo with the configuration example you provided TODO - should be TODO =

kristijanhusak commented 3 years ago

Thanks, fixed it.