From 92b94056146173c40a2a04a0915a05df8224125e Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 5 Jan 2021 12:43:30 +0100 Subject: [PATCH] Add fzf completion and flameshot shortcut --- .config/i3/config_common | 2 ++ .zshrc | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.config/i3/config_common b/.config/i3/config_common index 378a439..0b9de37 100644 --- a/.config/i3/config_common +++ b/.config/i3/config_common @@ -103,6 +103,8 @@ bindsym Mod4+e exec nemo bindsym Shift+Print exec ~/.config/i3/scripts/screenshot.py -s # screenshot and upload to Lychee bindsym Print exec ~/.config/i3/scripts/screenshot.py -u +# screenshot with flameshot +bindsym $mod+Print exec flameshot gui mode "$film_mode" { bindsym u exec ~/.config/i3/scripts/film_mode.sh on diff --git a/.zshrc b/.zshrc index 02996fe..3b47c87 100644 --- a/.zshrc +++ b/.zshrc @@ -55,6 +55,7 @@ plugins=( copydir cp extract + fzf history docker rand-quote @@ -116,3 +117,15 @@ alias lt='ls -lath' export PATH=${PATH}:~/picasoft/pass:$HOME/go/bin/:$HOME/.local/bin source <(mmctl completion zsh) + +## fzf conf +_fzf_compgen_path() { + fd --hidden --follow --exclude ".git" . "$1" +} + +# Use fd to generate the list for directory completion +_fzf_compgen_dir() { + fd --type d --hidden --follow --exclude ".git" . "$1" +} + +export FZF_COMPLETION_OPTS='-m'