diff --git a/README.md b/README.md index b0efdfd..8960291 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This config folder includes `i3` and `alacritty` config, however, I'm using [dwm # Important stuff: ## Ranger -use pip install `ueberzug` and `ranger-git` +use `pip install ueberzug` and `ranger-git` ## mutt In `~/.gnupg/gpg-agent.conf`: diff --git a/ranger/rc.conf b/ranger/rc.conf index 7bedb27..5083c58 100755 --- a/ranger/rc.conf +++ b/ranger/rc.conf @@ -394,6 +394,9 @@ map y. yank name_without_extension # Filesystem Operations +# diff +map df console open_with colordiff + map M console mkcd%space map + chmod diff --git a/zsh/zshrc b/zsh/zshrc index 4f12fbc..c418bf7 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -83,9 +83,10 @@ zle -N zle-keymap-select KEYTIMEOUT=1 # fzf -export FZF_DEFAULT_OPTS='--bind ctrl-e:down,ctrl-u:up --preview "[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (ccat --color=always {} || highlight -O ansi -l {} || coderay {} || rougify {} || cat {}) 2> /dev/null | head -500"' +export FZF_DEFAULT_OPTS='--bind ctrl-e:down,ctrl-u:up --preview "[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (ccat --color=always {} || highlight -O ansi -l {} || cat {}) 2> /dev/null | head -500"' export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""' export FZF_COMPLETION_TRIGGER='\' export FZF_TMUX_HEIGHT='80%' +export FZF_PREVIEW_COMMAND='[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (ccat --color=always {} || highlight -O ansi -l {} || cat {}) 2> /dev/null | head -500' source ~/.config/zsh/key-bindings.zsh source ~/.config/zsh/completion.zsh