Skip to content

Commit e4d1952

Browse files
document changes
1 parent 89fe6ac commit e4d1952

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.org

+20
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ Zettelkasten page.
4848
- [[#accessing-the-data][Accessing the data]]
4949
- [[#marking--unmarking][Marking / unmarking]]
5050
- [[#walking-the-list][Walking the list]]
51+
- [[#filtering][Filtering]]
5152
- [[#cursor-sensor-functions][Cursor sensor functions]]
5253
- [[#low-level-functions][Low-level functions]]
5354
- [[#changelog][Changelog]]
5455
- [[#changes-to-the-current-version-no-new-release][Changes to the current version (no new release)]]
56+
- [[#05][0.5]]
5557
:END:
5658

5759
* Project still in progress
@@ -392,6 +394,22 @@ All the following functions respect =lister-local-marking-predicate=:
392394
| lister-walk-all | Do something on each item. |
393395
|------------------+-------------------------------------------------------------------|
394396

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+
395413
** Cursor sensor functions
396414

397415
=lister= uses =cursor-sensor-mode=. Thus an event is caused by every
@@ -427,6 +445,8 @@ Some of the most useful low-level functions:
427445
* Changelog
428446
** Changes to the current version (no new release)
429447

448+
** 0.5
449+
+ Simplified filtering.
430450
+ Extend the documentation.
431451
+ /Quite/ some internal cleanup of the code base.
432452
+ Use =org-make-toc= for the README.org

0 commit comments

Comments
 (0)