Skip to content

Commit

Permalink
feat(todo-items): add missing "need input" icon and action (#896)
Browse files Browse the repository at this point in the history
Bound to `<LocalLeader>ta` for (task ambiguous)
  • Loading branch information
fecet authored May 25, 2023
1 parent e50b8ae commit 4cb0fa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit 4cb0fa9

Please sign in to comment.