aboutsummaryrefslogtreecommitdiff
path: root/bin/rofi_wiki
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-01-14 22:02:34 +0100
committerAdrian Kummerlaender2017-01-14 22:02:34 +0100
commit44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f (patch)
treeae641e0fd1e4972b52ab4d04285343ad129052b4 /bin/rofi_wiki
parente5e1c9d11f7a1c90fe3626288ea93d9d714aef73 (diff)
downloaddotfiles-44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f.tar
dotfiles-44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f.tar.gz
dotfiles-44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f.tar.bz2
dotfiles-44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f.tar.lz
dotfiles-44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f.tar.xz
dotfiles-44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f.tar.zst
dotfiles-44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f.zip
Replace `vimwiki` with custom solution based on selected plugins and `rofi`
Diffstat (limited to 'bin/rofi_wiki')
-rwxr-xr-xbin/rofi_wiki9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/rofi_wiki b/bin/rofi_wiki
new file mode 100755
index 0000000..185f47a
--- /dev/null
+++ b/bin/rofi_wiki
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+name=$(find ~/wiki/*.wiki -printf "%f\n" | sed -e 's:\.[^./]*$::' | rofi -dmenu -p 'wiki:')
+
+if ! [[ -z $name ]]
+then
+ i3-msg '[title="VimWiki"]' scratchpad show
+ exec gvim --servername VIMWIKI --remote ~/wiki/$name.wiki
+fi