Skip to content

Commit

Permalink
fix(project_tasks): jump to project if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Mar 14, 2022
1 parent da5ea13 commit d6ff3d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/telescope/_extensions/neorg/find_project_tasks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ return function(opts)
actions_set.select:replace(function()
local entry = state.get_selected_entry()
actions.close(prompt_bufnr)
local tasks = get_task_list(entry)
if #tasks == 0 then
neorg.modules.get_module("core.gtd.ui").callbacks.goto_task_function(entry.value)
return true
end

pick_tasks(entry.value)
end)
return true
Expand Down

0 comments on commit d6ff3d5

Please sign in to comment.