From 44022bcd65a1e3683ffc0b2cbab7c7bfce528c6f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 14 Jan 2017 22:02:34 +0100 Subject: Replace `vimwiki` with custom solution based on selected plugins and `rofi` --- bin/rofi_wiki | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/rofi_wiki (limited to 'bin') 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 -- cgit v1.2.3