TranslateProject/sources/tech/20220126 Jrnl- Your Digital Diary in the Linux Terminal.md
DarkSun ec5ac38583 选题[tech]: 20220126 Jrnl: Your Digital Diary in the Linux Terminal
sources/tech/20220126 Jrnl- Your Digital Diary in the Linux Terminal.md
2022-01-26 05:02:29 +08:00

4.6 KiB
Raw Blame History

Jrnl: Your Digital Diary in the Linux Terminal

Imagine this: somebody has broken your heart and what you want is to write your feelings in a journal without distraction. Did you get the idea? No? Neither do I. I am not heartbroken (or maybe I am and I dont want to tell you).

But I would still like to show you a wonderful minimalistic open-source, note-taking application to keep journal entries.

This handy little program is Jrnl and it lets you create, search and view journal entries right in the terminal.

Creating new notes with Jrnl is as simple as writing this:


    jrnl yesterday: I read an amazing article on Its FOSS. I learn about a minimalist app called Jrnl, I should try it.

Looks easy, isnt it? The keyword yesterday is a trigger here and it saves your note to yesterdays date. Remember that its called Jrnl (journal) for a reason. Its main aim is to keep journal.

If you like to keep a diary of your thoughts or simply want to try it out, let me share a few details on the installation and its usage.

Installing and using Jnrl on your Linux system

Jrnl can be installed using pipx or Homebrew package managers.

I used Homebrew for my testing so Ill list those steps. Get Homebrew first:


    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Installing Homebrew on your system

Thats all! If you need more information, we have a detailed tutorial on installing Homebrew on Linux.

Once you have Homebrew package manager installed, use it to install Jrnl:


    brew install jrnl

Installing Jrnl with Homebrew

Once you have it installed, just initialize jrnl and start writing your random thoughts.

Do you remember the first example at the beginning of this article? Lets take a look at it again!


    jrnl yesterday: I read an amazing article in Its FOSS. I learn about a minimalist app called Jrnl, I should try it.

Writing an entry

In this line, Im starting the program with the command jrnl next to a timestamp, which in this case is yesterday. I write a colon : to indicate that I will start writing something, and everything contained until a first sentence mark .?!: (in this case a period .) will be the title. Finally, everything next to this sentence mark will be considered the body of the file.

Currently, Jnrl has two modes: composing and viewing; the steps before are used to compose an entry but if what you want to view, for example, the entry that was written before, the syntax is also easy, what you only have to type is the next line.


    jrnl -on yesterday

Viewing an entry

Think that someone may read your journal and thoughts? You can also encrypt your entries.

Thats it! Of course, Jrnl has a lot more function, which can easily be found with the next line:


    jrnl --help

You can also refer to the documentation on its official website. Remember, the documentation is your best friend in an open-source project like this one. Enjoy it!

Conclusion

Of course, Jrnl is not for everyone. Most command line utilities are not. But if you live and breath in the terminal and like to record your thoughts

Please dont forget to share with us your personal experience in the comments; or even better, if you want to get this project to many more people you can share this post in various communities and forum.


via: https://itsfoss.com/jrnl/

作者:Marco Carmona 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出