Merge pull request #22 from Quorafind/feat/support-open-search-view

Feat/support open search view
This commit is contained in:
Boninall 2023-05-25 11:19:27 +08:00 committed by GitHub
commit 3aa4fbe036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 4 deletions

View file

@ -7,6 +7,8 @@ on:
env:
PLUGIN_NAME: obsidian-float-search
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest

View file

@ -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",

View file

@ -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": {

View file

@ -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;

View file

@ -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"
}