From c2c7995ab55d11175e0fd72dd098fa6fb7666a3a Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 11 May 2022 13:55:36 +0200 Subject: [PATCH] Add 'fzf' wrapper scripts --- .bin/find-book | 7 +++++++ .bin/find-sketch | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100755 .bin/find-book create mode 100755 .bin/find-sketch diff --git a/.bin/find-book b/.bin/find-book new file mode 100755 index 0000000..3e11482 --- /dev/null +++ b/.bin/find-book @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Find and open pdf + +selected=$(ls ~/doc/books/*.{pdf,epub,djvu} | fzf) + +zathura "$selected" & diff --git a/.bin/find-sketch b/.bin/find-sketch new file mode 100755 index 0000000..6d91eb0 --- /dev/null +++ b/.bin/find-sketch @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Find and open Xournal sketch + +selected=$(ls ~/sketches/*.xopp | fzf) + +xournalpp "$selected" &