mirror of
https://github.com/fscotto/infra.git
synced 2026-07-29 16:20:01 +00:00
Update tmux clipboard and terminal styling
This commit is contained in:
@@ -227,10 +227,31 @@ bind '"\e[5C": forward-word'
|
||||
bind '"\e[5D": backward-word'
|
||||
|
||||
# =========================
|
||||
# fzf history on Ctrl-r
|
||||
# fzf: Ptyxis Linux Minimal
|
||||
# =========================
|
||||
|
||||
if command -v fzf >/dev/null 2>&1; then
|
||||
FZF_PTYXIS_LINUX_OPTS="
|
||||
--layout=reverse
|
||||
--border=rounded
|
||||
--height=40%
|
||||
--info=inline
|
||||
--prompt='› '
|
||||
--pointer='›'
|
||||
--marker='✓'
|
||||
--separator='─'
|
||||
--scrollbar='│'
|
||||
--color=bg:#000000,bg+:#000000,gutter:#000000
|
||||
--color=fg:#d7d7d7,fg+:#ffffff,hl:#55ff55,hl+:#55ff55
|
||||
--color=prompt:#55ff55,pointer:#5555ff,marker:#ffff55,spinner:#5555ff
|
||||
--color=info:#808080,header:#808080,border:#303030
|
||||
"
|
||||
export FZF_DEFAULT_OPTS="${FZF_DEFAULT_OPTS:+$FZF_DEFAULT_OPTS }$FZF_PTYXIS_LINUX_OPTS"
|
||||
|
||||
# =========================
|
||||
# fzf history on Ctrl-r
|
||||
# =========================
|
||||
|
||||
__fzf_history() {
|
||||
local selected history_data
|
||||
|
||||
@@ -252,7 +273,7 @@ if command -v fzf >/dev/null 2>&1; then
|
||||
)"
|
||||
fi
|
||||
|
||||
selected="$(printf '%s\n' "$history_data" | fzf --height 40% --layout=reverse --border --prompt='history> ')" || return
|
||||
selected="$(printf '%s\n' "$history_data" | fzf --prompt='history> ')" || return
|
||||
|
||||
READLINE_LINE=$selected
|
||||
READLINE_POINT=${#READLINE_LINE}
|
||||
|
||||
@@ -231,6 +231,20 @@ endfunction
|
||||
|
||||
if s:has_fzf_vim && s:FzfVersionOk()
|
||||
let g:fzf_layout = {"down": "40%"}
|
||||
let g:fzf_colors = {
|
||||
\ "fg": ["fg", "Normal"],
|
||||
\ "bg": ["bg", "Normal"],
|
||||
\ "hl": ["fg", "Search"],
|
||||
\ "fg+": ["fg", "Normal"],
|
||||
\ "bg+": ["bg", "Normal"],
|
||||
\ "hl+": ["fg", "Search"],
|
||||
\ "info": ["fg", "Comment"],
|
||||
\ "prompt": ["fg", "String"],
|
||||
\ "pointer": ["fg", "Statement"],
|
||||
\ "marker": ["fg", "WarningMsg"],
|
||||
\ "spinner": ["fg", "Statement"],
|
||||
\ "header": ["fg", "Comment"],
|
||||
\ }
|
||||
let g:fzf_vim = get(g:, "fzf_vim", {})
|
||||
let g:fzf_vim.preview_window = ["right,50%", "ctrl-/"]
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user