mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
[#954] terminal.rs: handle multiline descriptions by calling on item.comment
This commit is contained in:
parent
31d8c26fd8
commit
853346748d
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ pub fn write(item: &Item) -> String {
|
|||
format!(
|
||||
"{tags_short}{delimiter}{comment_short}{delimiter}{snippet_short}{delimiter}{tags}{delimiter}{comment}{delimiter}{snippet}{delimiter}{file_index}{delimiter}\n",
|
||||
tags_short = style(limit_str(&item.tags, tag_width_percentage)).with(CONFIG.tag_color()),
|
||||
comment_short = style(limit_str(&item.comment, comment_width_percentage)).with(CONFIG.comment_color()),
|
||||
comment_short = style(limit_str(&fix_newlines(&item.comment), comment_width_percentage)).with(CONFIG.comment_color()),
|
||||
snippet_short = style(limit_str(&fix_newlines(&item.snippet), snippet_width_percentage)).with(CONFIG.snippet_color()),
|
||||
tags = item.tags,
|
||||
comment = item.comment,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue