branch: master commit 6ab519ff92143bfcee549471dbf5def3bdae3185 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
counsel.el (counsel-org-tag): Delete dups The issue of duplicates arises from this setting (off by default): (setq org-complete-tags-always-offer-all-agenda-tags t) Re #177 --- counsel.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/counsel.el b/counsel.el index 1d85b0b..bf59f5b 100644 --- a/counsel.el +++ b/counsel.el @@ -825,7 +825,9 @@ Usable with `ivy-resume', `ivy-next-line-and-call' and (org-global-tags-completion-table (org-agenda-files)))))) (ivy-read (counsel-org-tag-prompt) - 'org-tags-completion-function + (lambda (str &rest _unused) + (delete-dups + (all-completions str 'org-tags-completion-function))) :history 'org-tags-history :action 'counsel-org-tag-action))))