-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add icons to completions #2327
Comments
I don't mind doing this one, if someone else provides me with the icons to use. |
ping @goanpeca, @SylvainCorlay |
This is interesting. Regarding the icons to use, if you don't find what you like in font-awesome, I am creating a font with the missing icons for #2260 (things like the Python logo, debug action icons etc) Let me know if there is something to be added there. Meanwhile, you can also check out the icons of the outline explorer: (see function.png bellow) If you use existing spyder icons, it will be easier for me to rebind to the relevant font face that I use to replace them elsewhere. I am currently travelling, and will come back and try to complete this work next week. |
It looks like we have everything covered except for
|
I guess that anything in the form of a circled letter should be covered with qtawesome, so don't hesitate to add one if you need it for this feature! |
@blink1073, @SylvainCorlay yes I was thinking of using the outline explorer icons in the meantime, we can make one for attributes but should not be an issue. |
Sorry... wrong button |
The icons in the completion widget should be the same as the outline explorer anyway, even if we change them later. |
Yes, I had opened an issue on that ... #1904 |
@Nodd is always reading our minds. That was exactly what I was about to say, that the icons on the Outline Explorer should be the same as those added to the completion widget. Another thing is that I would prefer using encircled letters for those icons instead of the classic ones (like cubes or things like that). For example
I think this will make far more easier to visually filter among completions. I mention it because I've never been able to visually associate the classic icons with their counterparts on the programming language. Besides, this is the approach followed by RStudio too ;-) |
We could also play with colors (or think of something) to highlight the privacy of the type in question.... private |
@goanpeca, that depends on the info exposed by Jedi and Rope. |
👍 for letters in icons. Different symbol show the type difference but are bad to give what type it is. The privacy do no depend on jedi/rope. Since the name is given it is easy to check the number of leading underscores. |
I think the less icons the better, so as not to be confusing. Also, anyone have a quick way to make a 12x12 "A" icon? |
Inkscape? Don't put too much love into it! |
I tried and failed. |
By the way, why 12x12? |
The other ones in that folder are 12x12. |
Ok - thanks. I think it is fine! I would vote for capitalized. |
When I tried to make an icon for cells in the outline explorer I created a background icon from the other icons. it's https://github.com/spyder-ide/spyder/blob/master/img_src/outline.png Now on the icon itself, the black is not very visible, all I see is a color disk with a darker center. |
+1 for capitalized too :-) |
Better, @Nodd? |
Looking great @blink1073 |
Great ! One more suggestion (maybe for another PR ?): add parenthesis The |
Alternate icons welcome, @Nodd. 😄 |
I don't think it is worth putting too much effort in polishing bitmap icons since it is going to be replaced with glyphs quite soon. Besides the appearance for circled letters will probably be close to http://fortawesome.github.io/Font-Awesome/icon/question-circle/ |
Regarding devising icons, I will write a wiki page or so on how to edit and add glyphs in the Spyder font. |
@blink1073, really great!! It's so cool ;-) @Nodd, there's an issue about adding parentheses. I don't remember which one but I think @blink1073 said he'd take a look at it. @SylvainCorlay, remember that the current icon set is still going to be supported, and updated a bit for 3.0 (by me :-). So @blink1073's effort is not wasted time at all ;-) |
Looking at the screenshot:
Should we special-case ufuncs ? That could be confusing too. |
@Nodd has a really good point! I think we should give a special treatment to @blink1073, what do you think? |
I think that |
The problem is we don't have enough information to detect if it is a ufunc. We can't just match on the name of the function, because there could be another function with the same name. |
Add icons to the the completions based on type (a la pycharm).
We would return a list of (completion, type) tuples for a completion, and display the icon in the completion list.
The text was updated successfully, but these errors were encountered: