mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
ranger diff
This commit is contained in:
parent
427b09c2d7
commit
f7e33e917a
3 changed files with 6 additions and 2 deletions
|
|
@ -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`:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue