Use Spotlight to quickly evaluate and inspect short expressions
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 ;-)
Excellent! This goes in the direction of Alfred or Quicksilver. I worked on a design (no implementation yet) that goes in the same direction. I think we definitely need to get more in this direction, and that we should make it easy for people to hook their own matchers. For example, when I start something with / or ./ I would like to inspect the file with that name. Doru 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 ;-)
-- www.tudorgirba.com "Every thing has its own flow"
I would love to have it the other way around: that Alfred can browse a Pharo image :) Ben On 25 Mar 2014, at 14:41, Tudor Girba <tudor@tudorgirba.com> wrote:
Excellent!
This goes in the direction of Alfred or Quicksilver. I worked on a design (no implementation yet) that goes in the same direction. I think we definitely need to get more in this direction, and that we should make it easy for people to hook their own matchers. For example, when I start something with / or ./ I would like to inspect the file with that name.
Doru
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 ;-)
-- www.tudorgirba.com
"Every thing has its own flow"
I share with you the impression that a workspace is overkill most of the times. I have different feelings with this. At one side I would preserve spotlight for searching ONLY. And have a separate REPL/cmd prompt docked to some edge (like Autocad's Text Window one). On the other hand I'm a vim user, so I'm used to run commands and search through a single command "mode". It's good to have the option as long as it doesn't interfere with previous behavior though. Esteban A. Maringolo 2014-03-25 10:30 GMT-03:00 Sven Van Caekenberghe <sven@stfx.eu>:
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 ;-)
What about doing it that way? <Shift-enter>1500*1.25<Alt-i> ? Like that, you keep the same shortcut and behavior everywhere, and you don't have to answer questions such as: Why typing :42<enter> doesn't work in a workspace? Thierry Le 25/03/2014 14:30, Sven Van Caekenberghe a écrit :
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 ;-)
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
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 ;-)
On Mar 25, 2014, at 10:30 AM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Opening a workspace for a single expression often is overkill. This feature is totally keyboard driven and very clean.
Sounds okay. Need to test it for useful feedback. What I like about workspaces is that they have (at least) 3 functions from the UX point of view: 1. frictionless input of code to evaluate (single or multiline) 2. output when doing cmd-P 3. user orientation because it will remember you that you were doing something related to that little code pretty much like that post it in your desktop I get the point about shift+enter+: and getting a command evaluated but a cmd+[something] could open a workspace and you have more features at the same price and one keystroke cheaper because you wonât need the : to get something evaluated. Plus youâll have to added friction to do something multiline (like a Gofer load for example) You may say, hey I donât want pollution on my desktop, fair enough you have cmd-w to optionally close it right after use. That enables a pretty good flow* Hey⦠I have no complains if itâs there just sharing how I use workspaces *which BTW is interrupted (so broken) by not having the âopen new workspaceâ key combination as many smalltalk IDE have (so your flow forces mouse-menu-click before unloading the code of your next evaluation) <- itâs only me or that sounds like a quick fix of high return?
Opening a workspace and typing in it right away is Cmd-o Cmd-w / Alt-o Alt-w So, the Shift-Enter : thing is faster for some things. As a TWM user, well, tiling workspaces helps when trying to find back a given window, but I do a lot of inspect/explore in the workspace, so this comes in handy. Phil On Tue, Mar 25, 2014 at 4:22 PM, Sebastian Sastre < sebastian@flowingconcept.com> wrote:
On Mar 25, 2014, at 10:30 AM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Opening a workspace for a single expression often is overkill. This feature is totally keyboard driven and very clean.
Sounds okay.
Need to test it for useful feedback.
What I like about workspaces is that they have (at least) 3 functions from the UX point of view:
1. frictionless input of code to evaluate (single or multiline) 2. output when doing cmd-P 3. user orientation because it will remember you that you were doing something related to that little code pretty much like that post it in your desktop
I get the point about shift+enter+: and getting a command evaluated but a cmd+[something] could open a workspace and you have more features at the same price and one keystroke cheaper because you won't need the : to get something evaluated.
Plus you'll have to added friction to do something multiline (like a Gofer load for example)
You may say, hey I don't want pollution on my desktop, fair enough you have cmd-w to optionally close it right after use.
That enables a pretty good flow*
Hey... I have no complains if it's there
just sharing how I use workspaces
*which BTW is interrupted (so broken) by not having the "open new workspace" key combination as many smalltalk IDE have (so your flow forces mouse-menu-click before unloading the code of your next evaluation) <- it's only me or that sounds like a quick fix of high return?
On Mar 25, 2014, at 12:36 PM, phil@highoctane.be wrote:
Opening a workspace and typing in it right away is Cmd-o Cmd-w / Alt-o Alt-w
So, the Shift-Enter : thing is faster for some things
cmd-O? that would be cool but is not working on my Pharo3.0 Latest update: #30798, which one are you using?
Pharo 3, Win8.1 Alt-O , keeping the finger on alt and then W Workspace! My Mac is in its bag at the moment :-)
I like the idea now it is importznt that spotlight found class , method, package well :) Stef On 25 Mar 2014, at 14:30, 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 ;-)
participants (8)
-
Benjamin -
Esteban A. Maringolo -
Goubier Thierry -
Pharo4Stef -
phil@highoctane.be -
Sebastian Sastre -
Sven Van Caekenberghe -
Tudor Girba