@@ -48,10 +48,12 @@ Zettelkasten page.
48
48
- [[#accessing-the-data][Accessing the data]]
49
49
- [[#marking--unmarking][Marking / unmarking]]
50
50
- [[#walking-the-list][Walking the list]]
51
+ - [[#filtering][Filtering]]
51
52
- [[#cursor-sensor-functions][Cursor sensor functions]]
52
53
- [[#low-level-functions][Low-level functions]]
53
54
- [[#changelog][Changelog]]
54
55
- [[#changes-to-the-current-version-no-new-release][Changes to the current version (no new release)]]
56
+ - [[#05][0.5]]
55
57
:END:
56
58
57
59
* Project still in progress
@@ -392,6 +394,22 @@ All the following functions respect =lister-local-marking-predicate=:
392
394
| lister-walk-all | Do something on each item. |
393
395
|------------------+-------------------------------------------------------------------|
394
396
397
+ ** Filtering
398
+
399
+ A filter is a function which receives one argument, the item's data.
400
+ If this filter function returns a non-nil value, the item will be
401
+ displayed, else it will be hidden. Think of it parallel to
402
+ `seq-filter`.
403
+
404
+ If a filter is set, subsequent insertions will honor the filter; i.e.,
405
+ newly inserted items will only be visible if they match the filter.
406
+
407
+ | Function | Description |
408
+ |-------------------+-------------------------------|
409
+ | lister-set-filter | Set or remove filter function |
410
+ |-------------------+-------------------------------|
411
+
412
+
395
413
** Cursor sensor functions
396
414
397
415
=lister= uses =cursor-sensor-mode=. Thus an event is caused by every
@@ -427,6 +445,8 @@ Some of the most useful low-level functions:
427
445
* Changelog
428
446
** Changes to the current version (no new release)
429
447
448
+ ** 0.5
449
+ + Simplified filtering.
430
450
+ Extend the documentation.
431
451
+ /Quite/ some internal cleanup of the code base.
432
452
+ Use =org-make-toc= for the README.org
0 commit comments