processing / processing/p5.js-web-editor

Ctrl+F glitchy when switching between files

Open
#2,125 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Area:Editor Bug
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

  • p5.js version: 1.5.0

  • Web browser and version: Chrome, Firefox, and Edge, most recent

  • Operating System: Windows 11

  1. Go to this link and go to sketch.js
  2. Ctrl+F and type "test". Notice there are 4 instances of "test"
  3. Switch to new.js and press the "next" (down arrow) on the Ctrl+F bar
  4. Notice it always says 0/4 (it should say 1/2 and 2/2 I assume)
  5. Type another "test" in new.js and hit the down arrow
  6. Notice it says there are now 7 instances of "test" (it should say 3 I assume)

https://editor.p5js.org/greenStone83/sketches/IQMmFIkYv

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked sketch and reproduce the Ctrl+F behavior in sketch.js and new.js using the issue's steps. Start by tracing how the find bar handles a file switch, then verify that match counts and navigation are recalculated for the active file; done means each file reports and navigates through only its own matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.