tinted-theming / tinted-fzf Goto Github PK
View Code? Open in Web Editor NEWbase16 colorschemes for fzf
Home Page: https://github.com/base16-project/base16
License: MIT License
base16 colorschemes for fzf
Home Page: https://github.com/base16-project/base16
License: MIT License
I invoke fzf with Ctrl-R (Bash history). Te colours work OK when run in plain Bash, but don't work when inside tmux.
My .fzf.bash
:
# Setup fzf
# ---------
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
export PATH="$PATH:/usr/local/opt/fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.bash" 2> /dev/null
# Key bindings
# ------------
source "/usr/local/opt/fzf/shell/key-bindings.bash"
# Base16 Flat
# Author: Chris Kempson (http://chriskempson.com)
_gen_fzf_default_opts() {
local color00='#2C3E50'
local color01='#34495E'
local color02='#7F8C8D'
local color03='#95A5A6'
local color04='#BDC3C7'
local color05='#e0e0e0'
local color06='#f5f5f5'
local color07='#ECF0F1'
local color08='#E74C3C'
local color09='#E67E22'
local color0A='#F1C40F'
local color0B='#2ECC71'
local color0C='#1ABC9C'
local color0D='#3498DB'
local color0E='#9B59B6'
local color0F='#be643c'
export FZF_DEFAULT_OPTS="
--color=bg+:$color01,bg:$color00,spinner:$color0C,hl:$color0D
--color=fg:$color04,header:$color0D,info:$color0A,pointer:$color0C
--color=marker:$color0C,fg+:$color06,prompt:$color0A,hl+:$color0D
--history=$HOME/.bash_history
"
}
_gen_fzf_default_opts
I am trying to find a way to synchronize the fzf theme with the shell theme, so when I execute base16_flat
in my terminal, I want my fzf theme also changed to flat
. Is there an easy way to do this?
Certainly Helios is missing.
Hi, would you consider removing newlines while setting FZF_DEFAULT_OPTS? I'm trying to save and restore my environment and the newlines make it difficult to do that.
I understand it's probably separated out on to different lines to improve readability. If that's the case then instead of
export FZF_DEFAULT_OPTS="
--color=bg+:$color01,bg:$color00,spinner:$color0C,hl:$color0D
--color=fg:$color04,header:$color0D,info:$color0A,pointer:$color0C
--color=marker:$color0C,fg+:$color06,prompt:$color0A,hl+:$color0D
"
it could be done like this:
export FZF_DEFAULT_OPTS=\
"--color=bg+:$color01,bg:$color00,spinner:$color0C,hl:$color0D "\
"--color=fg:$color04,header:$color0D,info:$color0A,pointer:$color0C "\
"--color=marker:$color0C,fg+:$color06,prompt:$color0A,hl+:$color0D"
This allows it to remain separate lines while removing newlines from the environment variable.
Hi there. If I have export FZF_DEFAULT_COMMAND="fd --type file --color=always"
, which colours filenames then it doesn't show properly with the base16-fzf schemes:
with colour scheme. (The colour codes aren't escaped)
It shows correctly with the default scheme:
without colour scheme
EDIT.
--ansi
needs to be added to $FZF_DEFAULT_OPTS
Forgot to do this when I fixed #6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.