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

feat(todo-items): add missing "need input" icon and action #896

Merged
merged 2 commits into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lua/neorg/modules/core/keybinds/keybinds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ module.config.public = {
-- ^mark Task as Important
{ leader .. "ti", "core.qol.todo_items.todo.task_important" },

-- Marks the task under the cursor as "ambiguous"
-- ^mark Task as ambiguous
{ leader .. "ta", "core.qol.todo_items.todo.task_ambiguous" },

-- Switches the task under the cursor between a select few states
{ "<C-Space>", "core.qol.todo_items.todo.task_cycle" },

Expand Down
2 changes: 2 additions & 0 deletions lua/neorg/modules/core/qol/todo_items/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ module.on_event = function(event)
done = "x",
important = "!",
recurring = "+",
ambiguous = "?",
}

local match = event.split_type[2]:match(todo_str .. "task_(.+)")
Expand Down Expand Up @@ -463,6 +464,7 @@ module.events.subscribed = {
["core.qol.todo_items.todo.task_cancelled"] = true,
["core.qol.todo_items.todo.task_important"] = true,
["core.qol.todo_items.todo.task_recurring"] = true,
["core.qol.todo_items.todo.task_ambiguous"] = true,
["core.qol.todo_items.todo.task_cycle"] = true,
["core.qol.todo_items.todo.task_cycle_reverse"] = true,
["core.qol.todo_items.warn-deprecated-keybind"] = true,
Expand Down