Merge pull request #32 from Quorafind/fix/issues

fix: search current path would not work correctly
This commit is contained in:
Boninall 2023-09-11 20:42:40 +08:00 committed by GitHub
commit 878fb1f219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 825 additions and 674 deletions

View file

@ -1,7 +1,7 @@
{
"id": "float-search",
"name": "Floating Search",
"version": "3.3.4",
"version": "3.4.0",
"minAppVersion": "0.15.0",
"description": "You can use search view in modal/leaf/popout window now.",
"author": "Boninall",

View file

@ -1,6 +1,6 @@
{
"name": "float-search",
"version": "3.3.4",
"version": "3.4.0",
"description": "You can use search view in modal/leaf/popout window now.",
"main": "main.js",
"scripts": {

File diff suppressed because it is too large Load diff

View file

@ -174,6 +174,10 @@ declare module "obsidian" {
};
}
interface WorkspaceItem {
side?: "left" | "right";
}
interface View {
iconEl: HTMLElement;
file: TFile;
@ -250,6 +254,10 @@ declare module "obsidian" {
type?: string;
}
interface WorkspaceContainer {
type: "window" | "split" | "tab";
}
interface HoverPopover {
parent: EmbeddedViewParent | null;
targetEl: HTMLElement;

View file

@ -7,28 +7,28 @@ If your plugin does not need CSS, delete this file.
*/
.float-search-modal {
width: 600px;
width: 600px;
padding-bottom: 0;
padding-bottom: 0;
}
.float-search-modal.float-search-width {
width: 1200px;
width: 1200px;
}
.float-search-modal-search-ctn, .float-search-modal-file-ctn {
height: 100%;
width: 100%;
height: 100%;
width: 100%;
}
.float-search-modal-file-ctn .view-header {
display: none;
display: none;
}
.float-search-modal-content {
height: 800px;
display: flex;
align-items: center;
height: 800px;
display: flex;
align-items: center;
flex-direction: row;
}
@ -37,15 +37,15 @@ If your plugin does not need CSS, delete this file.
}
.float-search-modal .modal-close-button {
z-index: 40;
z-index: 40;
}
.fs-content .workspace-split.mod-vertical {
height: 100%;
height: 100%;
}
.fs-content {
height: 100%;
height: 100%;
}
.fs-content .cm-scroller {
@ -53,15 +53,15 @@ If your plugin does not need CSS, delete this file.
}
.fs-block {
height: 100% !important;
height: 100% !important;
}
.fs-block .workspace-leaf-resize-handle {
display: none;
display: none;
}
.modal-container.float-search-modal-container.mod-dim {
z-index: 30;
z-index: 30;
}
@ -79,7 +79,7 @@ If your plugin does not need CSS, delete this file.
}
.float-search-modal-instructions .float-search-modal-instructions-key {
font-weight: var(--font-extrabold);
font-weight: var(--font-extrabold);
margin-right: var(--size-2-2);
}
@ -92,5 +92,22 @@ If your plugin does not need CSS, delete this file.
}
.float-search-modal-file-ctn:has(.mod-active) .cm-scroller {
background-color: var(--background-primary);
}
background-color: var(--background-primary);
}
.float-search-view-switch {
display: flex;
align-items: center;
}
.float-search-view-menu .menu-item-icon {
color: var(--text-muted);
}
.float-search-view-menu svg {
fill: none;
stroke: currentcolor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}

View file

@ -17,5 +17,6 @@
"3.3.1": "0.15.0",
"3.3.2": "0.15.0",
"3.3.3": "0.15.0",
"3.3.4": "0.15.0"
"3.3.4": "0.15.0",
"3.4.0": "0.15.0"
}