added emoji selector
This commit is contained in:
parent
a2c7351bbe
commit
bc775cc66a
42
zsh_aliases
42
zsh_aliases
|
@ -49,12 +49,17 @@ fhf() {
|
||||||
fzf --scheme=history \
|
fzf --scheme=history \
|
||||||
--cycle \
|
--cycle \
|
||||||
--border=double \
|
--border=double \
|
||||||
--height=60% \
|
|
||||||
--border-label="| Command History |" \
|
--border-label="| Command History |" \
|
||||||
--margin=8% \
|
--margin=2,20,2,20 \
|
||||||
--padding=4% \
|
--padding=0,10,0,22 \
|
||||||
--header="select command to copy" \
|
--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 \
|
--info=hidden \
|
||||||
|
--no-scrollbar \
|
||||||
|
--reverse \
|
||||||
--tac |
|
--tac |
|
||||||
tr -d '\n' |
|
tr -d '\n' |
|
||||||
xclip -sel c
|
xclip -sel c
|
||||||
|
@ -68,13 +73,40 @@ fmf() {
|
||||||
fzf -q "$1" +m \
|
fzf -q "$1" +m \
|
||||||
--cycle \
|
--cycle \
|
||||||
--reverse \
|
--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='man {1}' \
|
||||||
--preview-window=70%:wrap:border-rounded \
|
--preview-window=70%:wrap:border-rounded \
|
||||||
--preview-label="| Manual Entry |"
|
--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
|
### Test terminal color codes and visual appearance
|
||||||
alias colors="curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash"
|
alias colors="curl -s https://gist.githubusercontent.com/HaleTom/89ffe32783f89f403bba96bd7bcd1263/raw/ | bash"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue