-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Choose project popover #1030
Choose project popover #1030
Conversation
From the screenshot it's even better than what I was thinking! I think there may be some debate as to whether it should adapt to the number of projects i.e if >8 then make it scrollable otherwise crop the popover to fit the number of entries |
* FileView responsible for removing project from GitManager when closed
@hanaral Yes, unless/until we display recent but not loaded projects as well as loaded projects the list is unlikely to contain more than 3 projections in my opinion. Trying to work with more than that at once would be unwieldy. |
I do still think it would be useful to have it, in case Code is used by other projects that need their tools to scale. |
We need to raise an issue in the icons project for a symbolic (git) project icon. I'll fix the button height - I copied the code from the formatbar but I must have missed something. |
I think it might just be necessary to expand to like 8 letters and then ellipsise the rest, considering it could just show the full name on hover. |
# Conflicts fixed in: # src/Dialogs/NewBranchDialog.vala
@danrabbit in your issue report #991, what is in the right-hand half of the button - I cannot quite read your illustration. Is it the current branch name with a popover list of available branches? Have you decided about closing/hiding/collapsing non-active projects? Should documents from non-active projects remain open? |
@hanaral The button now displays max 24 chars, which should be enough for most repos, and ellipsizes if not. May as well show the full path to the repo in the tooltip as when dealing with forks there may be two repos with the same name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working my way through here, this is a good direction!
I appreciate the search entry since I often have a lot of projects open
One regression I noticed is that I can no longer use global search on projects which aren't using Git
In my mockup I had an idea of maybe a linked button for choosing the git branch, but that idea can wait for a follow up since there is already a way to change the branch.
get_radio_group () Co-authored-by: Daniel Foré <[email protected]>
Co-authored-by: Daniel Foré <[email protected]>
Co-authored-by: Daniel Foré <[email protected]>
* ChooseProjectButton: use a liststore to populate project list * scope down manager * smaller diff * remove unused method
Co-authored-by: Daniel Foré <[email protected]>
* ChooseProjectButton: simplify ProjectRow click handling * actual fix
@danrabbit Do we need to address what to do with non-active projects and documents or can we leave that to another PR? One problem as it is, is that if you change the active project with the button it immediately reverts back to the original project as soon as the current document is refocussed, because the active project is kept in sync with the current document. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let's leave that case for follow up. Merging this would unblock a lot of other work already, so I'm happy to get it in and we can iterate :)
Fixes #991 (partially)
Alternative implementation to #1023, similar to that used for FormatBar.
Open questions, given that the number of open projects is likely to be small compared with number of formats:
A potential future development would be to maintain a list of recent but not loaded projects that could also be displayed in the list.