};
                clearTimeout(timeout);
                timeout = setTimeout(later, wait);
            };
        }

        // Search and filter commands
        function searchCommands() {
            const searchTerm = document.getElementById('searchInput').value.toLowerCase();
            const selectedCategory = document.getElementById('categoryFilter').value;

            filteredCommands = allCommands.filter(command => {
                const matchesSearch = !searchTerm || 
                    comm