31 Commits (519dbf067bc54a19f5bd57fa86dedecf13bfb1fe)

Author SHA1 Message Date
bhagwan 519dbf067b feat(preview): toggle cursorline hl when scrolling (#462)
Other changes:
- preview: added new highlight setting `CursorLineNr`
- internal changes to preview command shellescape
2 years ago
bhagwan 817df87a8e Major refactor, read below if you're having issues
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'
2 years ago
bhagwan eb3d2d121f nvim 0.8 compatibility: refactor preview shell command (closes #409) 2 years ago
bhagwan b614a9d315 feat: file providers now support 'path_shorten' (#408) 2 years ago
bhagwan a0ac8021de buffers:|tabs: new option 'filename_only' (closes #404) 2 years ago
bhagwan 9f197417dc git_status: prevent preview error in bare git repo 2 years ago
bhagwan 5722fd62fd feat(git_diff): more complex custom preview commands (closes #392) 2 years ago
bhagwan 97d4ba31f7 git icons|status: added support for 'typechange' diff 2 years ago
bhagwan 604e4cf4c8 feat(git): added support for --git-dir, --work-tree (yadm) 2 years ago
bhagwan d55db75d1a suppress exit code 1 error msg, better warning for non-matched tags 2 years ago
bhagwan 00855a7b83 removed tag preview debug print 2 years ago
bhagwan b98bb2618c tags|btags bugfix: preview/action when tag name contains / or <Tab> 2 years ago
bhagwan fc77943cdf bat previewer optimization for ctags with no line numbers (#355) 2 years ago
bhagwan 9a0f625804 normaize fzf FIELD INDEX EXPRESSION, see below:
- refactor fzf field index experssion and line field number options
- enable native fzf previewers (bat/cat/head) for all file/buffer providers
- buffers|lines|blines|tabs now respect default previewer
2 years ago
bhagwan 027068511a bugfix: delimiter for 'dap_breakpoints' 2 years ago
bhagwan 930cc5f487 added support for nvim-dap (#101) 2 years ago
bhagwan 2a2c8502a4 refactor native fzf previewer params 2 years ago
bhagwan 20f926ad36 git_status fish shell compatibility (closes #320) 2 years ago
bhagwan 1546c82b67 pass $FZF_PREVIEW_LINES|$FZF_PREVIEW_COLUMNS to git_diff cmd (#313) 2 years ago
bhagwan 243ec9d9f3 chore: remove all LSP warnings 2 years ago
bhagwan 3eb5baa6e9 bugfix: git icon overrides breaks 'git_status' (closes #283) 2 years ago
bhagwan b2aee6f1d3 'git_status' preview rework, stage|unstage with <left>|<right> (#239) 2 years ago
bhagwan 2d8a4e9afc major performance improvement: process entries externally, READ BELOW:
Since LUA is single threaded I reached a limit to performance
optimization, both 'git_icons' and 'file_icons' require string
matching and manipulations which eventually hurt performance
when running on large amount of files.
In order to solve that this commit introduces the option to spawn
commands and process the entries in a separate neovim process which
prints to stdio as if it was a regular shell command. This speeds up
things significantly and also makes the UI super responsive as if fzf
was run in the shell. This required a few lua hacks to be able to load
nvim-web-devicons in a '--headless --clean' instance and sharing the
user configuration through the RPC interface from the running instance.
This is enabled by default for 'files' and 'grep' providers and can also
be enabled for 'git.files' if required, control using the 'multiprocess'
option.
2 years ago
bhagwan 46c9e2bcd2 tags: optimized performance with the builtin previewer (#245) 2 years ago
bhagwan e02451600a 'live_grep' freezes on large text files (#211) 3 years ago
bhagwan b87e5da1c2 custom flags enabled for git preview pager (delta) 3 years ago
bhagwan f947669dec internal: libuv helpers, perf enhancements 3 years ago
Bartosz Mąka 9b5fd877e0 Add pager option and pipe cmd to pager if exists
git_diff pager: check for empty string
3 years ago
bhagwan 7243918bdd Default border color set to 'Normal', minor 'git_diff' fix 3 years ago
bhagwan dffe7ff56b git_icons and git_status improvements 3 years ago
bhagwan 0feeb0fdbb more improvements to previewer interface for future extensions 3 years ago