AWESOME! (oops, overwhelming enthusiasm effect). Alt-O Alt-W usage is going down in flames with this one. Now, making the spotlight larger is the next step so that we can actually read longer expressions. And $: is just the beginning of prefixes I guess. Phil On Tue, Mar 25, 2014 at 2:30 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
I had this idea:
https://pharo.fogbugz.com/f/cases/13128/Use-Spotlight-to-quickly-evaluate-an...
now you can do
<shift-Enter>:42<Enter>
to inspect the magic number 42
<shift-Enter>:1500*1.25<Enter>
to quickly compute your 25% raise
<shift-Enter>:Float pi<Enter>
to see how many decimals you still remember
<shift-Enter>:ZnClient new get: 'http://zn.stfx.eu/zn/small.html'<Enter>
and so on.
The interaction with the completion menu is not 100% perfect, but pressing <Space> at the end before <Enter> solves that.
Feedback ?
Sven
PS: I know that many Smalltalk greybeards type everywhere to the same effect, and that is cool to, but it leaves around dirty windows. Opening a workspace for a single expression often is overkill. This feature is totally keyboard driven and very clean.
PS2: Yes it resembles Emacs' M-: (evaluate-expression), but Pharo is much cooler, right ;-)