slit icon indicating copy to clipboard operation
slit copied to clipboard

How to filter empty lines?

Open oderwat opened this issue 1 year ago • 3 comments

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

oderwat avatar Aug 10 '23 10:08 oderwat

@oderwat with opened slit window try

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

olshevskiy87 avatar Aug 10 '23 10:08 olshevskiy87

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.

oderwat avatar Aug 10 '23 13:08 oderwat

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

oderwat avatar Aug 10 '23 13:08 oderwat