Pages

Sunday, 10 November 2024

jrnl, 在命令行里写日记

 pip3 install jrnl
root@racknerd-626f077:~# which jrnl
/usr/local/bin/jrnl
root@racknerd-626f077:~# jrnl today. i miss u so much.
Path to your journal file (leave blank for /root/.local/share/jrnl/journal.txt):
Do you want to encrypt your journal? (You can always change this later) [y/N] n
Do you want jrnl to use colors to display entries? (You can always change this
later) [Y/n] y
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃  jrnl configuration created at /root/.config/jrnl/jrnl.yaml  ┃
┃  For advanced features, read the docs at https://jrnl.sh     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃  Journal 'default' created at /root/.local/share/jrnl/journal.txt  ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
root@racknerd-626f077:~# cat /root/.local/share/jrnl/journal.txt
[2024-11-10 04:19:19 PM] today.
i miss u so much.
root@racknerd-626f077:~# jrnl today. how is everything?
root@racknerd-626f077:~# ls /root/.local/share/jrnl/
journal.txt
root@racknerd-626f077:~# cat /root/.local/share/jrnl/journal.txt
[2024-11-10 04:19:19 PM] today.
i miss u so much.

[2024-11-10 04:21:40 PM] today.
how is everything?
root@racknerd-626f077:~# jrnl
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃  Writing Entry                                     ┃
┃  To finish writing, press Ctrl+d on a blank line.  ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
i wanna go there.

root@racknerd-626f077:~# cat /root/.local/share/jrnl/journal.txt
[2024-11-10 04:19:19 PM] today.
i miss u so much.

[2024-11-10 04:21:40 PM] today.
how is everything?

[2024-11-10 04:23:45 PM] i wanna go there.
root@racknerd-626f077:~#

项目地址: https://github.com/jrnl-org/jrnl

官网:https://jrnl.sh/en/stable/

https://github.com/sloria/jrnl-render

No comments:

Post a Comment