Hi Alexandre,


>I have selected the class ROElement, and Nautilus still offers me to look for the implementors
There aren't suggestion for a class currently implemented so it won't offer you nothing yet. But something we can do it's to figure it out witch options would be nice to have, I was thinking in:
� � � - Class references
� � � - Hierarchy
� � � - Browse the class
So tell me your ideas and I will try to make a command for that and then add it as a suggestion, if you browse #specialCommands (the message I'm using to find the available actions for the selected code) you will see that the only real implementors are the RBVariableNode and RBMessageNode. I think that the actions you want are for RBClassReference (I will check it). But tell me what would you expect to see as a quick action over a class reference :)


About the suggestion... the "smart ones" are at the�end�of the menu, the other ones are the default, it will be very cool to replace the hole menu (it's something that I have in my todolist) but for a 0 prototype I've just focused on adding more options.
In fact I surely will be commiting some changes for display just a suggestions menu using a short cut (alt+t) tomorrow.

>Well.. why do I need a new window? Why not simply give the list of the implementors? You can easily�turn your menu entry "Implementors" as a submenu (as for "Extended search...") that gives the six implementors of this method directly.�

This is just the default behavior for implementors, since I'm using the same action, I will do some performace test in that and will check if I can add it as a task for my todo. Maybe searching for implementors isn't so fast and I wouldn't like to keep waiting a lot of time just to display a menu because maybe you don't even want to search implementors.
But it's a good point for navigation improvements that I also want to make :)

Thanks for the review and let me know about witch suggestions would you like to have depending what you have selected, I will implement as many as possible and try to finish with an easy way to add more options.




2013/4/10 Alexandre Bergel <alexandre.bergel@me.com>
Hi Gisela,

Currently, Nautilus is not really smart at giving a contextual menu.

Consider the following screenshot:

I have selected the class ROElement, and Nautilus still offers me to look for the implementors

Another screenshot:

I have selected the method startingPointOf:

I like the idea of easily accessing Implementors. Currently, if I click on "implementors of it" or in your menu "Implementors", I have a new window. Well.. why do I need a new window? Why not simply give the list of the implementors? You can easily�turn your menu entry "Implementors" as a submenu (as for "Extended search...") that gives the six implementors of this method directly.�

Alexandre


On Apr 10, 2013, at 8:18 AM, Gisela Decuzzi <giseladecuzzi@gmail.com> wrote:

Hello, I've been working in a prototype for adding some suggestions to the menu depending on what it's selected with the cursor. (The same feature that ALT-Browser has, but now in Nautilus).

It's just a little piece of code and has a lot of pending work, right now you can press right click over a message send and offers you browse implementors:
<Implementors.png>

And if you are in an instance variable name and then right click:�
<InstanceVariablesOptions.png>
(The same that ALT-Browser is doing, but in Nautilus)

I developed in the latest 2.0 image.


So, if you want to load in your image, play a little and then give me some feedback...

Gofer it�
smalltalkhubUser: 'gisela'
project: 'SmartSuggestions';
package: 'SmartSuggestions';
package: 'SmartSuggestionsNautilus';
load.

:)




--�
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel �http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.