diff options
author | Thanos Apollo <[email protected]> | 2023-12-28 04:05:06 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-28 04:05:06 +0200 |
commit | 8d0034663c7e6d9ad079cc1910dedb36eb802281 (patch) | |
tree | bbe906af564cfe5a959130343e541e66191ddabe /gnosis.el | |
parent | 58b35802bf4c031b944f1c513467b08514f59c09 (diff) |
Add gnosis-unique-tags
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -358,6 +358,11 @@ Compare 2 strings, ignoring case and whitespace." (modified-str2 (downcase (replace-regexp-in-string "\\s-" "" str2)))) (string= modified-str1 modified-str2))) +(defun gnosis-unique-tags () + "Return a list of unique strings for tags in gnosis-db." + (cl-loop for tags in (emacsql gnosis-db [:select tags :from notes]) + nconc tags into all-tags + finally return (delete-dups all-tags))) ;; Review ;;;;;;;;;; (defun gnosis-review--algorithm (id success) |