Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
chuwy committed Jul 5, 2021
1 parent 748f7ec commit 8c78cdc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/orgmode/agenda/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,15 @@ end

-- TODO: Add PROP/TODO Query
function Agenda:tags(opts)
local tags
opts = opts or {}
local tags = opts.tags

if opts.clear_search then
self.last_search = ''
end

if not opts.tags then
if not tags then
tags = vim.fn.input('Match: ', self.last_search, 'customlist,v:lua.orgmode.autocomplete_agenda_filter_tags')
else
tags = opts.tags
end
if vim.trim(tags) == '' then
return utils.echo_warning('Invalid tag.')
Expand Down

0 comments on commit 8c78cdc

Please sign in to comment.