pfSense GUI search alpha version for testing
-
pfsense-quicksearch-0.4.4.pkg.zip or https://github.com/woffko/pfSense-quick-search/releases/tag/v0.4.4-alpha
Unpack, copy to /root
To install usepkg add /root/pfsense-quicksearch-0.4.4.pkg
To remove
pkg delete pfsense-quicksearch
Powered by AI, so expect that anything could go wrong.
-
@w0w I do love that feature on the OtherSense and installed your package on pfSense CE 2.8.1 and it works great. Not sure if it will eat my children because of AI :) but hey sacrifices are necessary
.
Is it possible that it starts showing results without first having to press 'Enter', like after one enters at least 3 characters or so?
-
@patient0 said in pfSense GUI search alpha version for testing:
Is it possible that it starts showing results without first having to press 'Enter',
Yes, itās possible, but it will put extra load on the firewall hardware in this implementation. I need to think about how to make it work properly.
-
@w0w said in pfSense GUI search alpha version for testing:
Yes, itās possible, but it will put extra load on the firewall hardware in this implementation. I need to think about how to make it work properly.
No worries and no hurry.
Another question: Does it index automatically? E.g. if I install a pfSense packages after I installed quicksearch will it index the GUI elements?
Edit: I can answer it: It doesn't see new packages. A reboot was necessary. That could be improved :)
-
A few comments to add what I wrote before:
- If a package is added (Wireguard in my case) it won't find it after the installation. Reboot was necessary
- The same goes for removing a package. Again, Wireguard in my case. After removing it a reboot was necessary for it not to be found. Neither restart the GUI nor restart PHP-FM in the console menu helped.
- After pressing 'Enter' to list the items matching the text, it would be helpful if one could iterate through the items with e.g. the up/down keys. Right now that does not work for me.
Shall I open tickets for it on the git repo?
-
The search works within the www directory and recursively through its subfolders. It looks for PHP files and filters their contents. An index is maintained, but the previous result is cached. You can run
https://YourFWIP/diag_quicksearch.php?rebuild=1
to test whether rebuilding the index helps or not.
@patient0 said in pfSense GUI search alpha version for testing:
Shall I open tickets for it on the git repo?
Not really, I think I'll look at it as soon as possible.
-
@w0w said in pfSense GUI search alpha version for testing:
https://YourFWIP/diag_quicksearch.php?rebuild=1
to test whether rebuilding the index helps or not.That does work, yes, perfect.
-
https://github.com/woffko/pfSense-quick-search/releases/tag/v0.4.5
New release out
-
Auto-search: runs 3s after typing stops, with min 3 chars (no manual āFindā button).
-
Icon button: loupe doubles as spinner while typing/searching and as a āRebuild & repeatā trigger after results.
-
Rebuild flow fixed: performs ?rebuild=1 first, then re-runs the last query, covering backends that donāt return results on rebuild.
-
Request hygiene: cancels prior requests via AbortController and ignores stale responses with a sequence guard.
-
UX polish: Enter key triggers immediate search; results dropdown closes on outside click/ESC; error state shown inline.
-
Sizing: icon button height is hard-synced to the input for perfect alignment (optional square width).
-
Caching: adds a cache-busting timestamp and uses cache: 'no-store'.
-
-
@w0w searching without pressing 'Enter' is working, although slow.
It now takes a few seconds while before with pressing 'Enter' produced the results in a second or less.
-
@patient0
You can press Enter to search or wait a few seconds. Alternatively, edit /usr/local/www/js/quicksearch_inline.js to adjust the idle delay (in milliseconds). 3000 ms (3 s) is quite longātry 100ā500 ms.const IDLE_MS = 3000;