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:
commit
75f3e8f998
@ -113,7 +113,7 @@ func (widget *Widget) contentFrom(messages []Message) string {
|
|||||||
var str string
|
var str string
|
||||||
for idx, message := range messages {
|
for idx, message := range messages {
|
||||||
str = str + fmt.Sprintf(
|
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,
|
idx,
|
||||||
widget.rowColor(idx),
|
widget.rowColor(idx),
|
||||||
message.From.DisplayName,
|
message.From.DisplayName,
|
||||||
|
@ -114,7 +114,7 @@ func (widget *Widget) contentFrom(stories []Story) string {
|
|||||||
for idx, story := range stories {
|
for idx, story := range stories {
|
||||||
u, _ := url.Parse(story.URL)
|
u, _ := url.Parse(story.URL)
|
||||||
str = str + fmt.Sprintf(
|
str = str + fmt.Sprintf(
|
||||||
`["%d"][""][%s] [yellow]%d. [%s]%s [blue](%s)`,
|
`["%d"][%s] [yellow]%d. [%s]%s [blue](%s)[""]`,
|
||||||
idx,
|
idx,
|
||||||
widget.rowColor(idx),
|
widget.rowColor(idx),
|
||||||
idx+1,
|
idx+1,
|
||||||
|
@ -108,7 +108,7 @@ func (widget *Widget) contentFrom(view *View) string {
|
|||||||
|
|
||||||
if validID.MatchString(job.Name) {
|
if validID.MatchString(job.Name) {
|
||||||
str = str + fmt.Sprintf(
|
str = str + fmt.Sprintf(
|
||||||
`["%d"][""][%s] [%s]%-6s[white]`,
|
`["%d"][%s] [%s]%-6s[white][""]`,
|
||||||
idx,
|
idx,
|
||||||
widget.rowColor(idx),
|
widget.rowColor(idx),
|
||||||
widget.jobColor(&job),
|
widget.jobColor(&job),
|
||||||
|
@ -122,6 +122,7 @@ func (widget *Widget) openItem() {
|
|||||||
|
|
||||||
func (widget *Widget) unselect() {
|
func (widget *Widget) unselect() {
|
||||||
widget.selected = -1
|
widget.selected = -1
|
||||||
|
widget.display()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (widget *Widget) contentFrom(searchResult *SearchResult) string {
|
func (widget *Widget) contentFrom(searchResult *SearchResult) string {
|
||||||
@ -129,7 +130,7 @@ func (widget *Widget) contentFrom(searchResult *SearchResult) string {
|
|||||||
|
|
||||||
for idx, issue := range searchResult.Issues {
|
for idx, issue := range searchResult.Issues {
|
||||||
fmtStr := fmt.Sprintf(
|
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,
|
idx,
|
||||||
widget.rowColor(idx),
|
widget.rowColor(idx),
|
||||||
widget.issueTypeColor(&issue),
|
widget.issueTypeColor(&issue),
|
||||||
|
@ -52,7 +52,7 @@ func (widget *Widget) formattedItemLine(idx int, item *checklist.ChecklistItem,
|
|||||||
}
|
}
|
||||||
|
|
||||||
str := fmt.Sprintf(
|
str := fmt.Sprintf(
|
||||||
`["%d"][""][%s:%s]|%s| %s[white]`,
|
`["%d"][%s:%s]|%s| %s[white][""]`,
|
||||||
idx,
|
idx,
|
||||||
foreColor,
|
foreColor,
|
||||||
backColor,
|
backColor,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user