vizhub-core / vzcode

Mob Programming Code Editor
MIT License
55 stars 13 forks source link

Search Feature #754

Open jeffrey-asm opened 2 days ago

jeffrey-asm commented 2 days ago

The following implements a trivial search feature into the VZCode codebase. Various icons have been added based on the supported Code Mirror file extensions, and any unsupported file extensions that appear in any search will pivot to a default file icon. The search feature required the entire sidebar UI to be updated as shown below.

After a successful non-empty search, users can toggle the visibility of a given search file containing the line matches to be entirely visible, folded, or removed from the view. When clicking any line for the given matched file, the file becomes active, and the exact pattern is highlighted within the code editor.

There are still plenty of opportunities to improve the current implementation, such as adding visuals to toggle matching exact cases, support for regular expressions, etc.

image