Skip to content

Commit

Permalink
Adjusted output
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Mar 3, 2023
1 parent 5e75e50 commit c424751
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.1.0

- Flipped output positions of file path and tags

## 0.0.9

- Notefd now adds color to title and matching tags if output is terminal
Expand Down
4 changes: 2 additions & 2 deletions src/notefd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,14 @@ let run
Fmt.pf formatter "%s" s
)
in
Fmt.pr "@[<v>> @[<v>%s@,%@ %s@,@[<h>[ %a ]@]@]@,@]"
Fmt.pr "@[<v>> @[<v>%s@,[ @[<hv>%a@] ]@,%@ %s@]@,@]"
(match header.title with
| None -> ""
| Some s ->
ANSITerminal.(sprintf
(empty_list_if_not_atty [ Bold; blue ]) "%s" s))
header.path
Fmt.(seq ~sep:sp colored_p) (Array.to_seqi tag_arr)
header.path
)
)
) headers
Expand Down
2 changes: 1 addition & 1 deletion src/version_string.ml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let s = "0.0.9"
let s = "0.1.0"

0 comments on commit c424751

Please sign in to comment.