Methods
clearSearchHighlights()
Clear search highlights
clearSearchResults()
Clear search results
closeGoToLineDialog()
Close go to line dialog
closeSearchWidget()
Close search widget
displaySearchResults(results, searchTerm)
Display search results in sidebar
Parameters:
| Name | Type | Description |
|---|---|---|
results |
Array | Search results |
searchTerm |
string | Search term |
focusOnCurrentMatch()
Focus on current match
highlightAllMatches()
Highlight all matches
(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 |
performGoToLine()
Perform go to line
performLiveSearch(searchText)
Perform live search in current document
Parameters:
| Name | Type | Description |
|---|---|---|
searchText |
string | Text to search for |
(async) performWorkspaceSearch(searchTerm)
Perform workspace search
Parameters:
| Name | Type | Description |
|---|---|---|
searchTerm |
string | Term to search for |
searchNext()
Search next match
searchPrev()
Search previous match
setWorkspacePath(workspacePath)
Set current workspace path
Parameters:
| Name | Type | Description |
|---|---|---|
workspacePath |
string | Workspace path |
setupGoToLineDialog()
Setup go to line dialog
setupSearchWidget()
Setup search widget functionality
setupSidebarSearch()
Setup sidebar search
showFindDialog()
Show find dialog
showGoToLineDialog()
Show go to line dialog
updateSearchResults()
Update search results display