-### Favorites
-
-
-
-### Timestamp filter
-
-
-
### Sort filter

@@ -95,75 +87,70 @@ Please do not share your license key with anyone. Shared license keys will be de
## Features
-| Name | Categories | Documented |
-| --------------------------------------------------------------------------- | -------------------- | ---------- |
-| Move focus with left and right arrows | Accessibility | ✅ |
-| See an image placeholder on the grid card | Cover image | ✅ |
-| Load a cover image from the image property | Cover | ✅ |
-| Load images from the url property | Cover image | ✅ |
-| Load images from the first link in the frontmatter (wiki link or url) | Cover image | ✅ |
-| Load images from the first link the body (internal embed or external embed) | Cover image | ✅ |
-| Change the order of cover image sources | Cover image, Setting | ✅ |
-| Enable/disable cover image sources | Cover image, Setting | ✅ |
-| Cache social media images | Cover image | ✅ |
-| Filter files by favorite property | Favorites filter | ✅ |
-| Favorites support for non-markdown files | Favorites filter | ✅ |
-| Add to favorites button in context menu | Favorites filter | ✅ |
-| Remove from favorites button in context menu | Favorites filter | ✅ |
-| See a favorite icon in the grid card | Favorites filter | ✅ |
-| Reorder the filter group list | Filter group | ✅ |
-| Add a filter group | Filter group | ✅ |
-| Delete a filter group | Filter group | ✅ |
-| Set a filter group as sticky | Filter group | ✅ |
-| Unset a filter group as sticky | Filter group | ✅ |
-| Right click to edit a filter group item | Filter group | |
-| Add a filter rule | Filter rule | ✅ |
-| Delete a filter rule | Filter rule | ✅ |
-| Duplicate a filter rule | Filter rule | ✅ |
-| Match when property doesn't exist toggle | Filter rule | ✅ |
-| Filter files by folder | Filter rule | ✅ |
-| Filter by frontmatter property | Filter rule | ✅ |
-| Select a condition | Filter rule | ✅ |
-| Select a logical operator: `and`, `or` | Filter rule | ✅ |
-| Filter files by folder | Filter rule | ✅ |
-| Filter files by file content | Filter rule | ✅ |
-| Filter files by file name | Filter rule | ✅ |
-| Enable/disable a filter rule | Filter rule | ✅ |
-| Set the log level | Logging | ✅ |
-| Filter by search | Search filter | ✅ |
-| Set page size | Setting | ✅ |
-| Set property for modification date | Setting | ✅ |
-| Set property for creation date | Setting | ✅ |
-| Set a url property | Setting | ✅ |
-| Set a favorite property | Setting | ✅ |
-| Set custom text property | Setting | ✅ |
-| Toggle file icons | Setting | ✅ |
-| Change the filter groups wrap | Setting | ✅ |
-| Enable/disable loading the social media image | Setting | ✅ |
-| Change the collapse style for feed content | Setting | ✅ |
-| Remove H1 from feed content | Setting | ✅ |
-| Remove markdown from feed content | Setting | ✅ |
-| Enable/disable tags on a list item | Setting | ✅ |
-| Change the plugin configuration folder | Setting, Data | ✅ |
-| Clear the social media cache | Setting, Data | ✅ |
-| Change the feed content line clamp for small screens | Setting, Feed view | ✅ |
-| Change the feed content line clamp for medium screens | Setting, Feed view | ✅ |
-| Change the feed content line clamp for large screens | Setting, Feed view | ✅ |
-| Enter a license key | Setting, License | ✅ |
-| Sort by title: `asc`, `desc` | Sort order | ✅ |
-| Sort by modification date: `asc`, `desc` | Sort order | ✅ |
-| Randomly sort files | Sort order | ✅ |
-| Filter by creation date: `1 day`, `1 week`, `2 weeks` | Timestamp filter | ✅ |
-| Filter by modification date: `1 day`, `1 week`, `2 weeks` | Timestamp filter | ✅ |
-| See vault files in a grid view | View | ✅ |
-| See vault files in a list view | View | ✅ |
-| See vault files in a feed view | View | ✅ |
-| Change the view list order | View | |
-| Limit displayed files with pagination | View | |
-| Search for a tag when clicked | View | ✅ |
-| See a file preview when mouse hovers link and ctrl/cmd is pressed | View | |
-| Search for property when clicked | View | ✅ |
-| See files icons next to the file name | View | ✅ |
+| Name | Categories | Documented |
+| --------------------------------------------------------------------------- | ---------------------- | ---------- |
+| Move focus with left and right arrows | Accessibility | ✅ |
+| See an image placeholder on the grid card | Cover image | ✅ |
+| Load a cover image from the image property | Cover image | ✅ |
+| Load images from the url property | Cover image | ✅ |
+| Load images from the first link in the frontmatter (wiki link or url) | Cover image | ✅ |
+| Load images from the first link the body (internal embed or external embed) | Cover image | ✅ |
+| Cache social media images | Cover image | ✅ |
+| Change the order of cover image sources | Cover image, Setting | ✅ |
+| Enable/disable cover image sources | Cover image, Setting | ✅ |
+| Enable/disable loading the social media image | Cover image, Setting | ✅ |
+| Clear the social media cache | Cover image, Setting | ✅ |
+| Change the collapse style for feed content | Feed view, Setting | ✅ |
+| Remove H1 from feed content | Feed view, Setting | ✅ |
+| Remove markdown from feed content | Feed view, Setting | ✅ |
+| Change the feed content line clamp for small screens | Feed view, Setting | ✅ |
+| Change the feed content line clamp for medium screens | Feed view, Setting | ✅ |
+| Change the feed content line clamp for large screens | Feed view, Setting | ✅ |
+| See files icons next to the file name | File icons | ✅ |
+| Toggle file icons | File icons, Setting | ✅ |
+| Reorder the filter group list | Filter group | ✅ |
+| Add a filter group | Filter group | ✅ |
+| Delete a filter group | Filter group | ✅ |
+| Set a filter group as sticky | Filter group | ✅ |
+| Unset a filter group as sticky | Filter group | ✅ |
+| Right click to edit a filter group item | Filter group | |
+| Change the filter groups wrap | Filter groups, Setting | ✅ |
+| Add a filter rule | Filter rule | ✅ |
+| Delete a filter rule | Filter rule | ✅ |
+| Duplicate a filter rule | Filter rule | ✅ |
+| Match when property doesn't exist toggle | Filter rule | ✅ |
+| Filter files by folder | Filter rule | ✅ |
+| Filter by frontmatter property | Filter rule | ✅ |
+| Select a condition | Filter rule | ✅ |
+| Select a logical operator: `and`, `or` | Filter rule | ✅ |
+| Filter files by folder | Filter rule | ✅ |
+| Filter files by file content | Filter rule | ✅ |
+| Filter files by file name | Filter rule | ✅ |
+| Enable/disable a filter rule | Filter rule | ✅ |
+| Enter a license key | License, Setting | ✅ |
+| Enable/disable tags on a list item | List view, Setting | ✅ |
+| Set the log level | Logging | ✅ |
+| Filter by search | Search filter | ✅ |
+| Change the plugin configuration folder | Setting | ✅ |
+| Sort by title: `asc`, `desc` | Sort order | ✅ |
+| Sort by modification date: `asc`, `desc` | Sort order | ✅ |
+| Randomly sort files | Sort order | ✅ |
+| Set property for modification date | Setting | ✅ |
+| Set property for creation date | Setting | ✅ |
+| See vault files in a grid view | View | ✅ |
+| See vault files in a list view | View | ✅ |
+| See vault files in a feed view | View | ✅ |
+| See vault files in a table view | View | ✅ |
+| Change the view list order | View | |
+| Limit displayed files with pagination | View | |
+| Search for a tag when clicked | View | ✅ |
+| See a file preview when mouse hovers link and ctrl/cmd is pressed | View | |
+| Search for property when clicked | View | ✅ |
+| Load tags from the body of a markdown notes | View | ✅ |
+| Set page size | View, Setting | ✅ |
+| Set a url property | View, Setting | ✅ |
+| Set custom text property | View, Setting | ✅ |
+| Enable/disable load tags from a markdown note | View, Setting | ✅ |
## Network use
diff --git a/manifest.json b/manifest.json
index 673281e..9c76180 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"id": "vault-explorer",
"name": "Vault Explorer",
- "version": "1.41.1",
+ "version": "1.42.0",
"minAppVersion": "1.4.13",
"description": "Explore your vault in visual format",
"author": "DecafDev",
diff --git a/package.json b/package.json
index e730b76..cd5a4f1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "obsidian-vault-explorer",
- "version": "1.41.1",
+ "version": "1.42.0",
"description": "Explore your vault in visual format",
"main": "main.js",
"scripts": {
diff --git a/readme/favorites-filter.png b/readme/favorites-filter.png
deleted file mode 100644
index 451bddd..0000000
Binary files a/readme/favorites-filter.png and /dev/null differ
diff --git a/readme/timestamp-filter.png b/readme/timestamp-filter.png
deleted file mode 100644
index 6d6981d..0000000
Binary files a/readme/timestamp-filter.png and /dev/null differ
diff --git a/src/constants.ts b/src/constants.ts
index 218f30a..8075c94 100644
--- a/src/constants.ts
+++ b/src/constants.ts
@@ -7,10 +7,9 @@ export const HOVER_LINK_SOURCE_ID = "vault-explorer-preview";
export const DEFAULT_SETTINGS: VaultExplorerPluginSettings = {
properties: {
- favorite: "",
- url: "",
- image: "",
- coverImageFit: "",
+ url: "url",
+ image: "image",
+ coverImageFit: "image-fit",
createdDate: "",
modifiedDate: "",
custom1: "",
@@ -22,14 +21,6 @@ export const DEFAULT_SETTINGS: VaultExplorerPluginSettings = {
isEnabled: true,
value: "",
},
- favorites: {
- isEnabled: true,
- value: false,
- },
- timestamp: {
- isEnabled: true,
- value: "all",
- },
sort: {
isEnabled: true,
value: "file-name-asc",
@@ -94,8 +85,6 @@ export const DEFAULT_SETTINGS: VaultExplorerPluginSettings = {
enableClockUpdates: true,
enableFileIcons: false,
loadBodyTags: true,
- filterGroupsWidth: "300px",
- shouldWrapFilterGroups: false,
shouldCollapseFilters: false,
pageSize: 25,
viewOrder: [
diff --git a/src/event/types.ts b/src/event/types.ts
index 64a5ebe..5d92567 100644
--- a/src/event/types.ts
+++ b/src/event/types.ts
@@ -21,7 +21,6 @@ export enum PluginEvent {
VIEW_TOGGLE_SETTING_CHANGE = "view-toggle-setting-change",
FILE_ICONS_SETTING_CHANGE = "file-icons-setting-change",
LOAD_BODY_TAGS_SETTING_CHANGE = "load-body-tags-setting-change",
- WRAP_FILTER_GROUPS_SETTING_CHANGE = "wrap-filter-groups-setting-change",
LOAD_SOCIAL_MEDIA_IMAGE_SETTING_CHANGE = "load-social-media-image-setting-change",
SHOW_TAGS_SETTING_CHANGE = "show-tags-setting-change",
}
diff --git a/src/main.ts b/src/main.ts
index c047ce7..7afa086 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -20,6 +20,7 @@ import { isVersionLessThan } from "./utils";
import License from "./svelte/shared/services/license";
import { clearSocialMediaImageCache } from "./svelte/app/services/social-media-image-cache";
import store from "./svelte/shared/services/store";
+import "./styles.css";
export default class VaultExplorerPlugin extends Plugin {
settings: VaultExplorerPluginSettings = DEFAULT_SETTINGS;
@@ -63,6 +64,22 @@ export default class VaultExplorerPlugin extends Plugin {
}
private registerEvents() {
+ this.registerEvent(
+ this.app.workspace.on("active-leaf-change", () => {
+ const explorerLeaf =
+ this.app.workspace.getActiveViewOfType(VaultExplorerView);
+ const statusBar = document.querySelector(
+ ".status-bar"
+ ) as HTMLElement | null;
+ if (!statusBar) return;
+ if (explorerLeaf) {
+ statusBar.classList.add("vault-explorer-status-bar");
+ } else {
+ statusBar.classList.remove("vault-explorer-status-bar");
+ }
+ })
+ );
+
//Callback if the file is renamed or moved
//This callback is already debounced by Obsidian
this.registerEvent(
@@ -228,7 +245,7 @@ export default class VaultExplorerPlugin extends Plugin {
const leaf = leaves[0];
this.app.workspace.revealLeaf(leaf);
} else {
- this.app.workspace.getLeaf().setViewState({
+ this.app.workspace.getLeaf("tab").setViewState({
type: VAULT_EXPLORER_VIEW,
active: true,
});
diff --git a/src/migrations/index.ts b/src/migrations/index.ts
index 9dd64c3..463cdfa 100644
--- a/src/migrations/index.ts
+++ b/src/migrations/index.ts
@@ -31,6 +31,7 @@ import Migrate_1_38_0 from "./migrate_1_38_0";
import Migrate_1_39_0 from "./migrate_1_39_0";
import Migrate_1_40_0 from "./migrate_1_40_0";
import Migrate_1_41_0 from "./migrate_1_41_0";
+import Migrate_1_42_0 from "./migrate_1_42_0";
const migrations: TMigration[] = [
{
@@ -183,6 +184,11 @@ const migrations: TMigration[] = [
to: "1.41.0",
migrate: Migrate_1_41_0,
},
+ {
+ from: "1.41.1",
+ to: "1.42.0",
+ migrate: Migrate_1_42_0,
+ },
];
export const preformMigrations = (
diff --git a/src/migrations/migrate_1_42_0.ts b/src/migrations/migrate_1_42_0.ts
new file mode 100644
index 0000000..e27cfe3
--- /dev/null
+++ b/src/migrations/migrate_1_42_0.ts
@@ -0,0 +1,18 @@
+import { VaultExplorerPluginSettings } from "src/types";
+import MigrationInterface from "./migration_interface";
+import { VaultExplorerPluginSettings_1_41_1 } from "src/types/types-1.41.1";
+
+export default class Migrate_1_42_0 implements MigrationInterface {
+ migrate(data: Record