On 1 Jul 2018, at 01:28, PAUL DEBRUICKER <pdebruic@gmail.com> wrote:
I was feeling lazy was wondered if it would be possible to hit Cmd-D or Cmd-I in the spotter input field rather than opening a playground and typing something in then hitting it. E.g.
1 + 1 Cmd-I
would open an inspector on the number 2
After looking at GTSpotter>>#spotterFor... methods I couldn't figure out how to make it happen in the half hour I had to spend on it.
I recognize opening the playground is Cmd-O Cmd-W but I just open the spotter ~50x as often as a new playground so the muscle memory isn't there. If I could do quick one-liners in the spotter then the playground would get opened even less often.
In Pharo 7 you can actually use Spotter for calculations: Cmd-Enter 1 + 2 gives you #Calculator 3 Even 42 factorial works. It does not seem to work for general evaluation though ... The tools that we had before Spotter did actually allow that.