#!/bin/bash
# - bof - #



<<'comment'
  See instructions below for ubuntu & arch installations.
comment



# :1
# -  - #
# - Documentation - #
https://github.com/junegunn/fzf
https://github.com/junegunn/fzf?tab=readme-ov-file#vim-plugin

# -  - #
# - Tokyo Night theme configuration - #
https://github.com/codeopshq/dotfiles










# :1
# -  - #
# - .zshrc Configuration - #
nvim ~/.zshrc;
nvim ~/.rc-Alias;

source <(fzf --zsh)
export FZF DEFAULT OPTS="--preview 'bat --style=numbers --color=always {}'"



# :2
# -  - #
# - Terminal - #
ESC to exit fzf

fzf
history | fzf
vim $(fzf)


# -  - #
# - Computer processes - #

ps | fzf
ps aux | fzf
kill $(ps aux | fzf)


launch kitty
kill $(ps aux | fzf)
look for kitty
enter to kill process


# -  - #
# - Combine with tmux - #
kill $(ps aux | fzf --tmux | awk '{print $2}')


# -  - #
# - Select multiple files - #
fzf -m


# -  - #
# - ** + tab - #
cd **
fzf **
vim **


fzf --style full \
    --preview 'fzf-preview.sh {}' --bind 'focus:transform-header:file --brief {}'







# - eof - #