Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to filter empty lines? #96

Open
oderwat opened this issue Aug 10, 2023 · 3 comments
Open

How to filter empty lines? #96

oderwat opened this issue Aug 10, 2023 · 3 comments

Comments

@oderwat
Copy link

oderwat commented Aug 10, 2023

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

@olshevskiy87
Copy link
Contributor

@oderwat with opened slit window try

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

@oderwat
Copy link
Author

oderwat commented Aug 10, 2023

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
Copy link
Author

oderwat commented Aug 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants