m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

add fjrnl

Tobias Windisch
2018-02-13 10:13:20 +01:00
parent cd795f788d
commit 4f3210eeca

@@ -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 () {
```