-
I've tried various things with no luck, but it's the nth time I've realized I want to be able to control this, so here's an example image: Simply, I'd like to reduce the width of the left pane, widening the right, preview pane. |
Beta Was this translation helpful? Give feedback.
Answered by
yutkat
Mar 17, 2023
Replies: 2 comments 1 reply
-
You can use
eg.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
shmup
-
For documentation sake, here's the script: #!/usr/bin/env bash
# |\ o _, |\ __|_
# |/ | / | |/ |/ |
# |_/|/\/|/|_/|_/|_/
# |) (|
# ./fzfont and ^c to exit
if ! type figlet &> /dev/null; then echo "Requires figlet"; exit 1; fi
if ! type fzf &> /dev/null; then echo "Requires fzf"; exit 1; fi
# https://github.com/xero/figlet-fonts
FONT_DIR="$HOME/src/figlet-fonts"
cd "$FONT_DIR" || exit
while true; do
clear
printf "𝐞𝐧𝐭𝐞𝐫 𝐭𝐞𝐱𝐭 𝐚𝐧𝐝 𝐩𝐫𝐞𝐬𝐬 𝐫𝐞𝐭𝐮𝐫𝐧\n\n"
read -r -p "> " input_text
input_text=${input_text#> }
font=$(find . -type f -name '*.flf' | sort -u |
fzf --preview-window=right,70% --preview "figlet -f {} '$input_text'")
if [[ -n $font ]]; then
clear
figlet -f "$font" "$input_text"
printf "\nPress any key to continue...\n"
read -rsn1 # disable \ escaping, silent input, read 1 char before returning
fi
done |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
--preview-window
argument.eg.