From bc775cc66afa4e6266f0638e8b572af672097ff5 Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Sat, 8 Apr 2023 05:59:39 -0500 Subject: [PATCH] added emoji selector --- zsh_aliases | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/zsh_aliases b/zsh_aliases index 7286b18..3276ec0 100644 --- a/zsh_aliases +++ b/zsh_aliases @@ -49,12 +49,17 @@ fhf() { fzf --scheme=history \ --cycle \ --border=double \ - --height=60% \ --border-label="| Command History |" \ - --margin=8% \ - --padding=4% \ - --header="select command to copy" \ + --margin=2,20,2,20 \ + --padding=0,10,0,22 \ + --height=60% \ + --color='fg+:15,fg:42,hl+:134,hl:123,query:134,gutter:0,label:134,border:134,prompt:15,pointer:15,marker:15,header:123' \ + --prompt=' ' \ + --pointer='󰧚 ' \ + --header="Select command to copy" \ --info=hidden \ + --no-scrollbar \ + --reverse \ --tac | tr -d '\n' | xclip -sel c @@ -68,13 +73,40 @@ fmf() { fzf -q "$1" +m \ --cycle \ --reverse \ - --color='fg:-1' \ + --color='fg+:15,fg:42,hl+:134,hl:123,query:134,gutter:0,label:134,border:134,prompt:15,pointer:15,marker:15,header:123' \ + --prompt=' ' \ + --pointer='󰧚 ' \ + --tiebreak=begin,chunk,length \ --preview='man {1}' \ --preview-window=70%:wrap:border-rounded \ --preview-label="| Manual Entry |" } +### Emoji picker +emojis() { + emojis=$(curl -sSL 'https://git.io/JXXO7') + echo $emojis | + fzf --cycle \ + --border=double \ + --border-label="| Emoji Selector |" \ + --margin=2,20,2,20 \ + --padding=0,10,0,22 \ + --height=60% \ + --color='fg+:15,fg:42,hl+:134,hl:123,query:134,gutter:0,label:134,border:134,prompt:15,pointer:15,marker:15,header:123' \ + --prompt=' ' \ + --pointer='󰧚 ' \ + --header="Select emoji to copy" \ + --info=hidden \ + --no-scrollbar \ + --tiebreak=begin,chunk,length \ + --reverse | + awk '{print $1}' | + tr -d '\n' | + xclip -sel c +} + + ### Test terminal color codes and visual appearance alias colors="curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash"