mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
add fjrnl
14
Examples.md
14
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 () {
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user