580 Commits (main)

Author SHA1 Message Date
bhagwan ab30844a7a internal: added 'fn_post_fzf' callback 3 years ago
bhagwan b2aee6f1d3 'git_status' preview rework, stage|unstage with <left>|<right> (#239) 3 years ago
bhagwan aec049eaa6 disable 'cursorline' on resume 3 years ago
bhagwan d15b90e8c3 tabs: 'ctrl-x': enable multi-delete and resume 3 years ago
bhagwan bc3edb68cf resume adjustments for buffers|tabs, 'ctrl-x' bwipe now resumes 3 years ago
bhagwan e1674cd8f5 README update: 'no_global_resume' option clarfication 3 years ago
bhagwan a6213f05e1 builtin: default exclude from 'resume' (#267) 3 years ago
bhagwan 0069dc4a8e resume adjustments for 'live_grep_glob|native' 3 years ago
bhagwan c5ff7b79cc allow empty 'keymap.fzf' table to disable fzf binds (closes #266) 3 years ago
bhagwan db3e71200d added 'changes' as a subset of 'jumps' (#264) 3 years ago
bhagwan bd57c8c2e8 bugfix: 'preview-page-reset' for tags|btags 3 years ago
bhagwan 41f8752f49 removed unnecessary debug print in 'goto_jump' 3 years ago
bhagwan 8338ecd673 do not delete typed query on consequitive 'resume' calls 3 years ago
bhagwan 1ece1ab09a added 'resume': will resume **any** list, custom or builtin (#241) 3 years ago
bhagwan 18837e1174 internal: wrap warning message from 'read_file_async' (closes #263) 3 years ago
bhagwan d874e7705a added 'jumps', closes #264 3 years ago
bhagwan b2bcca20c2 better way of getting nvim-web-devicons path (closes #260) 3 years ago
Tamir Zahavi-Brunner 9421bc225f Do not remap when calling feedkeys (closes #258)
When calling vim.fn.feedkeys for commands or searches ,which means it is
prefixed by ":" or "/", one of those keys could be remapped to something
else. Calling feedkeys with "n" means this mapping would be ignored.
3 years ago
bhagwan 3147d9b170 grep|live_grep: display informative messages on regex parse errors 3 years ago
bhagwan 62d279d74b live_grep_resume: defaulted to multiprocess, better DEBUG message 3 years ago
bhagwan d07c5c8522 restore 'cursorline' after 'nvim_open_win' (closes #254) 3 years ago
bhagwan 31a678e4de tags, btags: hide line numbers with builtin previewer 3 years ago
bhagwan 37ea63c26b grep|live_grep: added support for multiprocess search resume 3 years ago
bhagwan 887d6a4cd3 live_grep: multiprocess as default provider, added glob support 3 years ago
bhagwan 429f9572e0 live_grep_native: added multiprocess and icons support 3 years ago
bhagwan 681e5afe86 spawn_stdio: standardize stderr:write 3 years ago
bhagwan 704a81f90b properly exit neovim headless with <C-c> 3 years ago
bhagwan c569296070 internal: replace error messages from 'io.write' to 'io.stderr:write' 3 years ago
bhagwan 1a98c8919d restored 'multiprocess=true' as default (hopefully for the last time) 3 years ago
bhagwan 058a01f8d1 spawn_stdio: write error message using 'io.stderr' 3 years ago
John Drouhard 317aafa3c3 Fix multiprocess mode pipes to use io.write() instead of opening a new file descriptor on /dev/stdout and /dev/stderr 3 years ago
bhagwan 4a013fd41d multiprocess: use 'io.write' instead of 'uv.pipe:write' 3 years ago
bhagwan c614b62da7 set 'mutliprocess = false' as default until I figure out all terms 3 years ago
bhagwan d5994bf062 internal: make_entry 'file_icon_padding' minor optimization 3 years ago
bhagwan 5f31f98c8f internal: wrap load devicons and git diff files in 'pcall' 3 years ago
bhagwan d5998988c9 file actions: entry line/column take precedence over ctag navigation 3 years ago
bhagwan f8b447dbbd remove 'nvim-fzf' depedency 3 years ago
bhagwan c7dd8ac887 bugfix: previewer reload between two nameless buffers (closes #250) 3 years ago
bhagwan ab8b1a1de2 restore 'multiprocess = true' as default for 'files|grep' 3 years ago
bhagwan 828aceb3a3 internal: move git diff retrieval to make_entry.preprocess 3 years ago
bhagwan 7fa17b85bb file_icon_padding default to empty string 3 years ago
bhagwan 9ad0aefbdb set 'multiprocess = false' as the default 3 years ago
bhagwan f7b8b8d9d0 bugfix: 'git_icons' with 'mutliprocess = true' 3 years ago
bhagwan d7cc460959 last commit broken if devicons not present (#247) 3 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.
3 years ago
bhagwan fd4e94e7a4 tags: rewind to line 1 before executing search (issue #245) 3 years ago
bhagwan 72fe3222d3 keymaps: properly display <Space> (closes issue #246) 3 years ago
bhagwan e7c4970146 tags: jump to pattern when opening buffer (closes #245) 3 years ago
bhagwan 46c9e2bcd2 tags: optimized performance with the builtin previewer (#245) 3 years ago
bhagwan 028460f728 add 'tiebreak=index' to command and search history (closes #243) 3 years ago
bhagwan 05e22a4a61 performance optimizations, read below:
- do not spawn cmd with libuv unless 'file_icons' or 'git_icons' are set
- 'path.starts_with_separator' minor regex optimization
- 'files' cmd fallback order is now fd, **rg** and then find
- 'strip_cwd_prefix' enabled again (default: 'true')
- 'cwd' header line added to 'files' and 'git' providers
3 years ago
bhagwan 2f30c9cb21 temporarily disable 'strip_cwd_prefix' 3 years ago
bhagwan 58031b63d9 internal: default option condition optimization 3 years ago
bhagwan ccc9ee3e4f strip cwd prefix './' from files (fd v8.3.0 '--strip-cwd-prefix') 3 years ago
bhagwan 2d6967be4b LSP: properly set 'async = true' default for symbols 3 years ago
bhagwan a14548321a fzf win not entering INSERT mode if called from 'builtin' (closes #238) 3 years ago
bhagwan 419a57a78f LSP: set 'async = false' on all but workspace/document symbols 3 years ago
bhagwan 18addf7dfd builtin: only enter INSERT mode if 'nt' mode exists (closes #235) 3 years ago
bhagwan ae40b13517 bugfix: embarassing regex error (closes #231) 3 years ago
bhagwan 000d65b43b preview: don't reload the buffer if match is from the same file/buffer 3 years ago
bhagwan 04912f6eff limit preview filetype workaround to help files only 3 years ago
bhagwan 7b0e658db5 grep: remove '--column' flag when search string is empty 3 years ago
bhagwan 1d6ea8d381 lines|blines|grep_curbuf|lgrep_curbuf: hide filename by default
fix help buffer syntax highlighting in blines|buffer preview
3 years ago
bhagwan 253b9413eb blines: set defaults 'show_unlisted = true', 'no_term_buffers = false' 3 years ago
bhagwan a5e1be796d added '--tiebreak=index' to 'lines', 'blines' (#228) 3 years ago
bhagwan ac342fcb3b 'grep_curbuf' is now consistent with 'grep_' cmds, added 'lgrep_curbuf' 3 years ago
bhagwan 92e21423a1 lsp_code_actions: acquire client only if needed to resolve action 3 years ago
bhagwan 100f62dee1 lsp_code_actions: resolve action for jdtls (ty Telescope!) 3 years ago
bhagwan a677abe6fb blines/lines: export 'no_term_buffers' option 3 years ago
bhagwan 74fca12501 bugfix: open 'help_tags' from an existing help buffer 3 years ago
bhagwan fad1ef47e3 further shell perf improvements for git and tags 3 years ago
bhagwan abd1a3cc90 improve performance of executing commands by avoiding the shell 3 years ago
bhagwan 8d87ef366e Workaround for potential 'tempname' bug (#222) 3 years ago
bhagwan 63ed48baf9 added option to show unlisted buffers (closes #220) 3 years ago
bhagwan 2f97f24c16 tags: adjust regex crlf pattern (#219) 3 years ago
bhagwan a45ea4dec5 bugfix: tags with similar prefixes, 'ff=dos' newline (closes #219) 3 years ago
bhagwan fe4494446e expose builtin previewer window options (closes #218) 3 years ago
bhagwan 956a092e55 internal: removed unnecessary 'require' 3 years ago
bhagwan fa006b8d9f jdtls LSP code actions zero version field fix 3 years ago
bhagwan b462ba2cc6 added 'grep_project' command (shortcut to 'grep' with empty query) 3 years ago
bhagwan 5e899dc046 set correct title highlight length (+1) 3 years ago
bhagwan 056ee93169 globally apply fix from #197 (table ref copy overrides globals) 3 years ago
bhagwan ac0862cfb1 internal: libuv spawn, limit uv.write chunks to 65K 3 years ago
bhagwan e02451600a 'live_grep' freezes on large text files (#211) 3 years ago
bhagwan cb526dbb0c remove 'manually loaded' comment (closes #212) 3 years ago
bhagwan 9065fdf1bb Manually source 'FzfLua' VimL in latest nightly 3 years ago
bhagwan c9979a4bb4 workaround for 'g:nvim_fzf_directory' not set with latest nightly 3 years ago
bhagwan 471d853a9e LSP: fixed error message on LSP client failure 3 years ago
bhagwan 936c10dc71 async LSP: support multiple LSP clients attached to the same file 3 years ago
bhagwan 62937db2db run fzf with 'sh -c' to prevent woes with other shell types (#210) 3 years ago
bhagwan fc2f4b5d7d instantiate previewer from 'opts.previewer:new()' 3 years ago
bhagwan 82cd9c15c3 make preview winodow focusable (closes #202) 3 years ago
bhagwan 07010f74c6 sort 'buffers' by 'lastused' (closes #208)
also changes buffers preview to read lines from the buffer instead
of attaching the exisiting buffer to the preview window, the former
turned out to changed the 'lastused' field of the buffer which was
undesireable for buffer sorting.
3 years ago
bhagwan b3add55b46 fix tags for files with 'fileformat=dos' (closes #207) 3 years ago
bhagwan c45c06218f bugfix: ctags with tab characters (closes #206) 3 years ago
bhagwan e0ff9e501c alternative preview scroll fn (attempt to fix #202) 3 years ago
kraem d926691176 fix: make uri match more narrow 3 years ago
bhagwan 454b0ba48c bugfix: preview fail when contents contains URL (closes #204) 3 years ago
bhagwan 4b59a5d31d POSIX find warn when using '-printf' flag (#110) 3 years ago
bhagwan 120a097205 internal: export 'config' module 3 years ago
bhagwan d5a73bbaf7 git_status: deal with spaces in `git status -s` output (closes #200) 3 years ago
bhagwan 44abade325 clone code action options to prevent default act override (issue #197) 3 years ago
bhagwan 0a7462d6af warn user of buf switch failure due to unsaved changes (issue #197) 3 years ago
bhagwan f8351742be buf_del action, ignore and warn about deleting dirty buffers 3 years ago
bhagwan 1174b1259a added option to inidicate current buffer (helps issue #196) 3 years ago
bhagwan 5a2ec75b9d internal: export win module 3 years ago
bhagwan 9aab21b318 added support for 'nvim-jdtls' LSP URIs (closes issue #195)
'nvim-jdtls' extends the LSP to support eclipse jdt classes
since classes are inside '.jar' file it displays them as 'jdt://'
URIs which are then handled by 'nvim-jdtls', we can then use
'vim.lsp.util.jump_to_location' to open the URIs.
3 years ago
bhagwan 8030ffe280 nvim-fzf compatibility with core-refactor branch 3 years ago
bhagwan 05d30e8fb5 internal/API: export modules on init 3 years ago
bhagwan e4b7041957 internal: raw_fzf perf improvements 3 years ago
bhagwan b87e5da1c2 custom flags enabled for git preview pager (delta) 3 years ago
bhagwan a49e26c2f0 git checkout instead of switch when git < 2.23 (closes issue #190) 3 years ago
bhagwan 35a2302b73 unicode separator set to U+2002 (should solve #189) 3 years ago
bhagwan 9a6a8a2833 added zero-width space to icon separator (issue #189) 3 years ago
bhagwan f947669dec internal: libuv helpers, perf enhancements 3 years ago
bhagwan fd497f313d internal 'live_grep' modifications (hopefully solves #185) 3 years ago
bhagwan 30f50017bf internal: renamed 'cb_pid' -> 'pid_cb' 3 years ago
bhagwan 69b70ec2ec terminate initial command when fzf is closed (issue #187) 3 years ago
bhagwan c0d533f4d0 man previewer: 'col -b' -> 'col -bx' 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 11c369316f internal: moved preview delay under 'winopts.preview.delay' 3 years ago
bhagwan f322d59653 added customization to man previewer cmd 3 years ago
Seth Messer 1faf5e02e0 fix(): update default preview config to `'border'` from `'float'`.
Was throwing the following:
`[Fzf-lua] fzf error 2: invalid preview window option: float`

Now matches the docs.
3 years ago
bhagwan 3d1b8d0c06 better 'man_pages' preview (no hacky win, issue #175) 3 years ago
bhagwan 4b9b719491 added 'noautocmd' to 'help_tags' to prevent oddities (issue #175) 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 e9c70a8d9f bugfix: code action not applied properly (closes issue #179) 3 years ago
bhagwan 7025700c66 properly detect LSP client after LSP restart (closes issue #174) 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 76b6a994b8 reverted syntax highlighting location (after file read) 3 years ago
bhagwan 846497bb92 fixed possible race condition on preview close 3 years ago
bhagwan b9c03225a7 added 'live_grep_glob' for dynamic rg filtering with '--glob|iglob' 3 years ago
bhagwan 3b24fe4f39 added cmd_fn option for 'grep' providers (to enable '--iglob' support) 3 years ago
bhagwan 56885088e9 fix preview win highlights in 'buffers' (issue #169) 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 3f4d57bec6 removed '--reflog' from commit|bcommit commands 3 years ago
bhagwan 275a351c98 added 'args.files_only' to README 3 years ago
bhagwan cc74396e8f added 'args' provider 3 years ago
bhagwan 67163f4c5f better handling of 'cwd' in 'live_rg' (should solve issue #166) 3 years ago
bhagwan 510aca8658 restored preview binary test using perl '-B' 3 years ago
bhagwan 9454bcbad9 temp disable of binary preview test, match preview delay with fzf native 3 years ago
bhagwan 29ae04d73f added 60ms delay before builtin preview (issue #164)
delay can be controlled (or disabled) by setting
'previewers.builtin.delay'
3 years ago
bhagwan 5bdb213558 enable syntax highlighting before file read (closes issue #162) 3 years ago
bhagwan dca31060e2 added keybinds to rotate builtin preview clockwise/counter-clockwise 3 years ago
bhagwan 64ceffcd0a default action for files changed to 'file_edit_or_qf', read below:
- normalized action callback 'selected' table, before this change
  selected items table were passed through transparently from nvim-fzf
  meaning the first item in the table could either be a selected item
  or the name of the keybind pressed (when multiple actions were
  present), this changes makes sure 'selected' table contains only
  valid items (removes the keybind if necessary)
  If you've developed a custom action callback please modify it to
  start enumerating the items at 'selected[1]' (and not selected[2])
- fixed minor issue with 'fzf_colors' on default colorschemes
3 years ago
bhagwan e7d9e5a0a8 closes issue #160 3 years ago
bhagwan 28f3bcac27 disable preview for binary files (closes issue #157) 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 9a24d8e466 lines with 'set nohidden' to show unloaded buffers (closes issue #159) 3 years ago
bhagwan 7243918bdd Default border color set to 'Normal', minor 'git_diff' fix 3 years ago
bhagwan fdae33b047 live_grep_resume performance (closes issue #154) 3 years ago
bhagwan 70c0337f8e default live_grep changed to native (no resume: issue #154) 3 years ago
bhagwan 940415f836 tabs fixed, added descriptive error message for bad fzf flags 3 years ago
bhagwan 4e196386e9 ignore colors unless specified 3 years ago
bhagwan 59d8f6eed5 add cursor location to jumplist (closes issue #147) 3 years ago
bhagwan a11f5eb9d4 rework fzf flags, close issue #149 3 years ago
bhagwan 1a2e198f1b added 'search' option for lines|blines (closes issue #146) 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 5ba790c392 blines working again 3 years ago
bhagwan 7e946aa515 get the corrent lnum for multiple tabbed buffers 3 years ago
bhagwan b30ce12b77 'tabs' improvements 3 years ago
bhagwan c4a829e83e added 'buffers' 3 years ago
bhagwan f3f373beaf better cwd param handling for files|files_resume 3 years ago
bhagwan 2dd5046455 prevent (and alert on) multiple instances of fzf-lua 3 years ago
bhagwan 2cd88dc855 terminal buffer preview workaround (hopefully closes issue #138) 3 years ago
bhagwan 38334ff1ef live_lsp_workspace_symbols fix for C-lang (closes issue #137) 3 years ago
bhagwan 6708e58caf minor internal function rename 3 years ago
bhagwan c876f8315a lsp_live_workspace_symbols rework, better API for live commands 3 years ago
bhagwan f4e531b08a previow layout fixed with neovim nightly (closes issue #132) 3 years ago
bhagwan 7acb6826c1 ability to disable previewer for lines|blines 3 years ago
bhagwan 7c74fd8d80 marks invalid clipboard data fix 3 years ago
bhagwan 8871e7485a perf improvement for system commands (issue #126) 3 years ago
bhagwan dffe7ff56b git_icons and git_status improvements 3 years ago
bhagwan 1e375cdb21 closes issue #129 3 years ago
bhagwan eb7973f926 yet another fix for preview scrollchar 3 years ago
bhagwan 983466c421 minor fix for scrollchar customization 3 years ago
bhagwan 2bc6c1b079 borderchars can now handle highlights (closes issue #129) 3 years ago
bhagwan 0ec62035a7 fzf_binds backward compatibility 3 years ago
Bogdan Grigoruță 3c486b17aa core: Change fzf_binds configuration style
This allows the users to configure fzf_binds in a way that is
similar to other key mappings defined in config.lua.
3 years ago
bhagwan 329863d754 added marks builtin previewer 3 years ago
bhagwan 0feeb0fdbb more improvements to previewer interface for future extensions 3 years ago
bhagwan 1d3f8124bb live_grep remove search term from header 3 years ago
bhagwan 926e691ab7 default fzf binds for ctrl-d|u, ctrl-a|q combo changed to alt-a|q 3 years ago
ibhagwan c7f0200013
Merge pull request #125 from camilledejoye/improvement/lsp-provider-use-actions
LSP: 'jump_to_single_result' custom user action (closes issue #124)
3 years ago
bhagwan 1991beb6e8 live_grep defaults to 'continue_last_search', help|man preview mods 3 years ago
Camille Dejoye d500f86773 improvement: lsp provider uses actions 3 years ago
bhagwan df3804ed55 builtin previewer rework, added previewers for help_tags, man_pages 3 years ago
bhagwan 81ed9c4d6b git_branches: better remote branches detection 3 years ago
bhagwan 5de5638d37 closes issue #122 3 years ago
bhagwan 01e79fd8c9 git_branches remove --reflog, minor previewer interfaces changes 3 years ago
bhagwan 2016be182a closes issue #119 3 years ago
ibhagwan 71e105e081
Merge pull request #117 from jdrouhard/performance_improvements
More performance improvements
3 years ago
bhagwan 57ce1bff55 live_grep resume search is working again 3 years ago
bhagwan 0d24020629 live_grep escape hyphen, minor modification for 'sk' 3 years ago
bhagwan 9785cafd9a live_grep default changed to native (no resume) temporarily 3 years ago
John Drouhard a846889c7e More performance improvements for hot-path functions tail() and extension(); improve get_devicon() to be case-insensitive for extension 3 years ago
bhagwan eb19fb51ac added cwd to search headers, added headers to live_grep 3 years ago
bhagwan eaf465f9e9 grep, live_grep cwd relative path display 3 years ago
bhagwan 6fc53bc42e fzf_colors added to README 3 years ago
Bogdan Grigoruță f9415a00fe core: Add support for the fzf --color option 3 years ago
bhagwan 28f0adcfa3 grep: enable empty string search 3 years ago
bhagwan 2afab38370 sk live_grep single quote search fix 3 years ago
bhagwan 67b727bd8e better grep,live_grep search query continuation 3 years ago
bhagwan befdb5db85 files_resume flicker fix (within issue #103) 3 years ago
bhagwan 2de83f800e added icons to lines|blines 3 years ago
John Drouhard d04dc95a94 Slight cleanup in make_entry_file(); make buffer list pass correct filename to get_devicon() 3 years ago
John Drouhard c78712c407 Improve performance of path.tail() and path.extension() by not matching with end-anchor $ 3 years ago
John Drouhard 02ad885d30 File icons: use colors from nvim-web-devicons if available
This improves the colors for file icons if nvim-web-devicons is
available. If it is, fzf-lua now uses those colors for the icons.

This should also improve the performance of make_entry_file by
optimizing string creation and when various regexes are matched.
3 years ago
bhagwan fa70aa52f8 added 'lines' (closes issue #97) 3 years ago
bhagwan ae5fc09069 close preview when 'jump_to_single_result = true', also closes issue #105 3 years ago
bhagwan 7fc2c44bd3 compatibility with new LSP handlers (closes issue #109) 3 years ago
bhagwan 07288898af added 'files_resume' (issue #103) 3 years ago
bhagwan 137b246845 file_icon_padding, replace spaces with unicode invisible char 3 years ago
ibhagwan e94e2bb286
Merge pull request #104 from EdwarKenedy/file_icon_padding
Add file_icon_padding option
3 years ago
bhagwan ce30520aef closes #102 3 years ago
bhagwan 2617aa1587 added convenience function 'live_grep_resume' 3 years ago
Edwar Martinez 0f713785a0 Add file_icon_padding option 3 years ago
bhagwan 62024ecf9a live_grep saves last search term (closes issue #103) 3 years ago
bhagwan cc7828d4d2 lsp prompt lables respected again 3 years ago
bhagwan 7a144f81da bugfix: [No Name] buffer, minor live_grep modifications 3 years ago
bhagwan 78895876c2 standardize 'fzf_bin', live_grep options optimizations 3 years ago
bhagwan 5a66cae8ff live_grep further optimizations for empty string queries (both fzf|sk) 3 years ago
bhagwan 5fcbace5ba live_grep: do not perform empty string initial query (closes issue #92) 3 years ago
bhagwan 1837038f8e executed searches|commands will be added to history (closes issue #95) 3 years ago
bhagwan 8feda7fb9c added preview scrolling for terminal buffers 3 years ago
bhagwan 6c349939b8 lsp_code_actions should ignore jump_to_single_result (closes issue #93) 3 years ago
bhagwan 3527c8e532 added '--perl-regexp' to grep options (closest match to rg regex engine) 3 years ago
bhagwan bdbd662468 better handling of '--ansi' flag, detect extension on filenames with space 3 years ago
bhagwan 2ae75cba96 column support for search matching, default colors for extensions 3 years ago
John Drouhard d34444e860 Builtin previewer: improve mechanism for backing up/restoring winopts
See :help local-options for more details, but essentially, we have to be
very careful with how we set window-local options on popup windows,
because buffers might take some window-local options from the last
window they were displayed in with them to the new window in certain
circumstances.

This commit changes the backup/restore for the window options so that
the possible window-local options that might get clobbered are saved
from the original active window and reapplied to the preview window just
before it's closed. This ensures any buffers loaded from the picker will
have the same window options applied that were in the active window when
fzf was opened.
3 years ago
bhagwan d8b5981e92 README: added lua keymap exmaple, removed commented `_G.dump`(s) 3 years ago
bhagwan a0f073950b misc previewer title display improvements, grep 'no_esc' option added 3 years ago
bhagwan 93ca0a3adf git_status preview now shows deleted and untracked files 3 years ago
ibhagwan 532cea4291
Merge pull request #90 from jdrouhard/better_git_cwd
Improve git commands so they always run in the git root directory
3 years ago
John Drouhard 6668b04b4b Improve git commands so they always run in the git root directory
This matches the behavior of both fzf.vim and telescope.nvim.

It also fixes a bug with the "git_buf_edit" action if the cwd is not in
the git root.
3 years ago
jpe f3471b411f Fix loss of git records after checking out older commits 3 years ago
bhagwan 789e0bf310 added 'filetypes' provider 3 years ago
bhagwan 7b9fe4495e 'git_xxx' now supports 'cwd' option (closes issue #82) 3 years ago
bhagwan e3e6d2643b 'current_buffer_only' option to LSP providers (closes issue #80) 3 years ago
bhagwan 6aff90f99b improved actions for command_history|search_history (closes issue #75) 3 years ago
bhagwan 9fb6a3059f added 'blines' provider (closes issue #77) 3 years ago
bhagwan 1b1de47c57 even better method for filetype detection, ty @jdrouhard! 3 years ago
bhagwan 96bbe33406 better filetype detection, closes issue #74 3 years ago
bhagwan 571ec3a8ca closes issue #78 3 years ago
bhagwan 5472c41f20 bugfix: live_grep with underlying 'grep' 3 years ago
bhagwan 659bd79718 bugfix: grep_curbuf 3 years ago
bhagwan fe4cfcece7 added options to override '--ansi' and '--info' (closes issue #76) 3 years ago
bhagwan 46f186c954 adjust fzf win size when closing preview (issue #73) 3 years ago
francisco souza 9dbaad9f94 Fix empty line in the builtin previewer
Whenever the file ends with newline, the builtin previewer was adding an
empty line at the end of the file. That's a side effect splitting and
rejoining the lines with \n. Basically, when we split a\nb\nc\n we get
{'a', 'b', 'c', ''}, then nvim_buf_set_lines treats each item in the
table as a line, and inserts an empty line at the end.

We do need to account for files that don't end with a new line though,
hence the check.

I don't have a way to test the \r\n logic locally, no Windows hosts
around, but it should work too.
3 years ago
bhagwan 34a2997869 bat_native config|theme to be respected 3 years ago
bhagwan 2aeb0fc36f should close issue #70 3 years ago
bhagwan ba77d4912d bugfix: get_visual_selection with dirty buffers(closes issue #54) 3 years ago
bhagwan bbef641125 fixes issue #67 3 years ago
bhagwan ac99206c13 added 'packadd' provider (closes issue #64) 3 years ago
bhagwan 757d6392f0 added builtin previewer options for syntax bytes/lines limits 3 years ago
bhagwan e6c4f31c06 git_buf_edit, set bufhidden:wipe 3 years ago
jpe 0b97ac673b Add actions to checkout and inspect previous git commits 3 years ago
bhagwan 37a6f3b999 closes issue #62 3 years ago
francisco souza 941064ed5b Set cursorlineopt=both in the builtin previewer
This way, if the user has defined cursorlineopt=number elsewhere, we
override it to behave as intended.
3 years ago
bhagwan e89018baf9 builtin previewer: misc config options added 3 years ago
bhagwan 2315413bdd closes issue #59 3 years ago
bhagwan a7c093e774 set filetype in a pcall to circumvent error (issue #58) 3 years ago
bhagwan a2470b81e1 should close issue#58 3 years ago
bhagwan eefed45175 added builtin previewer 3 years ago
francisco souza 233062d7e6 providers/lsp: support for a pre-defined query in workspace_symbols 3 years ago
bhagwan 82a477420d fix `bcomments` for git version < 2.31 (issue #48) 3 years ago
bhagwan dee50f72d9 adjust buffers:current colors (issue #47) 3 years ago
bhagwan c67bf21428 buffers: remove header color, lsp_live_ws_symbols: async WIP 3 years ago
bhagwan f51135cc3c added `lsp_live_workspace_symbols` 3 years ago
bhagwan 7322a96b2d tags, btags complete, misc fixes 3 years ago
bhagwan c938022571 grep: added `filespec` option 3 years ago
bhagwan 1c25350397 added raw_cmd option to files,grep 3 years ago
bhagwan ecdc79da2e WIP: added `tags`, `btags` (need to fix previewer line) 3 years ago
bhagwan cea8e27991 added `marks` 3 years ago
bhagwan faad0474d4 added neovim builtin providers
commands, command_history, search_history, keymaps, registers, spell_suggest
3 years ago
bhagwan 48ce442b21 bugfix: calling files with find (instead of fd), closes issue #43 3 years ago
bhagwan 8da08ec5b3 bugfix: lsp_code_actions with more than one LSP client (issue #42) 3 years ago
bhagwan 3c661e552e refactor and add 'cwd_only' option to all file providers 3 years ago
bhagwan b25e5bef33 added async|sync option to LSP functions 3 years ago
Denys Zadorozhnyi d7b4696985
add lsp.workspace_diag_only_cwd option to filter out diagnostics entries from files outside of the current working directory (#36)
* add lsp.workspace_diag_only_cwd option to filter

out diagnostics entries from files outside of the current
working directory;

* switch to cwd_only option;

* restore original filtering in buffer_diag loop;
3 years ago
John Drouhard 57f304b270 Optimize git performance: 1) faster method to determine if in git repo; 2) bypass entirely if git icons disabled 3 years ago
bhagwan ccc9d5f6c1 option to open in a split instead of a popup 3 years ago
bhagwan d1fe6479c1 bugfix: lsp_workspace_symbols filename (issue #34) 3 years ago
bhagwan fd390cdcea added git_status 3 years ago
bhagwan 1257eadb7c added git commits,bcommits,branches 3 years ago
bhagwan 049298e818 added FzfLua command with auto-complete 3 years ago
bhagwan 0d05954397 previewers migrated to new async_action 3 years ago
bhagwan 1cafaba2f9 updated README, fix for issue #33 3 years ago
bhagwan 652f66d36b bugfix: rg --color prevented git_icons from showing 3 years ago
bhagwan a91e839cce file providers with custom cwd bugfix 3 years ago
bhagwan b21f5a6308 previewer fix for fish shell 3 years ago
bhagwan ec2e870614 refactor previewers 3 years ago
bhagwan cf583fe211 fix issue #28, added search header for cword/visual grep 3 years ago
ibhagwan 2c9438855c
Merge pull request #27 from kdheepak/add-open-in-background
Added “open file in background” (as buffer) action
3 years ago
Dheepak Krishnamurthy bd71a01711 Add open in background file buffer 3 years ago
bhagwan 9d0be97816 potential fix for issue #23 3 years ago