I have written some code within the plain console REPL of Clojure (lein repl
). Now I would like to extract the history in order to get the code that I have written in there. Can I do this somehow?
You can exit the REPL by typing Ctrl+D (pressing the Ctrl and D keys at the same time).
How to Access History A repl's history is located at https://replit.com/@username/repltitle/history , but you can reach the same page by: Choosing "History" from the three-dot menu for that specific repl (from the My Repls page) or. Clicking on the rewind button located in the top navigation bar inside the repl.
It works like so: Open your project in VS Code. Issue the command Start a Project REPL and Connect: ctrl+alt+c ctrl+alt+j . Answer the quick-pick prompts telling Calva about project types and what profiles to start.
A Clojure REPL (standing for Read-Eval-Print Loop) is a programming environment which enables the programmer to interact with a running Clojure program and modify it, by evaluating one code expression at a time.
Each Leiningen project stores its REPL usage history in the .lein-repl-history
file. There's a global repl-history
file as well, located at ~/.lein
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With