LivelyKernel / lively.next

This is the repository of the lively.next project (https://lively-next.org).
MIT License
63 stars 16 forks source link

Open editor on object from its inspector (or, more generally, from any workspace) #1582

Closed rickmcgeer closed 1 day ago

rickmcgeer commented 4 days ago

Describe the Feature When I'm inspecting an object, I often want to look at the code as well as the inspection. However, the inspector is a different window -- what I'll typically have to do is find the object again, click on the wrench icon, and pop open an object editor. Which is obviously a slightly inconvenient workflow.

Graphics Lively still does this better than anyone, so no competing screenshots.

Implementation Details Honestly, 90% of the cases are covered by an edit method I can just evaluate, e.g., this.foo.edit(). Or a keyboard shortcut (-Shift-E, for example). Actually, now that I think about it, maybe a combined Editor/Inspector would be more convenient.

merryman commented 2 days ago

Does this help?

object editor from inspector

I realize that for some reason the keyboard shortcut does not work. I will look intro it.

rickmcgeer commented 1 day ago

It does! It took me a little while to figure out that "editIt" went to the selection. When I initially tried I got the "No target for ObjectEditor" message. This works fine! One suggestion is that if there is no selection, the target for the OE should be this