mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
Add doc about extracting timestamps with no spaces
Timestamp formats may have no space between date and time components and cause the script to fail.
This commit is contained in:
parent
f3613cd519
commit
432f6ed011
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ log_question 'What did I make progress with?'
|
||||||
### Filtering with FZF
|
### Filtering with FZF
|
||||||
|
|
||||||
Use the search powers of [fzf](https://github.com/junegunn/fzf) to select an
|
Use the search powers of [fzf](https://github.com/junegunn/fzf) to select an
|
||||||
entry from the list of titles and display the full entry.
|
entry from the list of titles and display the full entry. The invocation of
|
||||||
|
`cut` needs to match the format of the timestamp. For timestamps that have a
|
||||||
|
space between data and time components, select fields 1 and 2 as shown. For
|
||||||
|
timestamps that have no whitespace, select only field 1.
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
jrnl -on "$(jrnl --short | fzf --ansi --tac | cut -d' ' -f1,2)"
|
jrnl -on "$(jrnl --short | fzf --ansi --tac | cut -d' ' -f1,2)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue