- Option to define 'preview_pager' (e.g. `delta`) which will be piped
onto the preview command, more convinient than having to rewrite the
preview command or have to define it under 'previewers.git_diff'
for 'git.status'
- Added timestamp & author name to 'commits|bcommits' default command
- Added timestamp to 'commits' default preview command
- 'bcommits' changes:
+ disabled for unnamed buffers
+ default preview now shows `git diff` for the specific file (instead
of showing the entire commit
+ will attempt to detect the current buffers git root in case current
working directory changed, i.e. 'bcommits' will work as long as the
current buffer is under a git repo)
- 'branches': better branch extraction lua pattern
fix(live_grep_resume): when using skim
lsp_workspace_symbols: 'opt.query' -> 'opts.lsp_query'
API adjustments:
- Support for `opts.query` everywhere
- Auto shellescape `opts.preview`
- Removed global default prompt
This patch is quite massive, hopefully I got everything right in
testing, changes include:
- New API interface for "live" queries, for usage refer to:
https://github.com/ibhagwan/fzf-lua/wiki/Advanced
- All providers now use 'fzf_exec' API (previously 'fzf_wrap')
- All "live" queries now use 'fzf_live' API
- Better resume support for "live" queries
- Fzf initial command now uses $FZF_DEFAULT_COMMAND instead of piping the
command, this delegates the responsiblity to fzf which kills the
command on exit resulting in better responsibness when exiting fzf
- Added 'silent_fail' option (default:'true') to prevent fzf from
displaying [Command failed:...] when commands exit with error code
- Exposed 'config.globals' as 'require'fzf-lua'.defaults'
- Fix: 'libuv.shellescape' with special chars in fish shells
- Manpages: moved fzf option `--tiebreak=begin' to config
- Buffer actions: navigate to line if exists
- Lsp_diagnostics: properly use a coroutine
- make_entry signatures changed (entry before opts)
- Removed make_entry shortcuts from 'core'
- Removed 'coroutine.yield' where unecessary
- Fix: 'git_icons' with 'live_grep({multiprocess=false})'
- tagstack: use relative paths and replace '$HOME' with '~'
- Deprecated 'core.fzf_files'
- Fix: resume query if cancelled while loading indicator is shown
- Fix: resume query when command failed with 'silent_fail=false'
Fzf may be configured via `$FZF_DEFAULT_OPTS` to show a border, which
takes up unnecessary space in `fzf-lua`.
Setting `config.globals.fzf_opts['--border'] = 'none'` disables Fzf's
border.
README update: fzf default opt '--border=none'