1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge pull request #433 from Seanstoppable/highlightline

Move closing region tag to the end of the line. Closes #431
This commit is contained in:
Chris Cummer 2019-05-09 15:55:55 -07:00 committed by GitHub
commit 75f3e8f998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View File

@ -113,7 +113,7 @@ func (widget *Widget) contentFrom(messages []Message) string {
var str string
for idx, message := range messages {
str = str + fmt.Sprintf(
`["%d"][""][%s] [blue]%s [lightslategray]%s: [%s]%s [aqua]%s`,
`["%d"][%s] [blue]%s [lightslategray]%s: [%s]%s [aqua]%s[""]`,
idx,
widget.rowColor(idx),
message.From.DisplayName,

View File

@ -114,7 +114,7 @@ func (widget *Widget) contentFrom(stories []Story) string {
for idx, story := range stories {
u, _ := url.Parse(story.URL)
str = str + fmt.Sprintf(
`["%d"][""][%s] [yellow]%d. [%s]%s [blue](%s)`,
`["%d"][%s] [yellow]%d. [%s]%s [blue](%s)[""]`,
idx,
widget.rowColor(idx),
idx+1,

View File

@ -108,7 +108,7 @@ func (widget *Widget) contentFrom(view *View) string {
if validID.MatchString(job.Name) {
str = str + fmt.Sprintf(
`["%d"][""][%s] [%s]%-6s[white]`,
`["%d"][%s] [%s]%-6s[white][""]`,
idx,
widget.rowColor(idx),
widget.jobColor(&job),

View File

@ -122,6 +122,7 @@ func (widget *Widget) openItem() {
func (widget *Widget) unselect() {
widget.selected = -1
widget.display()
}
func (widget *Widget) contentFrom(searchResult *SearchResult) string {
@ -129,7 +130,7 @@ func (widget *Widget) contentFrom(searchResult *SearchResult) string {
for idx, issue := range searchResult.Issues {
fmtStr := fmt.Sprintf(
`["%d"][""][%s] [%s]%-6s[white] [green]%-10s[white] [yellow][%s][white] [%s]%s`,
`["%d"][%s] [%s]%-6s[white] [green]%-10s[white] [yellow][%s][white] [%s]%s[""]`,
idx,
widget.rowColor(idx),
widget.issueTypeColor(&issue),

View File

@ -52,7 +52,7 @@ func (widget *Widget) formattedItemLine(idx int, item *checklist.ChecklistItem,
}
str := fmt.Sprintf(
`["%d"][""][%s:%s]|%s| %s[white]`,
`["%d"][%s:%s]|%s| %s[white][""]`,
idx,
foreColor,
backColor,