#206 - Added middle click support to open in a new tab
This commit is contained in:
@@ -160,7 +160,10 @@
|
|||||||
index="{i}"
|
index="{i}"
|
||||||
selected="{i === selectedIndex}"
|
selected="{i === selectedIndex}"
|
||||||
on:mousemove="{_e => (selectedIndex = i)}"
|
on:mousemove="{_e => (selectedIndex = i)}"
|
||||||
on:click="{(evt) => openSelection(evt.ctrlKey)}" />
|
on:click="{evt => openSelection(evt.ctrlKey)}"
|
||||||
|
on:auxclick="{evt => {
|
||||||
|
if (evt.button == 1) openSelection(true)
|
||||||
|
}}" />
|
||||||
{/each}
|
{/each}
|
||||||
{:else}
|
{:else}
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
|
|||||||
@@ -283,7 +283,10 @@
|
|||||||
selected="{i === selectedIndex}"
|
selected="{i === selectedIndex}"
|
||||||
note="{result}"
|
note="{result}"
|
||||||
on:mousemove="{_ => (selectedIndex = i)}"
|
on:mousemove="{_ => (selectedIndex = i)}"
|
||||||
on:click="{onClick}" />
|
on:click="{onClick}"
|
||||||
|
on:auxclick="{evt => {
|
||||||
|
if (evt.button == 1) openNoteInNewPane()
|
||||||
|
}}" />
|
||||||
{/each}
|
{/each}
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
{#if !resultNotes.length && searchQuery && !searching}
|
{#if !resultNotes.length && searchQuery && !searching}
|
||||||
|
|||||||
@@ -20,7 +20,8 @@
|
|||||||
id="{index.toString()}"
|
id="{index.toString()}"
|
||||||
selected="{selected}"
|
selected="{selected}"
|
||||||
on:mousemove
|
on:mousemove
|
||||||
on:click>
|
on:click
|
||||||
|
on:auxclick>
|
||||||
<div class="omnisearch-result__body">
|
<div class="omnisearch-result__body">
|
||||||
{@html cleanedContent.replace(reg, highlighterGroups)}
|
{@html cleanedContent.replace(reg, highlighterGroups)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
glyph="{glyph}"
|
glyph="{glyph}"
|
||||||
id="{note.path}"
|
id="{note.path}"
|
||||||
on:click
|
on:click
|
||||||
|
on:auxclick
|
||||||
on:mousemove
|
on:mousemove
|
||||||
selected="{selected}">
|
selected="{selected}">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user