From 3ee36108360d4b472851161ea27973e55a894310 Mon Sep 17 00:00:00 2001 From: Joshua Aresty Date: Mon, 16 Oct 2023 18:46:39 -0700 Subject: [PATCH] find-prompt now takes an argument and also only prints the prompt in the output --- scripts/find-prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/find-prompt b/scripts/find-prompt index f2ff916..07fe008 100755 --- a/scripts/find-prompt +++ b/scripts/find-prompt @@ -1,3 +1,3 @@ #!/usr/bin/env bash -curl -s https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv | tail +2 | ruby -rcsv -e 'CSV.parse(STDIN.read) {|row| puts row.join("\t")}' | fzf --with-nth 1 --delimiter "\t" --preview 'echo {2} | fold -s -w $(tput cols)' \ No newline at end of file +curl -s https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv | tail +2 | ruby -rcsv -e 'CSV.parse(STDIN.read) {|row| puts row.join("\t")}' | fzf -1 -q "$1" --with-nth 1 --delimiter "\t" --preview 'echo {2} | fold -s -w $(tput cols)' | cut -d" " -f2