pendChild(option);
                    });
                }
            } catch (error) {
                console.error('Error loading categories:', error);
            }
        }

        // Setup event listeners
        function setupEventListeners() {
            document.getElementById('searchInput').addEventListener('input', debounce(searchCommands, 300));
            document.getElementById('categoryFilter').addEventListener('change', searchCommands);
            
            // Enter key for search