1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

packages: add unfinished

This commit is contained in:
Kierán Meinhardt
2019-07-09 09:31:57 +02:00
parent a3dc6196eb
commit 28ee2bb199
4 changed files with 29 additions and 0 deletions

7
packages/_todo/fo Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
IFS=$'\n' out=("$(fzf-tmux --query="$1" --exit-0 --expect=ctrl-o,ctrl-e)")
key=$(head -1 <<< "$out")
file=$(head -2 <<< "$out" | tail -1)
if [ -n "$file" ]; then
[ "$key" = ctrl-o ] && open "$file" || ${EDITOR:-vim} "$file"
fi