pecoのkeymapと色を変更

peco/peco 便利でよく使うのですが、
デフォルトの色を変更できないかと、調べたら簡単にできました。

config.cson

versionが上がって、いろんな場所に置けるようになったようです。
私は $HOME/.config/peco/config.json にしました。

1. Location specified in --rcfile. If this doesn't exist, peco complains and exits
2. $XDG_CONFIG_HOME/peco/config.json
3. $HOME/.config/peco/config.json
4. for each directories listed in $XDG_CONFIG_DIRS, $DIR/peco/config.json
5. If all else fails, $HOME/.peco/config.json

keybindは、vimっぽく。色は少し落ち着いた感じにしてみました。

{
  "Keymap": {
    "C-k": "peco.SelectUp",
    "C-j": "peco.SelectDown"
  },
  "Style": {
    "Selected": ["underline", "on_white", "black"],
    "Matched": ["blue", "on_black"]
  }
}

f:id:rochefort:20151210105954p:plain