mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 00:36:13 +02:00
Add ability to search in entry title and body
jrnl was missing ability to search in entry titles and message bodies. This commit adds a '-search TEXT' option which, if specified, causes jrnl to display only those entries which have 'TEXT' in either their title or message body. Specifying the '-search' option also implies that the compose mode won't be used. Fixes #384.
This commit is contained in:
parent
8615679beb
commit
9d90d088e3
3 changed files with 17 additions and 3 deletions
|
@ -98,6 +98,17 @@ the last five entries containing both ``@pineapple`` **and** ``@lubricant``. You
|
|||
|
||||
``jrnl @pinkie @WorldDomination`` will switch to viewing mode because although **no** command line arguments are given, all the input strings look like tags - *jrnl* will assume you want to filter by tag.
|
||||
|
||||
Searching
|
||||
---------
|
||||
|
||||
To search for a string ``"excellent idea"`` in all journal entries, use the ``-search`` argument::
|
||||
|
||||
jrnl -search "excellent idea"
|
||||
|
||||
The ``-search`` argument can be combined with other filters, such as ``-from`` and ``-until``.
|
||||
|
||||
Note that the searching is case-insensitive and doesn't accept any wildcards or regular expression syntax.
|
||||
|
||||
Editing older entries
|
||||
---------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue