Class: SearchManager

SearchManager()

Search Manager - Handles search functionality

Constructor

new SearchManager()

Source:

Methods

clearSearchHighlights()

Clear search highlights

Source:

clearSearchResults()

Clear search results

Source:

closeGoToLineDialog()

Close go to line dialog

Source:

closeSearchWidget()

Close search widget

Source:

displaySearchResults(results, searchTerm)

Display search results in sidebar

Parameters:
Name Type Description
results Array

Search results

searchTerm string

Search term

Source:

focusOnCurrentMatch()

Focus on current match

Source:

highlightAllMatches()

Highlight all matches

Source:

(async) openSearchResult(filePath, lineNumber)

Open search result (to be implemented by parent controller)

Parameters:
Name Type Description
filePath string

File path

lineNumber number

Line number

Source:

performGoToLine()

Perform go to line

Source:

performLiveSearch(searchText)

Perform live search in current document

Parameters:
Name Type Description
searchText string

Text to search for

Source:

(async) performWorkspaceSearch(searchTerm)

Perform workspace search

Parameters:
Name Type Description
searchTerm string

Term to search for

Source:

searchNext()

Search next match

Source:

searchPrev()

Search previous match

Source:

setWorkspacePath(workspacePath)

Set current workspace path

Parameters:
Name Type Description
workspacePath string

Workspace path

Source:

setupGoToLineDialog()

Setup go to line dialog

Source:

setupSearchWidget()

Setup search widget functionality

Source:

setupSidebarSearch()

Setup sidebar search

Source:

showFindDialog()

Show find dialog

Source:

showGoToLineDialog()

Show go to line dialog

Source:

updateSearchResults()

Update search results display

Source: