split win.lua into modules#2512
Conversation
phanen
commented
Jan 13, 2026
- refactor: split scrollbar/helpwin/backdrop/tsinjector from win.lua
- chore: lint
f34c822 to
aeb9e7e
Compare
|
Maybe we can generate screenshots on a fixed revision, to reduce screenshot rotten |
You mean when we add new files? We can have a test folder with a few files and run all testing only inside the test folder - is this what you mean by fixed rev? |
yes, that's also an option. |
I like the revision idea, reduces junk test files, slight issue is debugging the screenshots (if something is missing) is slightly more annoying. |
e45b1d9 to
d836dd7
Compare
|
now child run in Not sure why some grep/file screenshots changed |
|
Confusing windows screenshot. so previous window use |
3281da7 to
04a213b
Compare
|
Why this step is needed when we hide fzf win? Lines 1049 to 1053 in 04a213b Or why |
|
Btw, do you know why in 740b07e the preview screenshots have one less character? is it due to the preview scrollbar? |
not sure, I hope so.. |
I don’t mind it, just want to understand if this is intentional and why it happens, the ci scroll bar didn’t change AFAIK so why would this happen |
Test runner cwd unchanged, child init cwd is ./deps/fzf-lua Remember to wrap abspath when use some path in child
|
485ee67, lucky guess, it seems that it was the scroll bar, maybe it’s enabled differently due to the refactor? |
win.lua is a bit big now fix(tsinjector): detach after clear_cache
* remove "save/restore" hacks, use utils.win_set_config to remove style="minimal" * nvim_win_set_config title require without border only fail when <0.11
fix: correct win types fix(win): winrestcmd is only used for split
remove useless functions chore: setup autocmds together chore: consistent code style
keep consistant behavior with "reuse" win
the release order is a bit non-deterministic but should not be a big issue
fix: vim.o.hidden=false
array part always emit, non-array part only emit on given events
chore: types
|
Yes, it's scrollbar. It shouldn't in that commit. I forgot to split this out when reorder the commit. But now it's fixed in b88d338. |
Can i merge then |
|
yes |