mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Update docs
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. In Encryption docs, explain how to prevent Fish history logging
This commit is contained in:
parent
3a2f155a21
commit
05234590eb
2 changed files with 10 additions and 1 deletions
|
@ -56,6 +56,12 @@ setopt HIST_IGNORE_SPACE
|
||||||
alias jrnl=" jrnl"
|
alias jrnl=" jrnl"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The fish shell does not support automatically preventing logging like
|
||||||
|
this. To prevent `jrnl` commands being logged by fish, you must make
|
||||||
|
sure to type a space before every `jrnl` command you enter. To delete
|
||||||
|
existing `jrnl` commands from fish’s history, run
|
||||||
|
`history delete --prefix 'jrnl '`.
|
||||||
|
|
||||||
## Manual decryption
|
## Manual decryption
|
||||||
|
|
||||||
Should you ever want to decrypt your journal manually, you can do so
|
Should you ever want to decrypt your journal manually, you can do so
|
||||||
|
|
|
@ -97,7 +97,10 @@ log_question 'What did I make progress with?'
|
||||||
### Display random entry
|
### Display random entry
|
||||||
|
|
||||||
You can use this to select one title at random and then display the whole
|
You can use this to select one title at random and then display the whole
|
||||||
entry.
|
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 | shuf -n 1 | cut -d' ' -f1,2)"
|
jrnl -on "$(jrnl --short | shuf -n 1 | cut -d' ' -f1,2)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue