alexyan

Results 19 comments of alexyan

Thank you for replying. I tried using the plugin `obsidian-no-dupe-leaves` that you made and the recommended `obsidian-mononote`, but I found that they address the issue of Obsidian's own link navigation...

/skip The issues pointed out are very helpful for refining my code, and I have made most of the suggested modifications. The specific changes implemented are detailed in the commits...

> Your manifest is missing the `authorUrl` field. > > [this.containerEl.style.display = "block";](https://github.com/yan42685/obsidian-clever-search/blob/415d46f5a6e8e82508f9550386297920e8786f02/src/main.ts#L65-L67), [this.containerEl.style.zIndex = "20";](https://github.com/yan42685/obsidian-clever-search/blob/415d46f5a6e8e82508f9550386297920e8786f02/src/ui/floating-window.ts#L58-L73), [closeButton.innerText = "✖";](https://github.com/yan42685/obsidian-clever-search/blob/415d46f5a6e8e82508f9550386297920e8786f02/src/ui/floating-window.ts#L76-L79) This should be in the CSS file. > > [static sleep(ms:...

> Downloading these files is not recommended, and it will not work on all platforms. There is a plugin for esbuild that you need to add to be able to...

Hi Joethei, Transitioning from downloading to bundling would require too many code changes for me, and it's quite difficult for me given my limited abilities. I don't have confidence that...

> I noticed that you have already submitted the PR. Can you package a finished plugin? I have cloned your repo but it was not successfully built The command `NODE_ENV=production...

精确匹配词语可以实现,后面的line语法似乎并非必要,出现多个不同匹配词的行会优先排在前面。 另外,近期空闲时间很少,只能以后再实现了

文件内搜索用的是fzf的算法,不过全库搜索是另一个算法(BM25),fzf处理大量文本时性能不够用。 双击确认已在0.2.10实现

我研究了下,实现精确匹配困难重重且效果不好。本插件所使用的BM25算法库Minisearch的作者未支持精确匹配功能: https://github.com/lucaong/minisearch/issues/216 ![image](https://github.com/user-attachments/assets/3c2ab62f-9d8c-49ce-ac9c-608d504abbd4) 所以只能在模糊匹配后,读取所有候选文件并进行全文匹配、过滤掉不包含精确匹配词的文件。如果候选文件大于20个,延迟就很明显了;对于大的库可能有几百上千个候选项,那得等十几秒出结果...此外改起来也有点麻烦,会产生不少相似代码。 对于你的场景来说,“输入/np 本次搜索取消前缀匹配”这样的功能够用吗?比如这样: ![image](https://github.com/user-attachments/assets/5c0846e6-fab2-4e96-b1b0-60c466af84e9) 未取消前缀匹配时搜索pr的结果确实不够好: ![image](https://github.com/user-attachments/assets/2a00ceca-2aa8-4936-9d25-a5ae0d6a3902)