razie / scripster

interactive access to the scala REPL, via telnet, http, swing - content assist and other scripting goodies
http://www.tryscala.com
Other
53 stars 2 forks source link

Can't get Content Assist on Chrome/Mac #8

Closed dragos closed 11 years ago

dragos commented 12 years ago

Nothing happens when I press Ctrl-Space. I wonder if it's a keyboard mapping issue. Is Ctrl replaced by CMD on Mac OS? That conflicts with Spotlight Search, so it'd be great if the shortcut was configurable, or the content assist window appeared automatically after a . (and a timeout).

razie commented 12 years ago

Is this with the web version, telnet or swing?

From: Iulian Dragos [mailto:notifications@github.com] Sent: September-28-12 3:52 AM To: razie/scripster Subject: [scripster] Can't get Content Assist on Chrome/Mac (#8)

Nothing happens when I press Ctrl-Space. I wonder if it's a keyboard mapping issue. Is Ctrl replaced by CMD on Mac OS? That conflicts with Spotlight Search, so it'd be great if the shortcut was configurable, or the content assist window appeared automatically after a . (and a timeout).

— Reply to this email directly or view it on GitHub https://github.com/razie/scripster/issues/8 .

Description: Image removed by sender.

razie commented 12 years ago

Ok – I hacked the online version and added F8 as an alternate for the non-I.E. browsers, you can go ahead and give it a try.

Not sure about making this configurable – it wouldn’t be the same “scripster” everywhere, but since we’re far from world domination, it’s probably not a big deal J. What really keeps me from doing it is having to rewrite some javascript (which I mostly copy/pasted in the first place) – you can have a look at https://github.com/razie/razbase/blob/master/20widgets/src/main/resources/public/scriptpad2.js ... Look for F8…

Yes, the Mac binding is Command-Space is there some other binding that’s safer? What’s normally used for content assist in eclipse on macs?

From: Iulian Dragos [mailto:notifications@github.com] Sent: September-28-12 3:52 AM To: razie/scripster Subject: [scripster] Can't get Content Assist on Chrome/Mac (#8)

Nothing happens when I press Ctrl-Space. I wonder if it's a keyboard mapping issue. Is Ctrl replaced by CMD on Mac OS? That conflicts with Spotlight Search, so it'd be great if the shortcut was configurable, or the content assist window appeared automatically after a . (and a timeout).

— Reply to this email directly or view it on GitHub https://github.com/razie/scripster/issues/8 .

Description: Image removed by sender.

dragos commented 12 years ago

F8 works now. Thanks. Too bad Ctrl-Space does not work, it would be so much better to use Eclipse bindings :). It would be nice to have a full-screen mode as well, now the page around the editor text area is a bit disturbing.

razie commented 12 years ago

i don't know how spotlight search works - does this combination work in Eclipes on macs? does spotlight search intercept it only in the Safari browser? you could use Chrome then - assuming they have one on Macs?

dragos commented 12 years ago

CMD-Space is a system-wide shortcut. I'm using Chrome already, but it does not matter.

Eclipse uses Ctrl-Space (Macs have both Ctrl and Cmd, probably Cmd is more like the Windows key on PCs).

razie commented 12 years ago

Can you try it now? Ctrl-space? I don’t have a mac handy…

The mapping is in scriptpad2.js line 58 –

Thanks,

Razie

From: Iulian Dragos [mailto:notifications@github.com] Sent: October-02-12 6:13 PM To: razie/scripster Cc: Razvan Cojocaru Subject: Re: [scripster] Can't get Content Assist on Chrome/Mac (#8)

CMD-Space is a system-wide shortcut. I'm using Chrome already, but it does not matter.

Eclipse uses Ctrl-Space (Macs have both Ctrl and Cmd, probably Cmd is more like the Window key on PCs).

— Reply to this email directly or view it on GitHub https://github.com/razie/scripster/issues/8#issuecomment-9089118 .

Description: Image removed by sender.

dragos commented 12 years ago

On Wed, Oct 3, 2012 at 5:04 PM, Razvan Cojocaru notifications@github.comwrote:

Can you try it now? Ctrl-space? I don’t have a mac handy…

It works now (Ctrl-Space)! Thanks.

The mapping is in scriptpad2.js line 58 –

Thanks,

Razie

From: Iulian Dragos [mailto:notifications@github.com] Sent: October-02-12 6:13 PM To: razie/scripster Cc: Razvan Cojocaru Subject: Re: [scripster] Can't get Content Assist on Chrome/Mac (#8)

CMD-Space is a system-wide shortcut. I'm using Chrome already, but it does not matter.

Eclipse uses Ctrl-Space (Macs have both Ctrl and Cmd, probably Cmd is more like the Window key on PCs).

— Reply to this email directly or view it on GitHub < https://github.com/razie/scripster/issues/8#issuecomment-9089118> .

Description: Image removed by sender.

Reply to this email directly or view it on GitHubhttps://github.com/razie/scripster/issues/8#issuecomment-9109407.

« Je déteste la montagne, ça cache le paysage » Alphonse Allais