cursive

Issues at: https://git.io/cursive-issues
gibb 2020-08-13T06:47:02.020Z

REPL Commands bound to shortcuts are pretty sweet!

gibb 2020-08-13T06:49:46.021300Z

Can I access my own REPL commands in the cursive.actions list somehow? I remember looking a big text file with cursive actions for making ideavim bindings but I can't seem to remember where I found it..

gibb 2020-08-13T06:50:13.021700Z

map <leader>x :action :cursive.actions.paredit/kill-sexp<CR> Something like that but instead cursive.actions.MyREPLCommand ?

gibb 2020-08-13T06:50:55.022100Z

Ah :actionlist is what I was looking for..

cjsauer 2020-08-13T13:38:39.026600Z

Was your REPL action in that list? I was attempting to do this as well and couldn’t find it.

gibb 2020-08-14T04:51:31.032600Z

Nope the REPL command does not show up there, I did not find a way to bind it to a vim shortcut.

misha 2020-08-13T08:13:12.024400Z

just wanted to share that unbalanced " in comments breaks parinfer's smart mode:

(let [] ;
  {:a 1
   :b 2})

;tab second line:
(let [] ;"
     {:a 1
   :b 2}) 

;vs expected:
(let [] ;
     {:a 1
      :b 2})
but then found disclaimer: https://shaunlebron.github.io/parinfer/#inserting-quotes :opieop:

misha 2020-08-13T08:14:32.025600Z

I hope mentioning it will save some time and sanity for somebody with a suddenly broken smart mode in a large ns

2020-08-13T20:13:18.029400Z

I have a deps alias with the following.

:dev {:extra-paths ["dev/src" "dev/resources"]
                       :extra-deps  {environ                     {:mvn/version "1.1.0"}
                                     org.clojure/tools.namespace {:mvn/version "0.2.11"}
                                     org.clojure/tools.nrepl     {:mvn/version "0.2.12"}
                                     reloaded.repl               {:mvn/version "0.2.4"}}
                       :main-opts   ["-i" "dev/src/foobar/user.clj"
                                     "-e" "(in-ns,'foobar.user)"]}
The main-opts works when I start a repl from the command line.
clj -A:dev -r
But it does not work when I use nREPL in Cursive run config.

alexmiller 2020-08-13T20:15:54.029700Z

"does not work" = ?

2020-08-13T20:16:16.030Z

load the file and switch to the ns. Similar to this in leiningen.

:repl-options   {:init-ns foobar.user}

salam 2020-08-13T21:28:37.030700Z

what does your run configuration look like?

katox 2020-08-13T22:30:25.032100Z

Cursive ignores the -m part of deps. Which is good in a way because it only supports -A