Be careful that Cmd r is used for rename in Nautilus also...� Maybe for reformat code something like cmd shift f can be used ($f cmd shift).
Ok, done. If anybody is missing the format (Ctrl+r) command in Nautilus, here it is done.
Now you can write code to the kilometer, and press Ctrl+r, Ctrl+s. Et voil�, nicely formatted smalltalk code.
Issue 6363: Format command (linked to Ctrl+r)
Slice uploaded to Pharo Inbox.
Thierry
Le 13/07/2012 15:57, Goubier Thierry a �crit :
Le 13/07/2012 15:45, Benjamin a �crit :
in a workspace evaluate
KMLog setDebug
Open a Transcript, and it will tell what ctrl+r is used for :)
It only tells you [Ctrl+r] :-(Thierry
Just noticed that my changes to NautilusUI were not taken in account
anyway.
Ben
On Jul 13, 2012, at 3:44 PM, Goubier Thierry wrote:
Le 13/07/2012 15:36, Benjamin a �crit :
command r is already used (to rename stuff)
But it triggers on Alt+r, not Ctrl+r.
Ctrl+r is caught, but I don't know by what.
I'll try to change the key (or the rename key).
Trying to follow the KM areas, but lost in a maze of small classes,
all identical. How do you guys manage that ?
Thierry
try a key not used like h
Ben
On Jul 13, 2012, at 3:32 PM, Goubier Thierry wrote:
Le 13/07/2012 14:42, Benjamin a �crit :
(aBuilder shortcut: #Foo)
� � � � category: #NautilusSourceCodeShortcuts
� � � � default: $r command
� � � � do: [:target | self formatTextFor: target sourceTextArea ]
� � � � description: 'Format the text of a text morph'.
Defined on class side of the class you want :)
Found that, yes.
Doesn't work...
Cmd+r result in a tab (well, if Ctrl+r is really Cmd+r in Linux).
Thierry
--
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
--
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
--
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