todo-comments.toml
1 [metadata] 2 name = "todo-comments" 3 description = "Find TODO, FIXME, HACK, and XXX comments in codebase" 4 requirements = ["rg", "bat"] 5 6 [source] 7 command = "rg -n --color=always '(TODO|FIXME|HACK|XXX|BUG|WARN):?'" 8 ansi = true 9 output = "{strip_ansi|split:\\::..2}" 10 11 [preview] 12 command = "bat -n --color=always --highlight-line '{strip_ansi|split:\\::1}' '{strip_ansi|split:\\::0}'" 13 offset = "{strip_ansi|split:\\::1}" 14 env = { BAT_THEME = "Catppuccin Mocha" } 15 16 [ui.preview_panel] 17 header = "{strip_ansi|split:\\::..2}" 18 19 [keybindings] 20 enter = "actions:edit" 21 22 [actions.edit] 23 description = "Open file in editor at the comment" 24 command = "nvim '+{strip_ansi|split:\\::1}' '{strip_ansi|split:\\::0}'" 25 mode = "execute"