User configuration
Override config
- User has the possibility to place all its personal
fzf-obc
configurations in${XDG_CONFIG_HOME:-$HOME/.config}/fzf-obc/. - User configuration is dynamic and is load each time a completion is asked and
does not require to reload fzf-obc when the configuration is changed. - Each trigger type has its own configuration
- The configuration could be changed at :
- Global level :
${XDG_CONFIG_HOME:-$HOME/.config}/fzf-obc/default.cfg - Command level :
${XDG_CONFIG_HOME:-$HOME/.config}/fzf-obc/[command].cfg
- Global level :
Settings
Each setting are available for each trigger type and could be set indenpendently
enable
- should we display completion results with fzf-obc or not
- standard trigger:
- default :
1 - config variables :
std_enableFZF_OBC_STD_ENABLE
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_enableFZF_OBC_MLT_ENABLE
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_enableFZF_OBC_REC_ENABLE
fzf_trigger
- Which pattern will trigger fzf-obc in which mode when asking for a completion
- standard trigger:
- default :
<empty> - config variables :
std_fzf_triggerFZF_OBC_STD_FZF_TRIGGER
- default :
- multi selection trigger
- default :
* - config variables :
mlt_fzf_triggerFZF_OBC_MLT_FZF_TRIGGER
- default :
- recursive trigger
- default :
** - config variables :
rec_fzf_triggerFZF_OBC_REC_FZF_TRIGGER
- default :
fzf_multi
- should we enable multiple selection when displaying results with fzf
- standard trigger:
- default :
0 - config variables :
std_fzf_multiFZF_OBC_STD_FZF_MULTI
- default :
- multi selection trigger
- default :
1 - config variables :
mlt_fzf_multiFZF_OBC_MLT_FZF_MULTI
- default :
- recursive trigger
- default :
1 - config variables :
rec_fzf_multiFZF_OBC_REC_FZF_MULTI
- default :
fzf_opts
- defaults options for fzf
- standard trigger:
- default :
--select-1 --exit-0 --no-sort - config variables :
std_fzf_optsFZF_OBC_STD_FZF_OPTSFZF_OBC_OPTS
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_fzf_optsFZF_OBC_MLT_FZF_OPTSFZF_OBC_OPTS
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_fzf_optsFZF_OBC_REC_FZF_OPTSFZF_OBC_GLOBS_OPTS
fzf_binds
- Bindings used with fzf when displaying results
- standard trigger:
- default :
--bind tab:accept' 'FZF_OBC_BINDINGS - config variables :
std_fzf_bindsFZF_OBC_STD_FZF_BINDSFZF_OBC_BINDINGS
- default :
- multi selection trigger
- default :
--bind tab:toggle+down;shift-tab:toggle+up - config variables :
mlt_fzf_bindsFZF_OBC_MLT_FZF_BINDSFZF_OBC_GLOBS_BINDINGS
- default :
- recursive trigger
- default :
- inherited from multi selection trigger if multi selection is ON for recursive mode
- inherited from standard trigger if multi selection is OFF for recusrive mode
- config variables :
rec_fzf_bindsFZF_OBC_REC_FZF_BINDS
- default :
fzf_size
- Size of the fzf window when displaying results
- standard trigger:
- default :
40% - config variables :
std_fzf_sizeFZF_OBC_STD_FZF_SIZEFZF_OBC_HEIGHT
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_fzf_sizeFZF_OBC_MLT_FZF_SIZEFZF_OBC_HEIGHT
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_fzf_sizeFZF_OBC_REC_FZF_SIZEFZF_OBC_HEIGHT
fzf_position
- Position of the fzf window when displaying results (only with tmux)
- standard trigger:
- default :
r - config variables :
std_fzf_positionFZF_OBC_STD_FZF_POSITION
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_fzf_positionFZF_OBC_MLT_FZF_POSITION
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_fzf_positionFZF_OBC_REC_FZF_POSITION
fzf_tmux
- Should we display the fzf window in a tmux pane or not (only with tmux)
- standard trigger:
- default :
1 - config variables :
std_fzf_tmuxFZF_OBC_STD_FZF_TMUX
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_fzf_tmuxFZF_OBC_MLT_FZF_TMUX
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_fzf_tmuxFZF_OBC_REC_FZF_TMUX
fzf_colors
- Color scheme options for fzf
- standard trigger:
- default :
border:15 - config variables :
std_fzf_colorsFZF_OBC_STD_FZF_COLORS
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_fzf_colorsFZF_OBC_MLT_FZF_COLORS
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_fzf_colorsFZF_OBC_REC_FZF_COLORS
sort_opts
- Which options to use with gnu sort when displaying the results
- standard trigger:
- default :
-Vdf - config variables :
std_sort_optsFZF_OBC_STD_SORT_OPTS
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_sort_optsFZF_OBC_MLT_SORT_OPTS
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_sort_optsFZF_OBC_REC_SORT_OPTS
filedir_short
- Should we display the path as the original complete or the full path
- standard trigger:
- default :
1 - config variables :
std_filedir_shortFZF_OBC_STD_FILEDIR_SHORTFZF_OBC_SHORT_FILEDIR
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_filedir_shortFZF_OBC_MLT_FILEDIR_SHORTFZF_OBC_SHORT_FILEDIR
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_filedir_shortFZF_OBC_REC_FILEDIR_SHORTFZF_OBC_SHORT_FILEDIR
filedir_colors
- Should we colorized files/paths when displaying the results
- standard trigger:
- default :
1 - config variables :
std_filedir_colorsFZF_OBC_STD_FILEDIR_COLORSFZF_OBC_COLORS
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_filedir_colorsFZF_OBC_MLT_FILEDIR_COLORSFZF_OBC_COLORS
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_filedir_colorsFZF_OBC_REC_FILEDIR_COLORSFZF_OBC_GLOBS_COLORS
filedir_hidden_first
- Should we put hidden files/directories first in results, at the end, or untouched
- Could be
0,1,<empty> - standard trigger:
- default :
0 - config variables :
std_filedir_hidden_firstFZF_OBC_STD_FILEDIR_HIDDEN_FIRST
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_filedir_hidden_firstFZF_OBC_MLT_FILEDIR_HIDDEN_FIRST
- recursive trigger
- default : inherited from standard trigger
- config variables :
rec_filedir_hidden_firstFZF_OBC_REC_FILEDIR_HIDDEN_FIRST
filedir_maxdepth
- Maximum depth for files/paths lookup
- standard trigger:
- default :
1 - config variables :
std_filedir_maxdepthFZF_OBC_STD_FILEDIR_MAXDEPTH
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_filedir_maxdepthFZF_OBC_MLT_FILEDIR_MAXDEPTH
- recursive trigger
- default :
999999 - config variables :
rec_filedir_maxdepthFZF_OBC_REC_FILEDIR_MAXDEPTHFZF_OBC_GLOBS_MAXDEPTH
- default :
filedir_exclude_path
- Paths to exclude with files/paths lookup
- standard trigger:
- default :
<empty> - config variables :
std_filedir_exclude_pathFZF_OBC_STD_FILEDIR_EXCLUDE_PATH
- default :
- multi selection trigger
- default : inherited from standard trigger
- config variables :
mlt_filedir_exclude_pathFZF_OBC_MLT_FILEDIR_EXCLUDE_PATH
- recursive trigger
- default :
.git:.svn - config variables :
rec_filedir_exclude_pathFZF_OBC_REC_FILEDIR_EXCLUDE_PATHFZF_OBC_EXCLUDE_PATH
- default :
Examples
Disable fzf-obc over git command and use "original" completion
$ cat > ${HOME}/.config/fzf-obc/git.cfg
# Disable fzf-obc on std trigger
std_enable=0
# Since mlt_enable / rec_enable take by default the value of std_enable
# No need to add
# mlt_enable=0
# rec_enable=0
Use space with standard trigger for all commands to validate selection in fzf instead of <TAB>
cat > ${HOME}/.config/fzf-obc/default.cfg
std_fzf_binds='--bind space:accept'