Hi Marcel, hi Subbu,
You could generate a name and leave it selected, like in the result of printIt. If you don't like the name, just type the new name as usual.
In the workspace just type: "preferredName := " then drop the object.
But this will still force me to rename the variable manually. Your proposed workflow requires me to 1. prepare the workspace, 2. perform the drag-drop gesture, and 3. execute the do-it. And the bindings of the workspace will be polluted with the ugly name anyway. :-)
Personally, I very rarely use this feature because this is so complicated. I would still like a preference for this, but I think a prefilled dialog window would not be more disruptive than doing a manual assignment first.
(PS: Just another bug I did not yet find the time to fix - since the Inspector refactoring, you cannot even longer drag the object from an inspector field into a workspace. Instead, you will always end up with a variable pointing to the InspectorField instance itself ...)
Best, Christoph
--- Sent from Squeak Inbox Talk
On 2020-03-25T09:23:41+01:00, marcel.taeumel@hpi.de wrote:
What about a preference for this particular behavior? :-)
That's even worse for this issue here. ;-) I think we can do better.
Best, Marcel Am 25.03.2020 09:23:01 schrieb Marcel Taeumel <marcel.taeumel at hpi.de>: Sounds good. It is also very easy to rename the generated variable. In the workspace just type: "preferredName := " then drop the object. No need for a disruptive dialog window.
Still -1 for the extra dialog window.
Best, Marcel
Am 24.03.2020 20:38:02 schrieb K K Subbu <kksubbu.ml at gmail.com>: On 25/03/20 12:03 AM, Thiede, Christoph wrote:
The first thing I do after dropping a variable is assigning it to another variable by hand, so for me, such a prompt would be really helpful. What about a preference for this particular behavior? :-)
You could generate a name and leave it selected, like in the result of printIt. If you don't like the name, just type the new name as usual. But if the name is okay, then press right arrow and continue with the rest of the line. This will go with the flow.
Regards .. Subbu