From c259de580fae5a0bc54867b80556dbe50b859be1 Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Fri, 13 Dec 2024 20:52:32 +0000 Subject: [PATCH] explain how to include "line" in "all" filter #129 --- HELP.md | 5 +++-- extrakto.conf | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/HELP.md b/HELP.md index 3f201ef..13016b8 100644 --- a/HELP.md +++ b/HELP.md @@ -6,8 +6,9 @@ Extrakto uses fzf. You only need to type a few keys to find your selection with - Press *ctrl-f* to change to the next filter mode (*filter_key*) - *word*, the default filter allows you to select words (default min length=5) - - *all*, runs all filters and allows you select quotes, url, paths, etc. \ - You can define your own filters as well. + - *all*, runs all(*) filters and allows you select quotes, url, paths, etc. \ + You can define your own filters as well as selecting which are included in \ + the all selection (see extrakto.conf). - *line*, select full lines - Press *ctrl-g* to change the grab area (see *grab_key* and configuration) diff --git a/extrakto.conf b/extrakto.conf index 0569c8d..014e1f2 100644 --- a/extrakto.conf +++ b/extrakto.conf @@ -57,3 +57,10 @@ alt2: "([^"\n\r]+)" [s-quote] regex: ('[^'\n\r]+') alt2: '([^'\n\r]+)' + +# note that "line" is a special filter that is not handled here for performance reasons +# if you want to include it in the 'all' filter you can define it like this in your +# config file: +# [line] +# regex: ([^\n\r]+?)\s+\r?\n +