journal-cli

journal-cli

  • Docs
  • GitHub
  • Blog
  • Tweet
  • Facebook Post

›Beyond The Basics

The Basics

  • Getting Started
  • Features Overview
  • Cmdlet Syntax Details
  • Encryption
  • Synchronization Options
  • Git Integration

Beyond The Basics

  • Recipes
  • FAQ
  • Background Info
Edit

Recipes

The examples below frequently use aliases for the sake of brevity. Short commands are emphasized here because the goal is to teach fast and easy manipulation of your journal. If you don't know what an alias is, just run Get-Alias <name> in your terminal to get the definition. If you're not familiar with the definition either, then google is your friend. ;)

Paginate through a filtered list of entries

Run this command to retrieve all entries tagged work and iterate through the content of each one, displaying one page of data at a time. To omit the entry body, just remove the -IncludeBodies switch.

Get-JournalEntriesByTag -Tags work -IncludeBodies | 
  select -ExpandProperty entries | 
  fl | 
  more

Search for text within all entries

This will search all journal entries for the word vail and display the results one page at a time. You could omit select LineNumber,Line,Filename if you wanted, but the results will be a bit repetitive and verbose.

Get-JournalFiles | 
  sls -Pattern 'vail' | 
  select LineNumber,Line,Filename |
  fl | 
  more
Last updated on 2/26/2020 by Nick Spreitzer
← Git IntegrationFAQ →
  • Paginate through a filtered list of entries
  • Search for text within all entries
journal-cli
Docs
Getting Started GuideFeaturesFAQPowerShell Recipes
Icon Credits
NoteBook Icon by SmashiconsHand & Dove Icon by FreepikTag Icon by SmashiconsComputer Icon by SimpleIconClock Icon by FreepikAngel Bracket Icon by FreepikPadlock Icon by Freepik
More
BlogGitHubStar
Facebook Open Source
Copyright © 2021 Nick Spreitzer