-
-
Notifications
You must be signed in to change notification settings - Fork 604
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 popup for tags #705
Add popup for tags #705
Conversation
Really cool start! Thanks @cruessler
I actually think the toughest part is yet to come 🙈 I think we will want more than the current bare tag-name-list - the very least we should show with each entry: timestamp, creator (and maybe a short-desc). This makes the whole process (if not already) require to be able to run async (since we need to pull commit infos on each
Exactly.
That would actually be cool, there are probably even more places we have such code! On top of what is mentioned above what is still missing:
|
Thanks for the in-depth feedback! I’ll update the PR over the next few days. |
@extrawurst Do you want the popup to have some sort of indicator whether a tag is annotated, e. g. bold font or a symbol? |
I don’t see why right now. Any reason to do so? I doubt most people actually know there is a difference 🤣 |
Fine with me, that will likely also be easier to implement. 😀 Just wanted to make sure so that I can adapt the data structures to all use cases from the start. |
@extrawurst Does the following layout work for you? As soon as the layout is done, I’ll refactor a bit and implement the rest. |
@cruessler that looks great! lets sort the tags by the date of the tag though :) |
@extrawurst I’ve updated the PR and added “Delete tag” as well as sorting by timestamp. When you said fetching tags is already part of the push tags functionality, what were you referring to? As far as I can see, the required functions are not implemented yet, but it would be relatively easy to copy and adapt the existing ones. Did you have that in mind? |
@cruessler really cool! so I just double checked and we even have a unittest edit: checking it out locally I just realize we should support actually jumping to a tag in the loglist via |
@extrawurst I think that’s a good idea, I’ll update the PR soon! |
@extrawurst I added a command “Select commit” and tested it in the There is one minor issue I’m not sure how to handle best. If the commit is not part of the current log because it is on a different branch or has not been loaded yet, the popup closes, but nothing else happens. That might be confusing. We could pass |
@cruessler cool stuff! |
This closes gitui-org#483.
You’re right! I changed that. The behaviour came from |
ok I am going to merge this now 🥳 |
This closes #483.
This is a preview that has all the foundations in place so that we can now quickly iterate on the features that should be part of the first release.
@extrawurst You mentioned the ability to jump to a specific commit in the log view. Did you have something like
InternalEvent::JumpToCommitInRevlog(CommitId)
in mind?The selection logic, in particular
TagListComponent::move_selection
, is quite similar to the one inBlameFileComponent
, in particularBlameFileComponent::move_selection
, so there is some potential for code re-use, but I did not yet explore that in-depth.Let me know what you think!