diff --git a/Examples.md b/Examples.md index 9e6a054..cc8eb00 100644 --- a/Examples.md +++ b/Examples.md @@ -12,6 +12,7 @@ Table of Contents * [With write to terminal capabilities](#with-write-to-terminal-capabilities) * [Processes](#processes) * [Git](#git) +* [JRNL](#jrnl) * [Tags](#tags) * [tmux](#tmux) * [ASDF](#asdf) @@ -502,6 +503,18 @@ Create a gitignore file from [gitignore.io](http://gitignore.io): https://gist.github.com/phha/cb4f4bb07519dc494609792fb918e167 +### JRNL + +Suggested by [@windisch](https://github.com/windisch). Only tested under zsh. + +```sh +# fjrnl - Search JRNL headlines +fjrnl() { + title=$(jrnl --short | fzf --tac --no-sort) && + jrnl -on "$(echo $title | cut -c 1-16)" $1 + } +``` + ### Tags ```sh @@ -1068,4 +1081,3 @@ p () { ``` -