Debugger entered--Lisp error: (error "Lisp nesting exceeds ‘max-lisp-eval-depth’") derived-mode-p(org-mode) org-get-limited-outline-regexp() org-element--current-element(1398 element top-comment nil) org-element--parse-to(665) org-element-at-point() org--collect-keywords-1(("SETUPFILE" "BIBLIOGRAPHY") nil ("BIBLIOGRAPHY") ("/home/tec/Desktop/TEC/Educational Institute Relate...") nil) org-collect-keywords(("BIBLIOGRAPHY") nil ("BIBLIOGRAPHY")) org-cite-list-bibliography-files() (and (buffer-file-name) (string= (or (f-ext (buffer-file-name)) "") "org") (fboundp 'org-cite-list-bibliography-files) (org-cite-list-bibliography-files)) (or (and (buffer-file-name) (string= (or (f-ext (buffer-file-name)) "") "bib") (list (buffer-file-name))) (and (buffer-file-name) (string= (or (f-ext (buffer-file-name)) "") "tex") (require 'reftex-cite nil t) (condition-case nil (progn (reftex-get-bibfile-list)) (error nil))) (and (buffer-file-name) (string= (or (f-ext (buffer-file-name)) "") "org") (fboundp 'org-cite-list-bibliography-files) (org-cite-list-bibliography-files))) bibtex-completion-find-local-bibliography() (bibtex-actions-file--normalize-paths (bibtex-completion-find-local-bibliography)) (let* ((local-bib-files (bibtex-actions-file--normalize-paths (bibtex-completion-find-local-bibliography)))) (seq-difference local-bib-files bibtex-actions-bibliography)) bibtex-actions--local-files-to-cache() (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates() (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)) (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates))) (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car (cdr entry)))) (bibtex-actions--get-candidates)))) (if (and (eq 'uninitialized bibtex-actions--candidates-cache) (eq 'uninitialized bibtex-actions--local-candidates-cache)) (message "Something is wrong; your library is not initialize...") (cdr (cdr (seq-find #'(lambda (entry) (string-equal key (car ...))) (bibtex-actions--get-candidates))))) bibtex-actions-get-entry("andersonEndTheoryData2008") bibtex-actions-file--possible-names("andersonEndTheoryData2008" nil ("pdf" "org" "md")) bibtex-actions-file--files-for-key("andersonEndTheoryData2008" nil ("pdf" "org" "md")) (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes")) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '("doi" "url") entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat (propertize candidate-main 'face 'bibtex-actions-highlight) " " (propertize candidate-suffix 'face 'bibtex-actions) " " (propertize candidate-hidden 'invisible t))) (cons citekey entry)) candidates))) (closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates))))("andersonEndTheoryData2008" (("file" . "/home/tec/Zotero/storage/2F3IR3Z4/pb-theory.html") ("keywords" . "discoveries,magazine-16.07") ("url" . "https://www.wired.com/2008/06/pb-theory/") ("date" . "2008") ("author" . "Anderson, Chris") ("title" . "The {{End}} of {{Theory}}: {{The Data Deluge Makes...") ("=type=" . "article") ("=key=" . "andersonEndTheoryData2008"))) maphash((closure ((star-width . 35) (symbols-width . 8) (suffix-width . 45) (main-width . 92) (raw-candidates . #) (candidates) (context . "is:local") (files "/home/tec/Desktop/TEC/Educational Institute Relate...") t) (citekey entry) (let* ((files (if (or (bibtex-actions-get-value bibtex-actions-file-variable entry) (bibtex-actions-file--files-for-key citekey bibtex-actions-library-paths bibtex-actions-file-extensions)) (progn " has:files"))) (notes (if (bibtex-actions-file--files-for-key citekey bibtex-actions-notes-paths bibtex-actions-file-extensions) (progn " has:notes"))) (link (if (bibtex-actions-has-a-value '... entry) (progn "has:link"))) (candidate-main (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'main))) (candidate-suffix (bibtex-actions--format-entry entry star-width (bibtex-actions-get-template 'suffix))) (candidate-hidden (string-join (list files notes link context citekey) " "))) (setq candidates (cons (cons (string-trim-right (concat ... " " ... " " ...)) (cons citekey entry)) candidates)))) #) (let* ((candidates nil) (raw-candidates (parsebib-parse files :fields (bibtex-actions--fields-to-parse))) (main-width (bibtex-actions--format-width (bibtex-actions-get-template 'main))) (suffix-width (bibtex-actions--format-width (bibtex-actions-get-template 'suffix))) (symbols-width (string-width (bibtex-actions--symbols-string t t t))) (star-width (- (frame-width) (+ 2 symbols-width main-width suffix-width)))) (maphash #'(lambda (citekey entry) (let* ((files (if ... ...)) (notes (if ... ...)) (link (if ... ...)) (candidate-main (bibtex-actions--format-entry entry star-width ...)) (candidate-suffix (bibtex-actions--format-entry entry star-width ...)) (candidate-hidden (string-join ... " "))) (setq candidates (cons (cons ... ...) candidates)))) raw-candidates) candidates) bibtex-actions--format-candidates(("/home/tec/Desktop/TEC/Educational Institute Relate...") "is:local") (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local")) (if (eq 'global scope) nil (setq bibtex-actions--local-candidates-cache (bibtex-actions--format-candidates (bibtex-actions--local-files-to-cache) "is:local"))) bibtex-actions-refresh(nil local) (progn (bibtex-actions-refresh nil 'local)) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local))) (if force-rebuild-cache (bibtex-actions-refresh force-rebuild-cache) (if (eq 'uninitialized bibtex-actions--candidates-cache) (progn (bibtex-actions-refresh nil 'global))) (if (eq 'uninitialized bibtex-actions--local-candidates-cache) (progn (bibtex-actions-refresh nil 'local)))) bibtex-actions--get-candidates(nil) (let* ((crm-separator "\\s-*&\\s-*") (candidates (bibtex-actions--get-candidates rebuild-cache)) (chosen (completing-read-multiple "References: " #'(lambda (string predicate action) (if (eq action ...) '... (complete-with-action action candidates string predicate))) nil nil nil 'bibtex-actions-history bibtex-actions-presets nil))) (seq-map #'(lambda (choice) (or (car (cdr (assoc choice candidates))) choice)) chosen)) (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) '(:rebuild-cache :allow-other-keys)) (setq --cl-keys-- (cdr (cdr --cl-keys--)))) ((car (cdr (memq ... --cl-rest--))) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:rebuild-cache)" (car --cl-keys--)))))) (let* ((crm-separator "\\s-*&\\s-*") (candidates (bibtex-actions--get-candidates rebuild-cache)) (chosen (completing-read-multiple "References: " #'(lambda (string predicate action) (if ... ... ...)) nil nil nil 'bibtex-actions-history bibtex-actions-presets nil))) (seq-map #'(lambda (choice) (or (car (cdr ...)) choice)) chosen))) (let* ((rebuild-cache (car (cdr (plist-member --cl-rest-- ':rebuild-cache))))) (progn (let ((--cl-keys-- --cl-rest--)) (while --cl-keys-- (cond ((memq (car --cl-keys--) '...) (setq --cl-keys-- (cdr ...))) ((car (cdr ...)) (setq --cl-keys-- nil)) (t (error "Keyword argument %s not one of (:rebuild-cache)" (car --cl-keys--)))))) (let* ((crm-separator "\\s-*&\\s-*") (candidates (bibtex-actions--get-candidates rebuild-cache)) (chosen (completing-read-multiple "References: " #'(lambda ... ...) nil nil nil 'bibtex-actions-history bibtex-actions-presets nil))) (seq-map #'(lambda (choice) (or (car ...) choice)) chosen)))) bibtex-actions-select-keys() (let ((references (bibtex-actions-select-keys))) (if multiple references (car references))) oc-bibtex-actions-insert(t) #f(compiled-function (select-key select-style arg) #)(oc-bibtex-actions-insert oc-bibtex-actions-select-style nil) #f(compiled-function (context arg) #)(nil nil) org-cite-insert(nil) #(org-cite-insert nil) apply(# (org-cite-insert nil)) funcall-interactively(org-cite-insert nil) #(org-cite-insert nil nil) apply(# (org-cite-insert nil nil)) explain-pause--wrap-call-interactively(# org-cite-insert nil nil) apply(explain-pause--wrap-call-interactively # (org-cite-insert nil nil)) call-interactively(org-cite-insert nil nil) command-execute(org-cite-insert)