command/search: add search command to cortex
command/search: format code, change 'colors' to 'ansicolors' for terminal color