tigrawap / slit

slit - a modern PAGER for viewing logs, get more than most in less time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to filter empty lines?

oderwat opened this issue · comments

I would like to filter out all empty lines, but can't find how to do it.

@oderwat with opened slit window try

  • press key -
  • press Ctrl + /
  • enter ^$ and press Enter

Ah, so the regex mode does not only work with the searches. I actually wonder if it would be cool to have a key that enables / disables a simple filter for comment lines (starting with ; # // and empty lines). I actually used "slit" to check long configuration files and found it really nice to simply filter out all the stuff that is not really active or just explains things.

BTW: CTRL + / is not easy on a German keyboard. I guess I need to create a fork :)