Code Monkey home page Code Monkey logo

viewjrnl's Introduction

viewjrnl

Shell script to group jrnl entries by date and add color.

The default output from jrnl is pretty plain. viewjrnl is a nicer way to read entries from jrnl at the command line. Here it is in action:

viewjrnl

As seen in the screenshot, the features of viewjrnl include:

  • Grouping entries by date, to see where one day ends and another starts.
  • 12-hour timestamps, which are what I'm more used to reading.
  • Colorized output, so it's pleasant to look at.

For comparison, this is what the plain jrnl output looks like:

jrnl

Install

viewjrnl depends on jq version 1.6 or higher. At the time of writing, you'll have to install the release candidate to use version 1.6. On macOS:

# If you already have jq < 1.6:
brew reinstall --devel jq

# Otherwise, to install it for the first time:
brew install --devel jq

After that, viewjrnl is just a single shell script. You can download it and put it on your path anywhere. Alternatively, on macOS:

brew install jez/formulae/viewjrnl

Usage

viewjrnl accepts any arguments you give it and passes them on to jrnl. Alternatively, omit arguments to view your jrnl for today. Examples:

# See jrnl for just today
viewjrnl

# See jrnl for last week
viewjrnl -from 'last week'

# See last 10 jrnl entries
viewjrnl -n 10

# See all jrnl entries tagged @important:
viewjrnl @important

License

MIT License

viewjrnl's People

Contributors

jez avatar zodman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zodman

viewjrnl's Issues

Formatting issues

Hello,

Using jrnl / viewjrnl on MAC OSX. Having issues formatting using regular terminal.

No color and some other characters being added to the entry.

ESC[0;37m───── Tue, Jan 30 ────────────────────────────────────────────────────── ESC[0m 02:16 PM: ESC[0;36m my first journal entryESC[0m

Also, no word wrapping around the journal entries.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.