mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Move closing region tag to the end of the line
Highlight works by highlighting the entire region that exists Since current region starts and immediately ends, there is no highlighting
This commit is contained in:
parent
e6a55d5a7b
commit
a5f98c138a
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
|
@ -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),
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user