clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.54k stars 646 forks source link

Persistent REPL history improvements #2363

Open vspinu opened 6 years ago

vspinu commented 6 years ago

I am opening this as a restart of #2353.

Would be nice to have:

  1. project level persistent REPL history customized directly by cider-repl-history-file. Some ideas on the implementation:

    • if that file is relative, then the history should be relative to current project or directory
    • if a function, function is called with no arguments and should return a file
    • if a cons, car is file to be used for REPLS started outisde projects and cdr for those within projects
    • on remotes it's a bit tricky but I think tramp-auto-save-directory should be used to store history.
    • consider using backup-directory-alist for the history file or at lest offer it as an option
    1. history should be differentiated between types of repls clj/cljs
    2. have history on by default?
bbatsov commented 6 years ago

All of those are great ideas and most should be pretty easy to implement.

history should be differentiated between types of repls clj/cljs

I think it makes a lot of sense to keep this history separate, although we can make this configurable in the spirit of Emacs.

have history on by default?

👍

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!