FileSuggestManager
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:10
Properties
app
app:
App
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:14
Reference to the app
fileSuggestions
fileSuggestions:
null
|object
[]
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:18
Selection of files and their paths that can be matched to
global
global:
boolean
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:22
Whether search should be vault-wide rather than scoped to current file
mode
mode:
string
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:26
Type of suggestions that should be provided
runnable
runnable:
null
|Runnable
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:30
Executor of the search
Methods
getBlockSuggestions()
getBlockSuggestions(
runner
,file
,text
):Promise
<SearchResult
[]>
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:35
Get suggestions for block query
Parameters
runner
file
text
string
Returns
getDisplaySuggestions()
getDisplaySuggestions(
runner
,linkpath
,subpath
,alias
):Promise
<SearchResult
[]>
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:39
Get suggestions for display alias query
Parameters
runner
linkpath
string
subpath
string
alias
string
Returns
getFileSuggestions()
getFileSuggestions(
runner
,text
):Promise
<SearchResult
[]>
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:43
Get suggestions for file query
Parameters
runner
text
string
Returns
getGlobalBlockSuggestions()
getGlobalBlockSuggestions(
runner
,text
):Promise
<SearchResult
[]>
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:47
Get suggestions for global block query
Parameters
runner
text
string
Returns
getGlobalHeadingSuggestions()
getGlobalHeadingSuggestions(
runner
,text
):Promise
<SearchResult
[]>
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:51
Get suggestions for global heading query
Parameters
runner
text
string
Returns
getHeadingSuggestions()
getHeadingSuggestions(
runner
,file
,text
):Promise
<SearchResult
[]>
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:55
Get suggestions for file heading query
Parameters
runner
file
text
string
Returns
getSourcePath()
getSourcePath():
null
|string
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:61
Determine the source path of current context
Returns
null
| string
getSuggestionsAsync()
getSuggestionsAsync(
runner
,text
):Promise
<SearchResult
[]>
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:67
Get suggestions for current input text
Parameters
runner
text
string
Returns
matchBlock()
matchBlock(
path
,file
,block
,sourcePath
,content
,text_parts
):null
|SearchResult
Defined in: src/obsidian/internals/FileSuggestManager.d.ts:71
Match search fragments to a block
Parameters
path
string
file
block
sourcePath
null
| string
content
string
text_parts
string
[]
Returns
null
| SearchResult