Giter Site home page Giter Site logo

tinted-theming / tinted-fzf Goto Github PK

View Code? Open in Web Editor NEW
130.0 7.0 9.0 1.33 MB

base16 colorschemes for fzf

Home Page: https://github.com/base16-project/base16

License: MIT License

Shell 77.57% Mustache 0.96% PowerShell 21.47%
base16 base16-color theme fzf

tinted-fzf's People

Contributors

aesnyder avatar auditemarlow avatar ayyess avatar fnune avatar inspectormustache avatar jamygolden avatar nicodebo avatar pbar1 avatar saesh avatar tinted-theming-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tinted-fzf's Issues

Colours are not applied when inside tmux

screen shot 2018-11-06 at 08 22 51

screen shot 2018-11-06 at 08 22 35

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

Remove newlines from exported values

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.

Colour escape codes printed with fd

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.