-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature request: Quick copy commit subject/hash/tag #76
Comments
hmm I can see how that could be helpful
sure but then you'd need said icon next to all elements on hover: author name, hash, subject, date. And branches, stashes, where an additional icon would be hard to squeeze in. I'm thinking perhaps really adding a new context action "Copy..." to all things (commit, commits, branches, tags, stashes) might be an idea, and clicking that shows a popup with various options for what you want to copy (hash, author name, name if it's a branch, origin, full name/origin, and so on). And when you're in a commit details pane, pressing CTRL+C will also open up this dialog. perhaps this would be ... too much thoughh |
If using icons, it would probably be fine to add them only for the most commonly used elements such as subject, hash. I've seen other extensions do this and it looks good and convenient. If using the context menu, then it can be added for any suitable elements. I personally prefer a quicker and lighter way, better with one~two steps, like directly in the menu/submenu rather than right-click>Click Copy...>popup>select the copy option>(maybe have to close the popup afterwards). |
I think the context menu does not necessarily need icons. I think it's better to have no icons instead of misleading ones. |
I've added a copy hash entry to the context menu (not yet released) for now.
@hansu Are any of the current ones misleading to you? If not, do you really think they should go? Or perhaps be disable-able? As a last resort, with the custom CSS option they can already be hidden out.
@Amanoki I don't think this is possible because the extension lives inside a "web view" which is basically a normal web page, entirely separated from the outside world including styles etc. There is communication with the backend via message parsing though. It's definitely a problem however that when you right click too far down, the menu is half hidden. The menu needs to be improved so that it opens upwards instead in this case, like common contexts menu always do in these situations. |
also agree that submenus would be better than a popup |
👍
They are much better and almost not misleading. I didn't remember exactly how they looked before. |
Is there any documentation of the classes or elements which can be modified by css? Or just look in the code in |
You could also look into |
I think that could work, would have to try a few different colors though. But is it really an improvement over the white fill color? (black in light theme) I haven't had any issue with it so far and like the fact that "HEAD" is generally always a white/-ish color: The bubbles' filling, the line's shadow (should be bit darker though), the |
The branch colors are currently calculated based on the hash of the branch names. The list of colors from which is chosen is hard coded. There's been an issue somewhere recently to maybe change that somewhere, make it configurable, change it to same colors from left to right all the time etc
the problem here is that both the target and the source branch are called "master", thus leading to identical branch colors! Maybe a solution can be to have the origin / remote be part of the color determination logic, except for when the origin is the "default origin" which is determined as the origin behind main or master. Would have to try this out. The amount of red branches tends to be bad indeed. |
👍
Oh yes you are right. Seems that I didn't look thoroughly enough. I think in this case it's okay to have the same colors =) |
Can you add that somehow to the documentation/README.md? |
Hopefully there can be a way to quickly copy the commit subjects, hashes, tag names, etc. This would be handy for searching or when reusing / referencing / sharing commit info.
Perhaps a copy icon next to the commit subject/hash on the list that only shows up when hovering over them.
Or maybe some options in the context menu like Copy... >Subject / Hash / Tag etc.
Thank you!
The text was updated successfully, but these errors were encountered: