nix-community / manix

A fast CLI documentation searcher for Nix [maintainers=@IogaMaster, @akarui-hikarii]
Apache License 2.0
59 stars 4 forks source link

Consider improving highlighting #6

Open IogaMaster opened 5 months ago

IogaMaster commented 5 months ago

Original Issue

https://github.com/mlvzk/manix/issues/21

Hey, great project but I have a little suggestion - Implement some sort of type highlighting. This is my current temp workaround:

manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --ansi --preview="manix '{}' | sed 's/type: /> type: /g' | bat -l Markdown --color=always --plain" 

I am just adding the symbol > in front of the type. Seems to get the job done :)

Thanks for this project, and good luck 👍