Compare commits

...

4 Commits

Author SHA1 Message Date
andrzej fd716ae8a2 setup fzf 2024-10-14 21:41:11 +02:00
andrzej 06b4f0ee39 no more jk escape in visual mode 2024-10-14 21:40:59 +02:00
andrzej ecf3adaf37 setup fzf for latest version on Mint 2024-10-14 21:40:33 +02:00
andrzej 9e801ee1bc fzf image previews 2024-10-14 21:40:08 +02:00
4 changed files with 16 additions and 3 deletions

View File

@ -127,3 +127,5 @@ export PATH="$DENO_INSTALL/bin:$PATH"
. "$HOME/.cargo/env"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

View File

@ -6,8 +6,8 @@ local function map(mode, lhs, rhs, opts)
vim.keymap.set(mode, lhs, rhs, options)
end
map({ "i", "v", "t" }, "jk", "<esc>") -- remap escape
map({ "i", "v", "t" }, "JK", "<esc>") -- remap escape
map({ "i", "t" }, "jk", "<esc>") -- remap escape
map({ "i", "t" }, "JK", "<esc>") -- remap escape
map("n", "<leader>o", "o<esc>")
map("n", "<left>", '<cmd>echo "Use h to move!!"<CR>')

View File

@ -4,6 +4,15 @@ alias devsesh="$HOME/scripts/tmux-dev-session.sh"
alias slides="nohup ${HOME}/scripts/hyprland-slideshow.sh"
alias ls="ls --color=auto"
alias fzf='fzf --preview='\''
if file --mime-type {} | grep -qF '\''image/'\''; then
kitty icat --clear --transfer-mode=memory --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {}
else
batcat --color=always {}
fi
'\'''
export SUDO_EDITOR="nvim"
##suffix aliases

View File

@ -29,7 +29,7 @@ eval "$(luarocks path --bin)"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
#fzf
source <(fzf --zsh)
# source <(fzf --zsh)
#starship
eval "$(starship init zsh)"
@ -41,3 +41,5 @@ HISTSIZE=10000
SAVEHIST=10000
# Share history in every terminal session
setopt SHARE_HISTORY
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh