 const query = document.getElementById('saveSearchInput').value;
            if (!editor || !query) return;
            
            let found = false;
            const cursor = editor.getSearchCursor(query);
            
            // Try to find from current position
            while (cursor.findNext()) {
                if (cursor.from().line > editor.getCursor().line || 
                    (cursor.from().line === editor.getCursor().line && 
                     cursor.from().ch > editor.getCursor().