pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Fluid display of class definitions should have a visual way to show extended definition

Open demarey opened this issue 1 year ago • 5 comments

For now, when enabling fluid, one can see a class definition as follows:

Object << #SomeClass
	slots: { #a };
	package: 'SomePackage'

If you need to use a trait or a shared var, you have to guess what is the syntax. There should be a help or a button to show the full syntax / description of a class.

demarey avatar Jul 07 '22 16:07 demarey

Use expand (check in the menu and you will get a full definition with all the option )- cmd + E So you can do cmd-E edit cmd-S

S

Ducasse avatar Jul 07 '22 20:07 Ducasse

Capture 2022-07-07 at 22 09 16

Ducasse avatar Jul 07 '22 20:07 Ducasse

Now we could add a button to do the expand. Because all the behavior is available.

Ducasse avatar Jul 07 '22 20:07 Ducasse

I know there was a shortcut but I forgot it. It is cool there is already a menu entry for that but I would never have the idea to search there. I think we should add a more visible way to expand the definition. Maybe by adding an expand icon on the first line in the code editor (left margin) ?

demarey avatar Jul 07 '22 20:07 demarey

Yes it would be good. I just do not know how to do it.

Ducasse avatar Jul 09 '22 11:07 Ducasse