summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-06-14 00:05:25 -0400
committerKyle Meyer <kyle@kyleam.com>2016-06-14 00:05:25 -0400
commit32ab80807923682b6cdaa897b0ee02c1defa86c5 (patch)
tree43abf5dbd11e6f3871ae3c33b0d4ef99e96567ed /bog.el
parent75b1a8d0bae8d349936ab15a2dde833db3f2757f (diff)
downloadbog-32ab80807923682b6cdaa897b0ee02c1defa86c5.tar.gz
bog-select-citekey: Add citekey history list
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/bog.el b/bog.el
index 1803836..0bcc29a 100644
--- a/bog.el
+++ b/bog.el
@@ -476,9 +476,12 @@ If NO-CONTEXT is non-nil, immediately fall back."
bog-citekey-at-point
bog-all-heading-citekeys)
+(defvar bog-citekey-history nil)
+
(defun bog-select-citekey (citekeys)
"Prompt for citekey from CITEKEYS."
- (completing-read "Select citekey: " citekeys nil t))
+ (completing-read "Select citekey: " citekeys
+ nil t nil 'bog-citekey-history))
;;;; Other