From 069c8c468594044ddc74c8d21f01bf9aefbf8194 Mon Sep 17 00:00:00 2001 From: Stephen Solka Date: Tue, 31 May 2022 09:50:52 -0400 Subject: [PATCH] bugfix overwrote extract command with archive command --- manifest.json | 2 +- src/archive.rs | 2 +- src/extract.rs | 2 +- src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 5a9134a..973b93c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "extract-url", "name": "Extract url content", - "version": "0.12.0", + "version": "0.12.1", "description": "Extract url converting content into markdown", "author": "Stephen Solka", "authorUrl": "https://github.com/trashhalo", diff --git a/src/archive.rs b/src/archive.rs index 204a879..7f4cc9d 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -85,7 +85,7 @@ enum ArchiveError { pub fn command_archive() -> ArchiveCommand { ArchiveCommand { - id: JsString::from("extract-url"), + id: JsString::from("archive-url"), name: JsString::from("Archive"), } } diff --git a/src/extract.rs b/src/extract.rs index cc127f0..5e77054 100644 --- a/src/extract.rs +++ b/src/extract.rs @@ -69,7 +69,7 @@ pub fn command_extract_url() -> ExtractCommand { } } -pub fn command_extract_url_from_url() -> ExtractCommand { +pub fn command_extract_url_title_only() -> ExtractCommand { ExtractCommand { id: JsString::from("extract-title-from-url"), name: JsString::from("Title Only"), diff --git a/src/lib.rs b/src/lib.rs index 05700d8..31a413f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] pub async fn onload(plugin: obsidian::Plugin) { plugin.addCommand(JsValue::from(extract::command_extract_url())); - plugin.addCommand(JsValue::from(extract::command_extract_url_from_url())); + plugin.addCommand(JsValue::from(extract::command_extract_url_title_only())); plugin.addCommand(JsValue::from(extract::command_import_url())); plugin.addCommand(JsValue::from(archive::command_archive())); }