cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-05-17T01:15:40.396800Z

Yes, the focus thing is something I’ve been meaning to fix forever - I’ll look to do that now. Hiding the input area (possibly even by default) is also something I’ve considered, especially once I get inline evaluation done - I’m working on that now, but I’ve had to have a detour to work on my website.

4👍1
cfleming 2021-05-17T01:20:13.397Z

There’s a very indignant (with good reason!) issue in the tracker which I have assigned to the current milestone about the focus issue: https://github.com/cursive-ide/cursive/issues/1579

aratare 2021-05-17T01:33:17.397400Z

@tony.kay iirc you can press esc to return back to the main editor. In fact, if you’re in any of the editors (project, structure, lein, etc.), pressing ESC will return you back to the main editor (the one that you write code with)

roklenarcic 2021-05-17T12:56:05.402200Z

Is there some way to make your run configuration automatically use deps aliases selected in deps tab?

roklenarcic 2021-05-17T12:56:29.402400Z

roklenarcic 2021-05-17T12:56:55.403200Z

This requires me to name every single alias, and it might be out of sync with what I have selected in my deps tab

imre 2021-05-17T13:23:58.403500Z

@roklenarcic 'run with intellij classpath'

octahedrion 2021-05-17T13:28:49.404700Z

why is that some namespace aliases don't show their symbols in autocomplete ?

octahedrion 2021-05-18T14:29:15.010900Z

