Skip to content

Debounce find and replace / go to line processing #202

@WebCoder49

Description

@WebCoder49

Typing some text to find and replace or a line number to go to can cause slowness now and make the next keystroke not be displayed for a while, so the processing to find and highlight text or find line length should not be carried out for every fast keystroke. Debounce it like this or with the requestAnimationFrame method used in code-input.js core.

This will probably require added timeouts for the findandreplace/gotoline tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:existing-pluginA bug/feature for an existing plugin in the plugins folder of code-input.area:testsExtra required/suggested tests for code-input and/or its plugins, in the tests folder.good first issueGood for newcomerspriority:high

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions