Implement QuickSearch bar with double shift activation for modules, settings, and commands #139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the QuickSearch feature that was outlined in the TODO comment in
MenuBar.kt. The feature provides a powerful search interface that opens on double shift press, allowing users to quickly find and interact with modules, settings, and commands using fuzzy matching.Key Features
Double Shift Activation
Comprehensive Search
The search covers three main categories:
Modules: Search by name with intelligent fuzzy matching using Levenshtein distance
Commands: Search by name and aliases with command prefix display
Settings: Search across all configuration settings by name or parent module
User Experience Enhancements
Technical Implementation
StringUtils.findSimilarStrings()Levenshtein distance implementationLoadablesystem for automatic initializationKeyboardEvent.PresshandlingIntegration Points
ClickGuiLayoutquickSearchvariable fromMenuBar.ktFiles Added/Modified
QuickSearch.kt- Main search component with popup modal interfaceQuickSearchInputHandler.kt- Double shift detection and keyboard event handlingClickGuiLayout.kt- Integration with main GUI renderingMenuBar.kt- Added functional menu item and cleaned up TODOThis implementation provides exactly what was requested in the original TODO comment: a search interface for modules, commands, and settings using Levenshtein distance matching, accessible via a convenient keyboard shortcut.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
jitpack.io/usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx4096M -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.14.1-bin/baw1sv0jfoi8rxs14qo3h49cs/gradle-8.14.1/lib/gradle-daemon-main-8.14.1.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.14.1-bin/baw1sv0jfoi8rxs14qo3h49cs/gradle-8.14.1/lib/agents/gradle-instrumentation-agent-8.14.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.14.1(dns block)maven.fabricmc.netIf you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.