Skip to content

Commit 333d7db

Browse files
committed
Moving Message Tokens to their own header
1 parent c309409 commit 333d7db

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22

3-
## 2.3.0 (March 24, 2018) [WIP]
3+
## 2.3.1 (March 24, 2018)
4+
5+
* Fix: Updating Readme
6+
7+
## 2.3.0 (March 24, 2018)
48

59
* Feature: Atempting to auto detect if you use a known git web interface [#15](https://github.com/Sertion/vscode-gitblame/issues/15) (Thanks to [@Fidge123](https://github.com/Fidge123), [@sabrehagen](https://github.com/sabrehagen), [@henvic](https://github.com/henvic), and an extra thanks to [@neerolyte](https://github.com/neerolyte))
610
* Feature: Added `gitblame.statusBarPositionPriority` for moving the status bar view [#25](https://github.com/Sertion/vscode-gitblame/issues/25) (Thanks to [@jvoigt](https://github.com/jvoigt))

README.md

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,10 @@ See Git Blame information in the status bar for the currently selected line.
2929
- use the git blame `-w` flag
3030
- `gitblame.infoMessageFormat` (`string`, default `"${commit.hash} ${commit.summary}"`)
3131
- message that appears when the `gitblame.quickInfo` command executes (when you click the status bar message)
32-
- available tokens:
33-
- `${commit.hash}` - 40-bit hash unique to the commit
34-
- `${commit.hash_short,length}` - the first `length` characters of the 40-bit hash unique to the commit, defaults to `7` first characters
35-
- `${commit.summary}` - the first line of the commit message
36-
- `${commit.filename}` - the file name where the line was committed
37-
- `${author.name}` - the commit author's name
38-
- `${author.email}` - the commit author's e-mail
39-
- `${author.timestamp}` - timestamp for the commit author's commit
40-
- `${author.tz}` - the commit author's time zone
41-
- `${committer.name}` - the committer's name
42-
- `${committer.email}` - the committer's e-mail
43-
- `${committer.timestamp}` - timestamp for the committer's commit
44-
- `${committer.tz}` - the committer's time zone
45-
- `${time.ago}` - displays an estimation of how long ago the author committed (e.g. `10 hours ago`, `20 days ago`, `4 months ago`)
46-
- `${time.custom,your_format}` - custom time format based on [momentjs.format(your_format)](https://momentjs.com/docs/#/displaying/format/) (uses author timestamp)
47-
- `${time.from}` - format based on [momentjs.fromNow()](https://momentjs.com/docs/#/displaying/fromnow/) (uses author timestamp)
48-
- `${time.c_ago}` - displays an estimation of how long ago the committer committed (e.g. `10 hours ago`, `20 days ago`, `4 months ago`)
49-
- `${time.c_custom,your_format}` - custom time format based on [momentjs.format(your_format)](https://momentjs.com/docs/#/displaying/format/) (uses committer timestamp)
50-
- `${time.c_from}` - format based on [momentjs.fromNow()](https://momentjs.com/docs/#/displaying/fromnow/) (uses committer timestamp)
32+
- [available tokens](#message-tokens)
5133
- `gitblame.statusBarMessageFormat` (`string`, default `"Blame ${author.name} ( ${time.ago} )"`)
5234
- message in the status bar about the current line's git blame commit
53-
- available tokens:
54-
- See `gitblame.infoMessageFormat`
35+
- [available tokens](#message-tokens)
5536
- `gitblame.statusBarMessageNoCommit` (`string`, default `"Not Committed Yet"`)
5637
- message in the status bar about the current line when no commit can be found
5738
- available tokens:
@@ -63,19 +44,37 @@ See Git Blame information in the status bar for the currently selected line.
6344
- an array of strings that will be displayed in sequence to denote progress while blaming files in larger repositories
6445
- supports [Octoicons](https://octicons.github.com/) with the `~spin` suffix for spin action
6546
- when the array only contains one item that item is rendered once instead of every 100ms
66-
- Some suggested values:
67-
- `["-", "/", "|", "\"]`
68-
- `["⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"]`
69-
- `["[Loading ]", "[oading L]", "[ading Lo]", "[ding Loa]", "[ing Load]", "[ng Loadi]", "[g Loadin]", "[ Loading]"]`
70-
- `["🕐", "🕑", "🕒", "🕓", "🕔", "🕕", "🕖", "🕗", "🕘", "🕙", "🕚", "🕛"]`
7147
- `gitblame.logLevel` (`array` of `string`, default `["info", "error", "command", "critical"]`)
7248
- an array of levels to log to the extension log
7349
- available levels:
74-
- `"info"`,
75-
- `"error"`,
76-
- `"command"`,
50+
- `"info"`
51+
- `"error"`
52+
- `"command"`
7753
- `"critical"`
7854

55+
## Message Tokens
56+
57+
| Token | Function | Parameter | Default Value | Description |
58+
|-------|----------|-----------|---------------|-------------|
59+
| `${commit.hash}` | No | - | - | 40-bit hash unique to the commit |
60+
| `${commit.hash_short,length}` | Yes | `length` | 7 | the first `length` characters of the 40-bit hash unique to the commit |
61+
| `${commit.summary}` | No | - | - | the first line of the commit message |
62+
| `${commit.filename}` | No | - | - | the file name where the line was committed |
63+
| `${author.name}` | No | - | - | the commit author's name |
64+
| `${author.email}` | No | - | - | the commit author's e-mail |
65+
| `${author.timestamp}` | No | - | - | timestamp for the commit author's commit |
66+
| `${author.tz}` | No | - | - | the commit author's time zone |
67+
| `${committer.name}` | No | - | - | the committer's name |
68+
| `${committer.email}` | No | - | - | the committer's e-mail |
69+
| `${committer.timestamp}` | No | - | - | timestamp for the committer's commit |
70+
| `${committer.tz}` | No | - | - | the committer's time zone |
71+
| `${time.ago}` | No | - | - | displays an estimation of how long ago the author committed (e.g. `10 hours ago`, `20 days ago`, `4 months ago`) |
72+
| `${time.custom,format}` | Yes | `format` | `undefined` | custom time format based on [momentjs.format(format)](https://momentjs.com/docs/#/displaying/format/) (uses author timestamp) |
73+
| `${time.from}` | No | - | - | format based on [momentjs.fromNow()](https://momentjs.com/docs/#/displaying/fromnow/) (uses author timestamp) |
74+
| `${time.c_ago}` | No | - | - | displays an estimation of how long ago the committer committed (e.g. `10 hours ago`, `20 days ago`, `4 months ago`) |
75+
| `${time.c_custom,format}` | No | `format` | `undefined` | custom time format based on [momentjs.format(format)](https://momentjs.com/docs/#/displaying/format/) (uses committer timestamp) |
76+
| `${time.c_from}` | No | - | - | format based on [momentjs.fromNow()](https://momentjs.com/docs/#/displaying/fromnow/) (uses committer timestamp) |
77+
7978
# [Planned Features](https://github.com/Sertion/vscode-gitblame/labels/Planned)
8079

8180
# [Known Issues](https://github.com/Sertion/vscode-gitblame/issues)

0 commit comments

Comments
 (0)