import toastService from "./toast.js"; import appContext from "./app_context.js"; const helpText = ` Search tips - also see

`; async function refreshSearch() { // FIXME const activeNode = appContext.getMainNoteTree().getActiveNode(); activeNode.load(true); activeNode.setExpanded(true); toastService.showMessage("Saved search note refreshed."); } function init() { const hashValue = document.location.hash ? document.location.hash.substr(1) : ""; // strip initial # if (hashValue.startsWith("search=")) { showSearch(); doSearch(hashValue.substr(7)); } } export default { refreshSearch, init, getHelpText: () => helpText };