github usamamuneerchaudhary/filament-command-palette 2.4
v2.4

44 minutes ago

Added

  • Multi-word search in any order: user create finds "Create User", and words may match different fields (orders jane finds Jane in Orders).
  • Accent-insensitive matching: resume finds "Résumé". Highlighting still marks the original characters. Record search still sends the term with its accents to the database.
  • CommandItem::requiresConfirmation() puts a confirmation modal in front of a plain action() closure. The closure runs after the user confirms, and only after the command is re-authorized.
  • CommandItem::copy($text) copies text to the clipboard and shows a Filament notification.
  • Copy link and Copy ID when you Tab into a record. Turn them off with built_in_commands.copy.
  • $dispatch('open-command-palette', { query: '#' }) opens the palette with a query already typed.
  • ⇧⌫ on an empty search removes the highlighted recent. A built-in "Clear recent commands" command (built_in_commands.clear_recents) appears while recents are on.
  • A notification when a command fails on the server, for example after the user loses permission.

Fixed

  • With spa(), the chord and ⌘P keyboard listeners were never removed on wire:navigate, so they piled up and chords could fire more than once. The theme listener was also re-added on every visit.
  • Clicking an event command, such as a theme switch, did nothing: the click sent it to the server instead of firing the browser event.
  • Clicking a non-link command recorded it in recents twice.
  • Filament-action and mountAction commands lost the search term because the palette closed before the request was sent. Commands from custom SearchesCommands providers could then not be found again.

Changed

  • The search helpers live in partials/search-functions.blade.php. If you published the views, re-publish script.blade.php to pick up the fixes above.

Don't miss a new filament-command-palette release

NewReleases is sending notifications on new releases.