How to use the persisted history for commands completion #1853
vindarel
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
I just tried reading this twice. I don't understand it. I can play around with the code and figure it out, but it's really not clear. Is it just to add the code below to (defvar *projects-history*)
(defun history ()
"Return or create the projects' history struct.
The history file is saved on (lem-home)/history/projects"
(unless (boundp '*projects-history*)
(let* ((pathname (merge-pathnames "history/projects" (lem-home)))
(history (lem/common/history:make-history :pathname pathname)))
(setf *projects-history* history)))
*projects-history*) It says:
"First" sounds like there's more to do. But the rest reads like an explanation of how lem already works. Are we supposed to be changing other files? Maybe we can have subheadings How To Add Command HistoryUnderstanding the Change |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
new doc: https://lem-project.github.io/usage/configuration/#commands-with-persistent-history
Beta Was this translation helpful? Give feedback.
All reactions