script api search ignores hoisting by default

This commit is contained in:
zadam
2021-04-06 21:56:46 +02:00
parent 2d0cb5b66e
commit c43b20ec2b
8 changed files with 28 additions and 22 deletions

View File

@@ -74,12 +74,8 @@ function goToLink(e) {
const $link = $(e.target).closest("a,.block-link");
console.log("zzzzz", $link);
const notePath = getNotePathFromLink($link);
console.log()
if (notePath) {
if ((e.which === 1 && e.ctrlKey) || e.which === 2) {
appContext.tabManager.openTabWithNoteWithHoisting(notePath);
@@ -96,8 +92,6 @@ function goToLink(e) {
) {
const address = $link.attr('href');
console.log("address", address);
if (address) {
if (address.toLowerCase().startsWith('http')) {
window.open(address, '_blank');