Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.jrnl
.gitignore
LICENSE
Makefile
README.md
day-timeline
done.txt
hour-timeline
jrnl
jrnl_aliases
jrnltimediff
jrnltimestampfix
report.txt
todo.txt

README.md

txt-bash-jrnl

A simple command line journal application that stores your journal in a plain text file, developed in bash and inspired in jrnl.sh

Install

Install jrnl to /usr/bin/jrnl

# sudo make install

Include in your .bashrc

source jrnl_aliases

Aliases

j='jrnl'
j1='jrnl -1'
j2='jrnl -2'
j3='jrnl -3'
j4='jrnl -4'
j5='jrnl -5'
j6='jrnl -6'
j7='jrnl -7'
j8='jrnl -8'
j9='jrnl -9'
ja='jrnl all'
jc='jrnl copy'
jd='jrnl diff'
je='jrnl edit'
jh='jrnl -10'
jj='cd .jrnl/$(date +%Y)/$(date +%Y-%m)/$(date +%F)'
jl='jrnl ls'
jn='jrnl new'
jr='jrnl rm'
jt='jrnl time'
jv='jrnl view'
jw='jrnl week'
jx='jrnltimestampfix'
jy='jrnl yesterday'

Usage

Create a journal:

# jrnl

View the last journal:

  # jrnl 1

  2017-07-22 09:05 add help and version +help

    @ 01:24 hs

View the last five journals:

  # jrnl 5

  2017-07-22 09:05 add help and version +help

    @ 01:24 hs

  2017-07-22 08:47 fix find last files +find

    @ 00:12 hs

List all journals, optionally filter by PATTERN or REGEX

  # jrnl a

  0328c3 □▣▣▣▣▨ 00:34 11:19 11:53 create repo in github and initialize local repo with minimal README.md, add jrnl directory, todo.txt files and `.g...
  19d7cb □□□□□▣ 00:50 19:54 20:44 fix jrnl with shellcheck
  3348c0 ▣▣▣▣□□ 00:27 08:11 08:38 add alternative for colors without tput +termux
  9809e9 □□□□▣▣ 00:12 08:47 08:59 fix find last files +find
  01238c ▣▣▣▣▣▣ 01:24 09:05 10:29 add help and version +help
  182521 □□□□▣▣ 00:37 12:50 13:27 add quick enter of journal from command line without edit in Vim
  1abb58 □□□▣▣□ 00:18 16:34 16:52 draw draft activity and sequence diagrams of jrnl and redmine
  489216 □□□▣▣▣ 01:11 15:40 16:51 allow create new journal from STDIN or PIPE
  6185ce □□▣▨□□ 00:03 18:31 18:34 replace hash of content file with hash of filename
  9ee550 □□□□▣▣ 00:13 00:47 01:00 set duration time of last journal when create new journal
  ad7a19 ▣▣▣▣▨□ 00:43 01:01 01:44 List last week/month journals
  522611 □□□□▣▣ 02:04 01:45 03:49 add hour timeline
  7b1f19 □□□□▣▣ 00:10 12:48 12:58 add day timeline

     2017-10-17 08:46  0 □□□□▣▣  1 ▣▣▣▣▣▣  8 ▣▣▣▣▣▣  9 ▣▣▣▣▣▣ 11 □▣▣▣▣▨ 12 □□□□▣▣ 15 □□□▣▣▣ 16 □□□▣▣□ 18 □□▣▨□□ 19 □□□□□▣

List all journals filtered by PATTERN

  # jrnl a github

  0328c3 □▣▣▣▣▨ 00:34 11:19 11:53 create repo in github and initialize local repo with minimal README.md, add jrnl directory, todo.txt files and `.g...

     2017-07-15 00:34 11 □▣▣▣▣▨

List all journals filtered by REGEX

  # jrnl a "#[0-9]+"

Copy journal by HASH

  # jrnl c ha4s5h

View differences between journals

  # jrnl d ha4sh1 ha4sh2

View difference with the last journal

  # jrnl d ha4sh1

Edit last journal

  # jrnl e

Edit specified journal by HASH

  # jrnl e ha4s5h

Show short help

  # jrnl --help

Show full help

  # jrnl -h

List today journals

  # jrnl l

Delete a journal specified by hash

  # jrnl rm

Delete a the last journal

  # jrnl rm ha4s5h

Set specified time in HH:MM format or by default with difference between current time and header timestamp of journal

  # jrnl t 00:25
  # jrnl t

View the last journal

  # jrnl v

View a journal specified by hash

  # jrnl v ha4s5h

Set filename of journal with timestamp of journal header

  # jrnl fix
  # jrnl x

List yesterday journals

  # jrnl y

List last week journals

  # jrnl w

License

  • all software licensed under the terms of the GNU General Public License: License: GPL v3

  • all documentation, notes, ideas, graphics and sounds are licensed under the Creative Commons Attribution-ShareAlike 4.0 International License: License: CC BY-SA 4.0

Author Information

Osiris Alejandro Gómez, worker cooperative of gcoop Cooperativa de Software Libre.