SoulEngineProject / Light.vn

The Light.vn VIsual Novel Engine
7 stars 1 forks source link

Feature Request: Text Search Across Multiple Open Scripts in the Editor #6

Open mellonayo opened 2 months ago

mellonayo commented 2 months ago

Summary: This issue is a feature request for implementing a text search functionality that can search across multiple open scripts within the editor.

Details: Currently, the editor allows searching within a single script. However, it would be highly beneficial to have the ability to search for text across multiple open scripts simultaneously. This feature would greatly enhance productivity and efficiency, especially when working on large projects with numerous scripts.

Expected Behavior: The ability to search across all open scripts in the editor.

Benefits: Easier navigation and management of large projects.

hsdk123 commented 2 months ago

Seems like a great suggestion - if we have multiple results across multiple scripts, how should the results be displayed?

mellonayo commented 2 months ago

Hmmm... the best scenario would be to display a list of search results with links to the specific locations within the scripts.

However, if that's not feasible, another option could be to add a checkbox to search for text across all scripts. When this option is enabled, instead of looping back to the start of the script when reaching the end during a search (up or down), it would switch to the next script. The advantage of this solution is that it wouldn't significantly alter the existing search interface. However, the downside is that while it helps, it might not be as convenient for navigating projects with many scripts.

I'm not sure which approach is better, or if there's another solution that's easier to implement. So far, these are the two mechanisms I've thought of...

hsdk123 commented 2 months ago

Sounds like some great ideas! Will give some thought.