118 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 dae78fc153 feat(git): improvements in git 'status|commits|bcommits':
- 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
2 years ago
bhagwan 236b305a18 feat: new FzfLuaXXX highlights, updated README 2 years ago
bhagwan 989674058e helptags: wrap nvim_win_call in a pcall, regen vimdoc 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 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 d44a33733e feat(help_tags): preview no longer runs `:help` (closes #457) 2 years ago
bhagwan 62f67b6194 feat(make_entry): replace $HOME with '~' where possible (#436) 2 years ago
Mark Oborne 8313277e0b fix(jumps): fix preview not showing correctly
Fixes two issues:
* Preview wasn't showing the jump location when the file was outside of
  the pwd.
* Preview wasn't showing the jump location when the jump was on a blank
  line in the current buffer.
2 years ago
bhagwan 5f74454867 ueberzug: display error message in preview win (and ':messages') 2 years ago
bhagwan eb3d2d121f nvim 0.8 compatibility: refactor preview shell command (closes #409) 2 years ago
monkoose 3a288a65b6 fix(previewer): correct highlight group in preview
To correctly match some common highlight groups such as `Float`, `Normal` etc, word boundaries
should be set, otherwise wrong highlight group is shown in the preview window. 
Also removes search highlighting of the trailing space.
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 5ae4148f77 ueberzug preview: provide a detailed error on failure 2 years ago
bhagwan 9cd5d37ecf fix: ueberzug image paths when entry.path is absolute 2 years ago
bhagwan 604e4cf4c8 feat(git): added support for --git-dir, --work-tree (yadm) 2 years ago
bhagwan 7557d90c05 wrap 'filetype detect' in pcall to prevent TS errors (#377) 2 years ago
bhagwan 835de49506 new provider: highlights 2 years ago
bhagwan ab23fb6569 ueberzug image preview: better json encode 2 years ago
bhagwan d55db75d1a suppress exit code 1 error msg, better warning for non-matched tags 2 years ago
bhagwan c8973d5a17 builtin previewer ext map to lowercase, validate ueberzug scaler 2 years ago
bhagwan 610378e53c new feature: image previews with `ueberzug` 2 years ago
bhagwan 3f72cad542 new feature: custom shell command previews (e.g. image previews with `viu`) 2 years ago
bhagwan ac4fa2a302 do not ignore cursor highlight on first column 2 years ago
bhagwan dd9db4cab9 tags default previewer, wrap tag search in a pcall (#361) 2 years ago
bhagwan ad4e168e99 buitin previewer: do not preview file size>10MB (configurable) 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 22fd2a74a1 accidentally broken preview starting with 'hidden' (closes #351) 2 years ago
bhagwan 3fa3eb0ffe help_tags: fix preview toggle, man_pages: fix extra buffer 2 years ago
bhagwan 0fa4f3d7d7 minimize preview buffer flicker between reloads (#298) 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 330742a4c0 buffers|tabs|lines: exclude quickfix buffers (closes #337) 2 years ago
bhagwan 3696489667 verify preview buffer wasn't disposed before reading (closes #327) 2 years ago
bhagwan e532ffa480 added missing 'offset_encoding' to 'vim.lsp.util.jump_to_location' 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 340ad70215 fix 'help_tags' in nightly (error: 'Expected Lua number') 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 bd57c8c2e8 bugfix: 'preview-page-reset' for tags|btags 2 years ago