pyastgrep icon indicating copy to clipboard operation
pyastgrep copied to clipboard

Add options to control column number printing

Open spookylukey opened this issue 2 years ago • 0 comments

The current behaviour is to output a line for every AST match, which could be multiple per line, including column numbers. This is a good default, but we might want to add an argument to control this:

--column=none
--column=first
--column=all  # the current behaviour

--column=first would be the same as ripgrep's rg --column

I'm not sure how useful this would be in practice, so I'll only work on it if there is significant interest.

spookylukey avatar Oct 24 '22 20:10 spookylukey