Skip to content
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

"Show Line Commit Details" date format #89

Closed
SailorMax opened this issue Jun 12, 2017 · 18 comments
Closed

"Show Line Commit Details" date format #89

SailorMax opened this issue Jun 12, 2017 · 18 comments
Assignees
Labels
feature New feature or request

Comments

@SailorMax
Copy link

  • GitLens Version: 4.0.1
  • VSCode Version: 1.13.0
  • OS Version: Windows 10.1703

Steps to Reproduce:

  1. right click on any line / "Show Line Commit Details"

Expected: commit details in format "gitlens.annotations.line.trailing.format" (or else?) with date in format "gitlens.annotations.line.trailing.dateFormat"

Actual: commit details in gitlens author specific format.

P.S. Do we really need so many settings for GitLens? ;) For example: why do you support "${message|40?}", but not "{$date|YYYY-MM-DD}"?

@SailorMax
Copy link
Author

Settings for date format in "Show File History" also can't find.

@eamodio eamodio added the feature New feature or request label Jun 12, 2017
@eamodio eamodio self-assigned this Jun 12, 2017
@eamodio
Copy link
Member

eamodio commented Jun 12, 2017

In the next release there will be a new gitlens.defaultDateFormat that can be used as the default format for all absolute dates GitLens uses. The more specific date format settings, will now override the default.

As for the relative dates in the GitLens UI, I won't be providing an option to change them to absolute date.

Do we really need so many settings for GitLens?

If you don't need them, don't use them :) I like to err on the side of flexibility with a power tool such as GitLens, and I try my best to pick the best defaults I can.

For example: why do you support "${message|40?}", but not "{$date|YYYY-MM-DD}"?

It would have made the template parsing more complex, but PRs are welcome :)

@SailorMax
Copy link
Author

If you don't need them, don't use them :)

With joy, but I need 10- of them (no codeLens, no blame.line and absolute dates)
and for it I have to scan all your library (69), because I don't know how you named required settings :)

@eamodio
Copy link
Member

eamodio commented Jun 12, 2017

You don't need to go digging for them -- they are all well-documented here

@eamodio
Copy link
Member

eamodio commented Jun 12, 2017

@SailorMax the latest GitLens beta adds the new gitlens.defaultDateFormat. Please follow these instructions to install a pre-release. Let me know if you experience any issues -- thanks!

@eamodio
Copy link
Member

eamodio commented Jun 13, 2017

4.1 is now out

@eamodio eamodio closed this as completed Jun 13, 2017
@SailorMax
Copy link
Author

@eamodio
Sorry for pause. My work day was done :)

In "Show Line Commit Details" date ignore "gitlens.defaultDateFormat". What can I do with that?

Plus in 4.1.0 "Toggle File Blame" button lost its icon.

@eamodio
Copy link
Member

eamodio commented Jun 13, 2017

No worries.

As I mentioned above:

As for the relative dates in the GitLens UI, I won't be providing an option to change them to absolute dates.

Doh! Thanks for the report on the icon -- 4.1.1 coming in a few.

@SailorMax
Copy link
Author

I did not ask about "to change them to absolute dates" :) I ask about date format ;)
Do you want not add settings for format of dates in "Show Line Commit Details" and "Show File History"?

@eamodio
Copy link
Member

eamodio commented Jun 13, 2017

Can you post a screenshot of the dates you are talking about? If you are talking about the dates (x days ago) in the quickpick menus -- then you are correct, I'm not interested in adding the ability to control them.

@SailorMax
Copy link
Author

Yes, I talk about them. They are not informative, when all records of history are "1 month ago".
Why no interested? Not so easy?

@SailorMax
Copy link
Author

@eamodio
in 4.1.0 was button, but without icon
in 4.1.1 no button - no problem? :)

@eamodio
Copy link
Member

eamodio commented Jun 13, 2017

I see (re: the dates). I'll think more about how I can do that well -- thanks.

As for the button, I don't see it missing -- you still do?

@eamodio eamodio reopened this Jun 13, 2017
@SailorMax
Copy link
Author

As for the button, I don't see it missing -- you still do?

Sorry. Looks like it was problem from my side. VSCode had some error in console. Uninstall GitLens/Reload/Install GitLens/Reload helped. Possible some kind of cache conflict. The button was appeared.

@eamodio eamodio added this to the Backlog milestone Sep 4, 2017
@eamodio eamodio added the help wanted Want community input and/or pull request label Sep 4, 2017
@eamodio eamodio assigned eamodio and unassigned eamodio Dec 31, 2017
@eamodio eamodio removed the help wanted Want community input and/or pull request label Jan 2, 2018
@eamodio eamodio modified the milestones: Backlog, Soon™ Jan 2, 2018
@eamodio eamodio added the pending-release Resolved but not yet released to the stable edition label Jan 3, 2018
@eamodio
Copy link
Member

eamodio commented Jan 3, 2018

@SailorMax In 7.3 beta, I've added support for controlling the default date style via the gitlens.defaultDateStyle setting. Let me know what you think and sorry for the LONG delay in adding this.

@SailorMax
Copy link
Author

SailorMax commented Jan 3, 2018

Thanks! Looks like it work.
By why we need "defaultDateStyle" when we have "defaultDateFormat"? If user need, he can just setup "defaultDateFormat" to relative or absolute value. Not? Plus he could setup both formats (2018-01-03 12:21 [10 minutes ago] for example)

@eamodio
Copy link
Member

eamodio commented Jan 3, 2018

I didn't want to overload/conflate the current data formatting, with a switch between relative and absolute. Thanks for testing!

@eamodio eamodio removed the pending-release Resolved but not yet released to the stable edition label Jan 15, 2018
billsedison added a commit to noside911/vscode-gitlens that referenced this issue Jan 4, 2019
Issue 61: Show line comment from common windows.

Blue bookmark icons appear on common editor windows, but "Show comment for this line" button menu doesn't
@eamodio eamodio removed this from the Soon™ milestone Jul 19, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants