Skip to content

Commit

Permalink
bugfix overwrote extract command with archive command
Browse files Browse the repository at this point in the history
  • Loading branch information
trashhalo committed May 31, 2022
1 parent 14e635d commit 069c8c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
Expand Down

0 comments on commit 069c8c4

Please sign in to comment.