Conversation
|
@phanen, still a lot more work , but starting to look like something... TODO:
|
7aaf159 to
624ae3b
Compare
|
|
This comment has been minimized.
This comment has been minimized.
Correct, but I have to find a generic solution for this that isn’t a hack or maybe a condition in live_grep which changes
|
This comment has been minimized.
This comment has been minimized.
You’re always at a performance disadvantage this way, why not use multiprocess=true with git_icons=false and file_icons=false? |
|
I don't know... |
Weird, it shouldn’t be, multiprocess should always be faster as it’s an external independent command. |
Ty for the diff fixes, I’ll add these later today. |
|
Damn, I forgot to disable |
624ae3b to
497ab31
Compare
29d551a to
01ef2bb
Compare
|
@phanen, fixed some more stuff, still have an issue with multiprocess=false and file_icons=mini which I’m able to solve with vim.schedule by uncommenting this line: Lines 215 to 216 in 01ef2bb But that presents another issue, it seems that when I use vim.scheudule there the fzf pipe closes before all the reads are complete (maybe fzf closes it with process exit?), if you run Had to go out so I left it commented for now but once I solve that it would also remove the need for the Once I solve this we can “retire” both of these functions (I think): Line 612 in 01ef2bb Line 639 in 01ef2bb |
|
Fixed in 2cd1528, finish would be called before any read were scheduled so |
2cd1528 to
dd10409
Compare
Combine a list of pickers, first picker opts will determine the settings (window, previewer, etc), althought we can combine any number of pickers beware of combining pickers with wrong type of previewers as they may not work or worse, raise an exception. ```lua :FzfLua combine pickers=buffers,files ```
refactor(resume): set_protected, actions convert chore: deprecate fzf < 0.36, it's been out since Jan 2023 ci: api test adjustments
chore: remove fn_pre_fzf, fn_pre_win, fn_post_fzf
```
FAIL in tests/win_spec.lua | win | keymap | no error:
tests/win_spec.lua:162: E5108: Lua: **/fzf-lua/lua/fzf-lua/win.lua:1534:
att
empt to concatenate local 'v' (a function value)
stack traceback:
**/fzf-lua/lua/fzf-lua/win.lua:1534: in function 'format_bind'
**/fzf-lua/lua/fzf-lua/win.lua:1559: in function 'toggle_help'
[string ":lua"]:1: in main chunk
Traceback:
tests/win_spec.lua:162
```
|
@phanen, how do you feel about merging this? |
|
Lol, review by Grok4, a bit repetitive but mostly on point: Overview of the Pull Request |
I think it's fine. The only break change for public api is |
Alright, I'll merge it tomorrow, see if you can think of any other issues. Also, the new |
|
I’m not super happy with the hacky opts propagation in the new global picker, I’ll merge this anyway and work on this later, need to find a better solution that propagates consistent opts to both actions and convert actions (for reloading and hide profile). |
fzf_execnow converts all content types (tables/funcs) to shell command strings this greatly simplifies the code as all picker inputs are now shell commands which can be used in fzf's reload, execute-silent, etc.This will also enable us to combine pickers easily with semicolon or logical and, e.g.
cmd1; cmd2orcmd1 && cmd2.Fixes #2058 and prepares the ground for #1879, #2058.