diff --git a/src/components/ModalVault.svelte b/src/components/ModalVault.svelte index 285ebff..79b12c7 100644 --- a/src/components/ModalVault.svelte +++ b/src/components/ModalVault.svelte @@ -11,7 +11,7 @@ import ResultItemVault from './ResultItemVault.svelte' import { Query } from 'src/query' import { saveSearchHistory, searchHistory } from 'src/search-history' - import { SearchContextType, settings } from 'src/settings' + import { settings } from 'src/settings' export let modal: OmnisearchVaultModal let selectedIndex = 0 @@ -29,7 +29,6 @@ } onMount(async () => { - console.log('mount') await reindexNotes() searchQuery = searchHistory[historySearchIndex] eventBus.enable('vault') @@ -42,7 +41,6 @@ eventBus.on('vault', 'arrow-down', () => moveIndex(1)) eventBus.on('vault', 'prev-search-history', prevSearchHistory) eventBus.on('vault', 'next-search-history', nextSearchHistory) - eventBus.on('vault', 'toggle-context', toggleContext) }) onDestroy(() => { @@ -62,16 +60,6 @@ searchQuery = searchHistory[historySearchIndex] } - function toggleContext() { - settings.update(s => { - s.showContext = - s.showContext === SearchContextType.None - ? SearchContextType.Simple - : SearchContextType.None - return s - }) - } - async function updateResults() { query = new Query(searchQuery) resultNotes = (await getSuggestions(query)).sort( @@ -108,7 +96,6 @@ async function createNoteAndCloseModal(opt?: { newLeaf: boolean }): Promise { - console.log(opt) try { await createNote(searchQuery, opt?.newLeaf) } catch (e) { @@ -203,8 +190,8 @@ ↑↓to navigate
- alt ↑↓to cycle history + alt ↑↓ + to cycle history
to open @@ -236,8 +223,8 @@ to insert a link
- ctrl+hto toggle context + ctrl+h + to toggle context
escto close diff --git a/src/components/ResultItemVault.svelte b/src/components/ResultItemVault.svelte index ff1eb77..6e62ed9 100644 --- a/src/components/ResultItemVault.svelte +++ b/src/components/ResultItemVault.svelte @@ -1,6 +1,6 @@