Closed molster closed 3 months ago
@molster Thank you for your report.
We use the CodeMirror library for rendering the code editor functionality. By default, for performance reasons, it does lazy rendering which is controlled by a parameter called viewportMargin
(https://codemirror.net/5/doc/manual.html#option_viewportMargin).
The default value for viewportMargin
is 10. If we set it to a very high number (or Infinity), then that would solve the search issue for high number of lines of code.
We will attempt the change in the following ways:
viewportMargin
to 5000 by default assuming that it should work well enough for most of the use cases without causing a major performance hit. Note: This change is done with https://github.com/webextensions/live-css-editor/commit/1899646cb42dccdf987fa44fce885020f5bf8441 and the extension update has been submitted to the Chrome Web Store. It should be available soon with v8.22.4
onwards :+1: More options
page where the user should be able to choose an appropriate value as per their needs.We hope that the root cause should be fixed for most of the use-cases as per the above mentioned Phase 1 changes.
Keeping the issue open for the updates to be done for Phase 2.
Thank you! This will be such a time saver.
Added a TODO note for the remaining part (https://github.com/webextensions/live-css-editor/commit/f2d3df6709ec8bd6662bbb58a6bc89a4c4377975) and closing this issue.
I didnt see anything in the documentation for this, so was jsut using CTRL F (both in browser, and when popped out as its own window)
However CTRL F only searches for content that is in the view. If i have about 900+ lines, you basically cant search any of the css.