YS-L / csvlens

Command line csv viewer
MIT License
2.47k stars 41 forks source link

How to find the first empty / not-empty row? #76

Closed szabgab closed 3 months ago

szabgab commented 4 months ago

It took me a while but finally I figured out that in order to find the first row where a given column is not empty can be done by switching to column-selection mode using TAB and then pressing / and searching for . that should match any character.

I still could not figure out though how to find the first row where a given column is empty? Is it possible? If not, maybe there could a negated regex search eg. !/<regex> would search for rows not matching the regex.

YS-L commented 4 months ago

You can try searching using this regex: ^$

It should find the empty strings, though the highlighting probably won't work well because there's no text to highlight in this case.

YS-L commented 4 months ago

And yes, searching using column selection mode will constrain the search to a particular column. I was hoping that this would be intuitive, but the documentation can definitely be improved.

szabgab commented 4 months ago

Thanks. When you refer to documentation do you mean the help page, the README in the git repository or something else (that I have not found yet)?

YS-L commented 4 months ago

I was referring to the README and the in app help page. That's all there is to it for now!