You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
711 B
Bash

#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: launch other fzf scripts
# DEMO: https://youtu.be/8SqakfCSzQk
# DEPEND: fzf grep findutils coreutils
# REFF: Xterm config https://www.youtube.com/watch?v=mAUQsNUnk9I
# Hotkey Binding Examples ~/.xbindkeysrc
# "xterm -T fzf-nova -geometry 90x25+350+200 -fs 16 -e /path/to/script/fzf-nova"
# Mod4+space
#
# "alacritty -t fzf-nova --dimensions 90 20 --position 350 200 -e /path/to/script/fzf-nova"
# Mod4+space
DIR="${0%/*}"
"$DIR"/"$(find "$DIR" -type f -exec basename {} \; | grep '^_' | sort | fzf -e -i --delimiter _ --with-nth='2..' --reverse --prompt="fzf-nova: ")"