63 Commits (main)

Author SHA1 Message Date
Akianonymus d7b1ee7a84 previewer: Add title_align option
change alignment of the preview title

default is left
2 years ago
bhagwan c8d0a0274e feat(redraw): use `:FzfLua redraw` when term size changes (#498) 2 years ago
bhagwan a2c7d7863c feat(diagnostics): extract icons|highlights from neovim signs 2 years ago
bhagwan 236b305a18 feat: new FzfLuaXXX highlights, updated README 2 years ago
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 d7de3b51ae feat(grep_lgrep): save query prompt between toggles
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
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 6a4392564b fix(resume): missing '<' char (closes #454) 2 years ago
bhagwan 36278656fa switch back to correct source win when using 'split' (closes #397) 2 years ago
bhagwan 19f79c26bd call 'on_create' on window reuse (closes #394) 2 years ago
bhagwan 1b200d3bdc internal: expose FzfWin:generate_layout 2 years ago
bhagwan 782abfd69c internal: expose Win object 'self' (#389) 2 years ago
bhagwan c815531334 fix potential execution bug when nvim_win_close raises exception 2 years ago
bhagwan d55db75d1a suppress exit code 1 error msg, better warning for non-matched tags 2 years ago
bhagwan d6db28ac80 empty border adjustments for left|right and zero-length strings 2 years ago
bhagwan fccdaeb075 adjust main window layout for empty top|bottom borders (#364) 2 years ago
bhagwan 326ec9e1d0 use all available screen space when `border='none'` (closes #364) 2 years ago
bhagwan c8973d5a17 builtin previewer ext map to lowercase, validate ueberzug scaler 2 years ago
bhagwan 3f72cad542 new feature: custom shell command previews (e.g. image previews with `viu`) 2 years ago
bhagwan f0ef0d003b match 'winopts.split' window options with nvim_open_win style:minimal 2 years ago
bhagwan e063f08399 force 'redraw' when reusing an existing fzf-lua window 2 years ago
bhagwan f996eb249f adjust available preview width based on 'signcolumn' when using 'split' 2 years ago
bhagwan 27f58c51c2 new feautre: <c-i> to toggle between 'grep|live_grep' 2 years ago
bhagwan 3fa3eb0ffe help_tags: fix preview toggle, man_pages: fix extra buffer 2 years ago
bhagwan 3e6a794c8c internal: save prompt fallback in win class 2 years ago
bhagwan 9ac1543b55 F1 keybind help: normalize keybind format, remove duplicate binds 2 years ago
bhagwan 32b2cdb510 F1 keybind help: fixed formatting in wider terminals 2 years ago
bhagwan e3546e8272 new feature: press F1 for keybind help (#294) 2 years ago
bhagwan 3717661c83 'resume' rework: better way of storing last query (closes #271) 2 years ago
bhagwan f0927af072 internal: added 'win.save_query', rename internal selection callback 2 years ago
bhagwan aec049eaa6 disable 'cursorline' on resume 2 years ago
bhagwan d07c5c8522 restore 'cursorline' after 'nvim_open_win' (closes #254) 2 years ago
bhagwan 5e899dc046 set correct title highlight length (+1) 3 years ago
bhagwan 82cd9c15c3 make preview winodow focusable (closes #202) 3 years ago
bhagwan 96d772fe84 adjust max_height according to vim.o.cmdheight (issue #180) 3 years ago
bhagwan 544d5eabc8 new preview scrollbar option and highlights, win|preview options rework 3 years ago
bhagwan 2c04f7495f default map 'ctrl-z' to 'abort' (closes issue #172) 3 years ago
bhagwan 913c3c650d better error handling of fzf exit status (nvim-fzf PR #36) 3 years ago
bhagwan 846497bb92 fixed possible race condition on preview close 3 years ago
bhagwan a499bd78a4 added experimental icon support for 'live_grep' (+resume) (issue #168)
Warning: this may cause a performance degradation so you have to
manually enable this by setting `grep.experimental = true` or directly
via `:lua require'fzf-lua'.live_grep({ experimental = true })`
3 years ago
bhagwan dca31060e2 added keybinds to rotate builtin preview clockwise/counter-clockwise 3 years ago
bhagwan e7d9e5a0a8 closes issue #160 3 years ago
bhagwan 7a554bb2b2 added fullscreen option (closes issue #150), minor keymap breaking changes
'fzf_binds' and 'previewers.builtin.keymap' were merged and moved under
'keymap.fzf' and 'keymap.builtin' respectively.
See ':help fzf-lua-customization' how to reconfigure.
3 years ago
bhagwan 940415f836 tabs fixed, added descriptive error message for bad fzf flags 3 years ago
bhagwan 47f0671679 win autoclose option rework (should close issue #144) 3 years ago
bhagwan dc49182ea6 clear previous previewer on win reuse 3 years ago
bhagwan dcc8eaf295 added option to update the fzf command in window (issue #144) 3 years ago
bhagwan 2dd5046455 prevent (and alert on) multiple instances of fzf-lua 3 years ago
bhagwan f4e531b08a previow layout fixed with neovim nightly (closes issue #132) 3 years ago
bhagwan 1e375cdb21 closes issue #129 3 years ago