haddock
                                
                                 haddock copied to clipboard
                                
                                    haddock copied to clipboard
                            
                            
                            
                        QuickJump: Don't search for every keypress.
When the search box gets updated, wait 150ms before searching.
I see you that haddock-api/resources/html/package-lock.json was removed and haddock-api/resources/html/yarn.lock added. What is the reason for this?
Otherwise, this seems reasonable. Ideally, the UI would not be blocked while it searches, but that's a whole other problem.
I switched from npm package manager to yarn package manager (which is built on top of npm). Yarn has several advantages over plain npm so the js community as a whole is moving towards yarn. They consume the same input files and work in a similar way but yarn is easier to use. They use different lock files and it's dangerous to keep both since they can have locked different package versions.
And yes, the work should ideally not be done on the UI thread to start with. It could be done in a service worker, but that's future work :)
Right, QuickJump could stand to have nicer API 😄. But this PR is a definite improvement, so let's get it merged!
I switched from npm package manager to yarn package manager (which is built on top of npm). Yarn has several advantages over plain npm so the js community as a whole is moving towards yarn. They consume the same input files and work in a similar way but yarn is easier to use. They use different lock files and it's dangerous to keep both since they can have locked different package versions.
Seems reasonable. Shouldn't the documentation here be updated to talk about yarn though?
Oh, sure, I'll update the instructions. I've got a lot going on now, but I'll get to it shorly I hope.
@mergifyio rebase
@kolmodin Do you still want to work on this?
rebase
✅ Branch has been successfully rebased
No, sorry. Can someone take over, if this PR is still relevant?
I have no idea if it's still relevant, you opened it before I took office. :)
I will mark it as draft.
quickjump usually lags out the JS engine instantly if I apply it to esqueleto or persistent e.g., so I think this PR is still relevant, although I am wondering if it is doing something exceedingly inefficient and which could be improved instead?
Hi, thank you for this PR, but Haddock now lives full-time in the GHC repository! Read more at https://discourse.haskell.org/t/haddock-now-lives-in-the-ghc-repository/9576.
Let me know if you feel it is still needed, and I'll migrate it. :)