yes e.g. if I (require '[clojure.tools.namespace.parse :as np]) I don't get any autocomplete for (np/) whereas if I do for (clojure.tools.namespace.parse/)

octahedrion 2021-05-19T10:40:32.012900Z

what's stranger is that I sometimes get autocomplete for a completely different namespace. For example I have required datomic.client.api :as d but when I ctrl-space for (d/) I get completions for kixi.stats.distribution

cfleming 2021-05-19T22:38:57.013300Z

Does File -> Invalidate Caches and Restart help this? It sounds to me like your indexes are funky somehow.

cfleming 2021-05-19T23:48:36.013500Z

Also, which version of IntelliJ are you on? If you’re on 2021.1 and haven’t upgraded to 2021.1.1 yet, I think they had a bunch of indexing bugs which were fixed in the point release.

octahedrion 2021-05-21T08:32:14.021600Z

I tried invalidate caches & restarting but same problem. It happens with one project and not another. I suspect it's because I'm using libraries in my REPL from ~/.clojure/deps.edn which are not in my project's deps.edn

roklenarcic 2021-05-17T13:58:30.404800Z

Thanks, I guess in the past I was using it in a way that didn’t work for me

tony.kay 2021-05-17T13:58:59.405Z

I use IdeaVIM. Esc puts me in edit mode in the little input window

tony.kay 2021-05-17T14:02:13.405200Z

Ah, but a second escape does bring me back to editor. Never thought to try it twice in a row (not sure why..guess I just didn’t think it would matter)

1👍
imre 2021-05-17T14:07:03.405400Z

I think I sometimes need to do a 'refresh deps projects' after changing what's ticked in the list for ij to pick those changes up

raspasov 2021-05-17T14:17:52.406100Z

Does anybody know if there’s a way to “cycle” through a number of commands in IntelliJ ?

raspasov 2021-05-18T22:12:38.011300Z

@cfleming Thanks for the input! I think specifically the switch between editor and input is super common and there will be very little overhead of keeping track of where I am at the moment. Perhaps it makes sense to add a separate action if it’s easy on your side to determine the current state. “Switch between REPL input and code editor” or something like that. But if you want to keep them only separate, I understand. It’s not a huge difference, still works well enough for my use case.

raspasov 2021-05-17T14:19:02.406300Z

(I know there’s specific commands to cycle through some items, but I think a generic “cycle” that is you define can be useful)

imre 2021-05-17T14:25:36.406600Z

like a macro?

imre 2021-05-17T14:26:03.406800Z

if it's the same n commands you want to cycle through in the same order, then you could record a macro

raspasov 2021-05-17T14:31:17.407Z

Yes, I know macros, but they always run all the commands from start to finish. As I typed this, I realized it’s probably harder to implement in practice that I initially thought.

raspasov 2021-05-17T14:31:47.407200Z

My idea was to replicate the “Alt+Tab” experience in say, MacOS where it jumps to the previous active window.

raspasov 2021-05-17T14:37:22.407500Z

For example, if you cycle: “Jump to REPL Editor” “Focus Editor” … you’d be able to assign one shortcut to those and that would be convenient. But I realize that it’s hard to do, because IntelliJ has to keep the state of where the focus is at the moment.

raspasov 2021-05-17T14:38:07.407800Z

Not “hard” but not super trivial like I thought for the first 30 seconds 🙂

imre 2021-05-17T14:38:50.408Z

there's a Jump to Last Tool Window command

imre 2021-05-17T14:39:52.408200Z

and esc puts you back in the editor

imre 2021-05-17T14:40:01.408400Z

if that's your usecase

raspasov 2021-05-17T14:40:27.408600Z

Oh, I know 🙂

raspasov 2021-05-17T14:41:21.408800Z

The Escape is too annoying to hit because of Apple keyboard decisions 😂 (first world problems)

imre 2021-05-17T14:41:51.409Z

I guess I hit my limit of knowledge then 🙂

imre 2021-05-17T14:42:08.409200Z

but I also think esc can be rebound to something more convenient

raspasov 2021-05-17T14:42:37.409400Z

I tried that, for some reason it does not work reliably (at all?)

raspasov 2021-05-17T14:42:59.409600Z

For example, if I add an additional shortcut in Keymap for “Escape” it actually doesn’t jump back to source, for example. So it’s weird.

raspasov 2021-05-17T14:43:21.409900Z

Hence my “cycle shortcuts” idea 😆

imre 2021-05-17T14:43:31.410100Z

gotcha

raspasov 2021-05-17T14:43:59.410300Z

In any case, I added two different shortcuts, CMD+1, CMD+2 for those two commands. It works fine.

raspasov 2021-05-17T14:44:13.410500Z

I am just complaining. Back to work! 🙂

Phil Shapiro 2021-05-17T15:57:46.413300Z

Not sure it’ll help you, but I use Find Action for tasks like this all the time. I hit command-shift-a to bring it up, type a few letters to select the command, and hit return. Much faster than using the mouse.

2021-05-17T16:17:04.413500Z

Chiming in on hiding the input UI. For beginners hiding the REPL input may be very confusing.. so I would be sure to document how to find it.

raspasov 2021-05-17T20:36:00.413800Z

@pshapiro For sure. I try to eliminate most mouse “activity”.

raspasov 2021-05-17T20:36:28.414Z

In actions that I do on a daily/hourly basis.

Mateusz Mazurczak 2021-05-17T20:42:44.415Z

Has anybody here switched from emacs/vim to cursive? What did you like more?

thheller 2021-05-17T20:49:57.415600Z

I switched from emacs when cursive first came out. never going back 😛

2💥
Mateusz Mazurczak 2021-05-17T21:24:07.415700Z

What made you stay with cursive or move out of emacs?

thheller 2021-05-17T21:24:52.415900Z

got tired of my emacs config breaking and having to configure every little thing manually

thheller 2021-05-17T21:25:01.416100Z

cursive just works and does what I want

thheller 2021-05-17T21:25:54.416300Z

(I also have used IntelliJ for many years before in my Java days so it was an easy choice)

Mateusz Mazurczak 2021-05-17T21:54:47.416500Z

I guess I’m in a similar position as you back then, thank you for your feedback

cfleming 2021-05-17T22:14:48.417Z

Yes, I’m definitely a bit torn on that one. If I do end up doing that, it will definitely be configurable, and I’ll think about how to best communicate the change.