mirror of
https://github.com/quorafind/Obsidian-Float-Search.git
synced 2026-07-22 07:30:25 +00:00
Merge pull request #22 from Quorafind/feat/support-open-search-view
Feat/support open search view
This commit is contained in:
commit
3aa4fbe036
5 changed files with 11 additions and 4 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -7,6 +7,8 @@ on:
|
|||
env:
|
||||
PLUGIN_NAME: obsidian-float-search
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
Loading…
Reference in a new issue