以contents.md的第200行,举例
let file = app.metadataCache.getFirstLinkpathDest('contents','')
let leaf = app.workspace.getLeaf(false)
if(file){
leaf.openFile(file,{ eState: { line: 200 } })
}
以contents.md的第200行,举例
let file = app.metadataCache.getFirstLinkpathDest('contents','')
let leaf = app.workspace.getLeaf(false)
if(file){
leaf.openFile(file,{ eState: { line: 200 } })
}