and.command.toLowerCase().includes(searchTerm) ||
                    command.description.toLowerCase().includes(searchTerm) ||
                    (command.parameters || []).some(param => 
                        param.name.toLowerCase().includes(searchTerm)
                    );

                const matchesCategory = !selectedCategory || command.category === selectedCategory;

                return matchesSearch && matchesCategory;
            });

            renderCommands();
            updateStats