Fork me on GitHub
#cursive
<
2017-01-05
>
cemerick12:01:43

I am seeing really good completion on namespaces, vars, etc., in regular editors, but not in the REPL input editor. There, completion options seem to be limited to java packages, classes, etc., but not java methods (e.g. (Math/| doesn't yield any suggestions, but it does in a regular editor).

cemerick12:01:49

Do I have something mis-configured?

manutter5112:01:23

I just tried on my local machine and I get autocomplete options for (Math/ in the JVM repl

manutter5112:01:12

(I was going to try the figwheel repl, but that’s commandline not IDE duh)

cemerick12:01:44

Sorry, no, only talking about clj right now

cemerick12:01:29

this is on my main project, I'll try something simpler

cemerick12:01:17

ooohkay, so a simpler project yields useful completions

favila16:01:06

Is there a no-thinking hotkey to cycle focus between repl and active editor window?

favila16:01:23

I know about ctrl-tab, but that requires thinking

cemerick17:01:15

@favila there's a jump-to-REPL-editor action

cemerick17:01:51

the easiest thing I know of for the converse is to hit the shortcut for tool window you use rarely twice

cemerick17:01:20

so alt-2 alt-2 will jump from anywhere to the favorites tab, then close it and return you to the last editor you were in

favila17:01:27

ok that's not too bad

favila17:01:12

an alternative I think is ctrl-shift-tab ctrl-tab (in any order)

favila17:01:29

just ctrl-tab will always do the wrong thing

favila17:01:17

holy crap that is perfect

favila17:01:22

did not know that

favila17:01:15

this must be the underlying principle behind dismissing those modal-while-focused windows

rauh17:01:18

Depends on your OS too; In linux you do ALT+~

cemerick17:01:21

it'd be great if "go to REPL editor" could bounce you to the complimentary location tho @cfleming

favila17:01:32

I'm on linux and esc seems to work

favila17:01:01

if already has focus, could cycle back to editor

favila17:01:32

ah ESC and F12 are complementary

cemerick17:01:34

@favila oh, look at that. esc does work. It didn't for me on linux (windows now)

favila17:01:59

esc=jump to editor F12=jump to last tool

favila17:01:04

(including repl it seems)

favila17:01:12

honestly that's exactly what I need

favila17:01:45

by happy coincidence, I usually keep editor and repl on the same sides of the screen as the esc and f12 keys

rauh17:01:32

Well there is also the cmd "Jump to REPL editor"

favila17:01:46

yeah, but I'd rather remember the more generic one

favila17:01:29

I ctrl-tab + KEY a fair amount already

rauh17:01:53

Yeah I agree, that's why I use ALT+~

rauh17:01:13

it's even more generic since that's the shortcut for "Inter-application window cycle"

rauh17:01:28

For instance, you could use that in GIMP or other apps that have multiple windows

favila17:01:41

for me that only switches between project windows

favila17:01:54

i.e. windows the window manager knows about

favila17:01:59

I usually have my repl docked

rauh17:01:20

Oh oops, I forget about that detail. Yeah I have mine floating

cfleming21:01:54

@cemerick @favila @rauh There was a fair amount of discussion about this when I implemented the “Jump to…” commands - the choices are basically have one command cycle (so where the cursor ends up is relative to where you are now) or absolute “Jump to here” commands. I ended up with absolute because it means you can always jump to e.g. the REPL without having to hunt around to figure out where the caret is.

cfleming21:01:35

It also works better with the IntelliJ rule that ESC always takes you back to the editor from any toolwindow (which sucks for IdeaVim users, sadly)

cfleming21:01:13

And it works better with the fact that users also want to go to the REPL output pane to cut and paste output, but not often enough for it to make sense as a permanent part of the cycle command.

favila21:01:19

@cfleming for the record, I am completely satisfied by the ESC and F12 pair, I just didn't know about them

cfleming21:01:37

@favila Great - I didn’t know about F12 either

cemerick21:01:18

likewise, last time I tried this (on linux, if that matters), esc back to the editor didn't work

potetm21:01:19

Anybody else get issues "saving settings" when using spaces?

potetm21:01:57

I'm assuming that's more an IntelliJ thing rather than a Cursive thing, but I thought I'd check.

cfleming21:01:37

@cemerick That’s very strange, the ESC thing is a cast-iron IntelliJ rule. I assume ESC works elsewhere?

cemerick22:01:14

cfleming Yeah. Now that I think of it, may have been the ideavim conflict in action. This was months ago.

cfleming22:01:30

@cemerick Ok. I don’t have a good theory for why your completion isn’t working BTW. I’ll dig out that code later on today and see if I can come up with an idea.

cfleming22:01:46

As far as I know, no-one else has that problem.

cemerick22:01:12

Sounds about right. I'm always a bug pioneer 🙃