[Pharo Trick: #0004] - Run code using a key command to speedup development
----------------------------------------------------------------------------------- [Pharo Trick: #0004] - Run code using a key command to speedup development ----------------------------------------------------------------------------------- Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions ----------------------------------------------------------------------------------- If you have to run some code very often you typically have to evaluate it from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut: World on: $a shift command do: [ Object browse ]. Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily. Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
Nice! Didnât know about that one. On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
----------------------------------------------------------------------------------- [Pharo Trick: #0004] - Run code using a key command to speedup development ----------------------------------------------------------------------------------- Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions -----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate it from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
I want more :) On Dec 12, 2013, at 9:42 AM, Max Leske <maxleske@gmail.com> wrote:
Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
----------------------------------------------------------------------------------- [Pharo Trick: #0004] - Run code using a key command to speedup development ----------------------------------------------------------------------------------- Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions -----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate it from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
Very sweet indeed. Phil On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote:
Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
-----------------------------------------------------------------------------------
[Pharo Trick: #0004] - Run code using a key command to speedup development
-----------------------------------------------------------------------------------
Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions
-----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate it from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run
it with
a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
BTW, no world binding has yet been initialized yet in Pharo 3.0 (but CMD+K) Is it intentional? see http://stackoverflow.com/questions/17886061/switch-between-open-windows-in-p... 2013/12/12 phil@highoctane.be <phil@highoctane.be>
Very sweet indeed.
Phil
On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote:
Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
-----------------------------------------------------------------------------------
[Pharo Trick: #0004] - Run code using a key command to speedup development
-----------------------------------------------------------------------------------
Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions
-----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate
it
from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
The world morph was initially intended to handle the global system shortcuts, taking advantage of the event bubbling. However, that posed the fact that the global shortcuts have less priority than other shortcuts. The bubbling will activate a global shortcut only if it they key event did not activated a shortcut of its childs first. So we changed that, and there is another mechanism to install global shortcuts in the system. An example of it is installed in the system: SpotlightShortcuts On Thu, Dec 12, 2013 at 10:59 AM, Nicolas Cellier < nicolas.cellier.aka.nice@gmail.com> wrote:
BTW, no world binding has yet been initialized yet in Pharo 3.0 (but CMD+K) Is it intentional? see http://stackoverflow.com/questions/17886061/switch-between-open-windows-in-p...
2013/12/12 phil@highoctane.be <phil@highoctane.be>
Very sweet indeed.
Phil
On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote:
Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
-----------------------------------------------------------------------------------
[Pharo Trick: #0004] - Run code using a key command to speedup development
-----------------------------------------------------------------------------------
Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions
-----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate
it
from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
guille is the keymapping chapter up to date to that regards. It would be good to explain better the bubble and the global binding. If you have one hour it would be good. Stef On Dec 12, 2013, at 11:11 AM, Guillermo Polito <guillermopolito@gmail.com> wrote:
The world morph was initially intended to handle the global system shortcuts, taking advantage of the event bubbling. However, that posed the fact that the global shortcuts have less priority than other shortcuts. The bubbling will activate a global shortcut only if it they key event did not activated a shortcut of its childs first.
So we changed that, and there is another mechanism to install global shortcuts in the system. An example of it is installed in the system: SpotlightShortcuts
On Thu, Dec 12, 2013 at 10:59 AM, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote: BTW, no world binding has yet been initialized yet in Pharo 3.0 (but CMD+K) Is it intentional? see http://stackoverflow.com/questions/17886061/switch-between-open-windows-in-p...
2013/12/12 phil@highoctane.be <phil@highoctane.be>
Very sweet indeed.
Phil
On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote: Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
----------------------------------------------------------------------------------- [Pharo Trick: #0004] - Run code using a key command to speedup development ----------------------------------------------------------------------------------- Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions -----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate it from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
Yes regarding the bindKeymapping:toAction: https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess... - the bubbling explanation needs more love - the global categories are not yet there How do I add figures with the pier sintax? :) On Thu, Dec 12, 2013 at 11:27 AM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote:
guille
is the keymapping chapter up to date to that regards. It would be good to explain better the bubble and the global binding. If you have one hour it would be good.
Stef
On Dec 12, 2013, at 11:11 AM, Guillermo Polito <guillermopolito@gmail.com> wrote:
The world morph was initially intended to handle the global system shortcuts, taking advantage of the event bubbling. However, that posed the fact that the global shortcuts have less priority than other shortcuts. The bubbling will activate a global shortcut only if it they key event did not activated a shortcut of its childs first.
So we changed that, and there is another mechanism to install global shortcuts in the system. An example of it is installed in the system: SpotlightShortcuts
On Thu, Dec 12, 2013 at 10:59 AM, Nicolas Cellier < nicolas.cellier.aka.nice@gmail.com> wrote:
BTW, no world binding has yet been initialized yet in Pharo 3.0 (but CMD+K) Is it intentional? see http://stackoverflow.com/questions/17886061/switch-between-open-windows-in-p...
2013/12/12 phil@highoctane.be <phil@highoctane.be>
Very sweet indeed.
Phil
On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote:
Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
-----------------------------------------------------------------------------------
[Pharo Trick: #0004] - Run code using a key command to speedup development
-----------------------------------------------------------------------------------
Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions
-----------------------------------------------------------------------------------
If you have to run some code very often you typically have to
evaluate it
from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
https://github.com/DamienCassou/pier-cl/blob/master/CheatSheet.pier.md +caption>file://figures/image.png+ Ben On 12 Dec 2013, at 11:50, Guillermo Polito <guillermopolito@gmail.com> wrote:
Yes regarding the bindKeymapping:toAction:
https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess...
- the bubbling explanation needs more love - the global categories are not yet there
How do I add figures with the pier sintax? :)
On Thu, Dec 12, 2013 at 11:27 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote: guille
is the keymapping chapter up to date to that regards. It would be good to explain better the bubble and the global binding. If you have one hour it would be good.
Stef
On Dec 12, 2013, at 11:11 AM, Guillermo Polito <guillermopolito@gmail.com> wrote:
The world morph was initially intended to handle the global system shortcuts, taking advantage of the event bubbling. However, that posed the fact that the global shortcuts have less priority than other shortcuts. The bubbling will activate a global shortcut only if it they key event did not activated a shortcut of its childs first.
So we changed that, and there is another mechanism to install global shortcuts in the system. An example of it is installed in the system: SpotlightShortcuts
On Thu, Dec 12, 2013 at 10:59 AM, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote: BTW, no world binding has yet been initialized yet in Pharo 3.0 (but CMD+K) Is it intentional? see http://stackoverflow.com/questions/17886061/switch-between-open-windows-in-p...
2013/12/12 phil@highoctane.be <phil@highoctane.be>
Very sweet indeed.
Phil
On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote: Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
----------------------------------------------------------------------------------- [Pharo Trick: #0004] - Run code using a key command to speedup development ----------------------------------------------------------------------------------- Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions -----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate it from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
Then maybe Komitter should use this mechanism instead of registering to World. But I am not sure if letting the possibilities to someone to override it locally is bad or not Ben On 12 Dec 2013, at 11:50, Guillermo Polito <guillermopolito@gmail.com> wrote:
Yes regarding the bindKeymapping:toAction:
https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess...
- the bubbling explanation needs more love - the global categories are not yet there
How do I add figures with the pier sintax? :)
On Thu, Dec 12, 2013 at 11:27 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote: guille
is the keymapping chapter up to date to that regards. It would be good to explain better the bubble and the global binding. If you have one hour it would be good.
Stef
On Dec 12, 2013, at 11:11 AM, Guillermo Polito <guillermopolito@gmail.com> wrote:
The world morph was initially intended to handle the global system shortcuts, taking advantage of the event bubbling. However, that posed the fact that the global shortcuts have less priority than other shortcuts. The bubbling will activate a global shortcut only if it they key event did not activated a shortcut of its childs first.
So we changed that, and there is another mechanism to install global shortcuts in the system. An example of it is installed in the system: SpotlightShortcuts
On Thu, Dec 12, 2013 at 10:59 AM, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote: BTW, no world binding has yet been initialized yet in Pharo 3.0 (but CMD+K) Is it intentional? see http://stackoverflow.com/questions/17886061/switch-between-open-windows-in-p...
2013/12/12 phil@highoctane.be <phil@highoctane.be>
Very sweet indeed.
Phil
On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote: Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
----------------------------------------------------------------------------------- [Pharo Trick: #0004] - Run code using a key command to speedup development ----------------------------------------------------------------------------------- Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions -----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate it from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
Ahh a little detail! We are deprecating the usage of #on:do: for shortcuts so they are not mistaken with exception handling, nor announcement registration :). The right snippet would be World bindKeyCombination: $a shift command toAction: [ Object browse ]. Actually, if you see the #on:do: implementation in Morph, you'll notice it uses #bindKeyCombination:toAction: . Aaaand, we should probably remove/deprecate the old one. On Thu, Dec 12, 2013 at 10:02 AM, phil@highoctane.be <phil@highoctane.be>wrote:
Very sweet indeed.
Phil
On Thu, Dec 12, 2013 at 9:42 AM, Max Leske <maxleske@gmail.com> wrote:
Nice! Didnât know about that one.
On 12.12.2013, at 09:35, Torsten Bergmann <astares@gmx.de> wrote:
-----------------------------------------------------------------------------------
[Pharo Trick: #0004] - Run code using a key command to speedup development
-----------------------------------------------------------------------------------
Works in: Pharo3.0 Latest update: #30637 but should work in other 2.0/3.0 versions
-----------------------------------------------------------------------------------
If you have to run some code very often you typically have to evaluate
it
from a workspace over and over again. But to speed up you can assign a global keymapping which allows to run it with a simple keyboard shortcut:
World on: $a shift command do: [ Object browse ].
Evaluate this once in a workspace. After that anytime you press SHIFT, the command button (on Windows this is ALT) and A together the block gets evaluated and your code runs easily.
Background: =========== In Pharo there is a global morph called "World" representing the desktop. One can assign a key combination to any morph including this world. If you are interested on the Keymappings then read http://playingwithobjects.wordpress.com/2013/03/19/keymappings-101-for-pharo... for more
participants (7)
-
Benjamin -
Guillermo Polito -
Max Leske -
Nicolas Cellier -
phil@highoctane.be -
Stéphane Ducasse -
Torsten Bergmann