Add complete_done event and improved the recently_used sorter.

Fix #708
This commit is contained in:
hrsh7th
2022-01-08 13:38:55 +09:00
parent a4f83fd839
commit 3f7b7b258a
4 changed files with 21 additions and 4 deletions

View File

@@ -109,8 +109,11 @@ view.open = function(self, ctx, sources)
end
end
-- close.
-- complete_done.
if #entries == 0 then
self.event:emit('complete_done', {
entry = self:_get_entries_view():get_selected_entry()
})
self:close()
end
end