sack icon indicating copy to clipboard operation
sack copied to clipboard

Colorized results cause file open problems

Open cfeduke opened this issue 12 years ago • 2 comments

By default both ag and ack colorize their results on my terminal.

sack tries to open the colorized file name which includes escape characters and fails.

Running with the --no-color option works as expected.

Update: I see sack__os is initialized in ~/.sackrc but apparently sack isn't sourcing that file? In any case putting a manual sack__os=uname within the function to strip out escape code characters with sed also doesn't seem to work.

cfeduke avatar Jan 31 '13 18:01 cfeduke

:+1:

sapegin avatar Feb 27 '13 19:02 sapegin

Uploaded a patch for this issue. #3

jordanlewis avatar Feb 28 '13 17:02 jordanlewis