From 38bf9d858bf6b3fb47a8cfee3c66f2a31e7671d5 Mon Sep 17 00:00:00 2001 From: Quorafind Date: Thu, 25 May 2023 11:17:34 +0800 Subject: [PATCH 1/3] feat: support click to collapse --- src/floatSearchIndex.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/floatSearchIndex.ts b/src/floatSearchIndex.ts index 7ab178a..0a14b03 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -1,10 +1,11 @@ import { + apiVersion, App, Editor, MarkdownView, Menu, Modal, Notice, OpenViewState, - Plugin, SearchView, + Plugin, requireApiVersion, SearchView, TAbstractFile, TFile, Workspace, @@ -588,6 +589,9 @@ class FloatSearchModal extends Modal { if(e.altKey || !this.fileLeaf) { while (targetElement) { + if (targetElement.classList.contains('tree-item-icon')) { + break; + } if (targetElement.classList.contains('tree-item')) { this.close(); break; From adf9ccc87a029d737483467c9208819e6eb5e1c1 Mon Sep 17 00:00:00 2001 From: Quorafind Date: Thu, 25 May 2023 11:18:06 +0800 Subject: [PATCH 2/3] chore: bump version --- manifest.json | 2 +- package.json | 2 +- versions.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 01a2b11..1ed36e7 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "float-search", "name": "Floating Search", - "version": "3.3.0", + "version": "3.3.1", "minAppVersion": "0.15.0", "description": "You can use search view in modal now.", "author": "Boninall", diff --git a/package.json b/package.json index 48372e4..a5f4bd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "float-search", - "version": "3.3.0", + "version": "3.3.1", "description": "You can use search view in modal now.", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 120f6c5..d819a72 100644 --- a/versions.json +++ b/versions.json @@ -13,5 +13,6 @@ "3.1.1": "0.15.0", "3.2.0": "0.15.0", "3.1.2": "0.15.0", - "3.3.0": "0.15.0" + "3.3.0": "0.15.0", + "3.3.1": "0.15.0" } \ No newline at end of file From 559af426f996dbe83ceab2a6d832b880d00c1db1 Mon Sep 17 00:00:00 2001 From: Quorafind Date: Thu, 25 May 2023 11:18:38 +0800 Subject: [PATCH 3/3] doc: update workflow --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a3a67c..523d81d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,8 @@ on: env: PLUGIN_NAME: obsidian-float-search +permissions: write-all + jobs: build: runs-on: ubuntu-latest