Skip to content

Commit

Permalink
remove ribbon icon, add Clipper: Open view command, tick beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
jgchristopher committed Jul 21, 2024
1 parent 99bb94b commit dd00fdb
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 36 deletions.
4 changes: 2 additions & 2 deletions manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-clipper",
"name": "Obsidian Clipper",
"version": "1.0.0-beta.4",
"name": "Clipper",
"version": "1.0.0-beta.6",
"minAppVersion": "0.15.0",
"description": "This plugin helps you capture highlights from the web.",
"author": "John Christopher",
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-clipper",
"name": "Obsidian Clipper",
"version": "1.0.0-beta.5",
"name": "Clipper",
"version": "1.0.0-beta.6",
"minAppVersion": "0.15.0",
"description": "This plugin helps you capture highlights from the web.",
"author": "John Christopher",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-clipper",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"description": "This plugin helps you capture highlights from the web.",
"main": "main.js",
"scripts": {
Expand Down
20 changes: 17 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,20 @@ export default class ObsidianClipperPlugin extends Plugin {
},
});

// Is the Clipper View Open?
this.addCommand({
id: "show-clipper-view",
name: "Open view",
checkCallback: (checking: boolean) => {
if (checking) {
return (
this.app.workspace.getLeavesOfType(VIEW_TYPE).length === 0
);
}
this.activateView();
},
});

this.registerObsidianProtocolHandler('obsidian-clipper', async (e) => {
const parameters = e as unknown as Parameters;

Expand Down Expand Up @@ -197,9 +211,9 @@ export default class ObsidianClipperPlugin extends Plugin {
(leaf) => new BookmarkletLinksView(leaf)
);

this.addRibbonIcon('paperclip', 'Activate view', () => {
this.activateView();
});
// this.addRibbonIcon('paperclip', 'Clipper', () => {
// this.activateView();
// });
}

async activateView() {
Expand Down
29 changes: 1 addition & 28 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
{
"0.0.1": "0.15.0",
"0.0.2": "0.15.0",
"0.0.3": "0.15.0",
"0.0.4": "0.15.0",
"0.0.5": "0.15.0",
"0.0.6": "0.15.0",
"0.0.7": "0.15.0",
"0.1.0": "0.15.0",
"0.1.1": "0.15.0",
"0.1.2": "0.15.0",
"0.1.3": "0.15.0",
"0.1.4": "0.15.0",
"0.1.5": "0.15.0",
"0.1.6": "0.15.0",
"0.2.0": "0.15.0",
"0.2.1": "0.15.0",
"0.2.2": "0.15.0",
"0.2.3": "0.15.0",
"0.2.4": "0.15.0",
"0.2.5": "0.15.0",
"0.2.6": "0.15.0",
"0.2.7": "0.15.0",
"0.2.8": "0.15.0",
"1.0.0-beta.1": "0.15.0",
"1.0.0-beta.2": "0.15.0",
"1.0.0-beta.3": "0.15.0",
"1.0.0-beta.4": "0.15.0",
"1.0.0-beta.5": "0.15.0"
"1.0.0-beta.6": "0.15.0"
}

0 comments on commit dd00fdb

Please sign in to comment.