mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
empty page on new tab nw offers list of available workspaces
This commit is contained in:
@@ -219,6 +219,19 @@ function quickSearch(req) {
|
||||
.map(sr => sr.noteId);
|
||||
}
|
||||
|
||||
function search(req) {
|
||||
const {searchString} = req.params;
|
||||
|
||||
const searchContext = new SearchContext({
|
||||
fastSearch: false,
|
||||
includeArchivedNotes: true,
|
||||
fuzzyAttributeSearch: false
|
||||
});
|
||||
|
||||
return searchService.findNotesWithQuery(searchString, searchContext)
|
||||
.map(sr => sr.noteId);
|
||||
}
|
||||
|
||||
function getRelatedNotes(req) {
|
||||
const attr = req.body;
|
||||
|
||||
@@ -302,5 +315,6 @@ module.exports = {
|
||||
searchFromNote,
|
||||
searchAndExecute,
|
||||
getRelatedNotes,
|
||||
quickSearch
|
||||
quickSearch,
|
||||
search
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user