Skip to content

Commit

Permalink
update plugin id and command ids
Browse files Browse the repository at this point in the history
  • Loading branch information
zuluwi committed Mar 5, 2024
1 parent c54c282 commit ef2f2d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "obsidian-vlc-bridge",
"id": "vlc-bridge",
"name": "VLC Bridge",
"version": "0.0.5",
"minAppVersion": "0.15.0",
Expand Down
18 changes: 9 additions & 9 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class VLCBridgePlugin extends Plugin {
});

this.addCommand({
id: "vlc-go-next-frame",
id: "go-next-frame",
name: t("Next frame"),
repeatable: true,
callback: async () => {
Expand All @@ -100,7 +100,7 @@ export default class VLCBridgePlugin extends Plugin {
});

this.addCommand({
id: "vlc-go-previous-frame",
id: "go-previous-frame",
name: t("Previous frame"),
repeatable: true,
callback: async () => {
Expand All @@ -109,7 +109,7 @@ export default class VLCBridgePlugin extends Plugin {
});

this.addCommand({
id: "vlc-normal-seek-forward",
id: "normal-seek-forward",
name: t("Seek forward"),
repeatable: true,
callback: async () => {
Expand All @@ -118,15 +118,15 @@ export default class VLCBridgePlugin extends Plugin {
});

this.addCommand({
id: "vlc-normal-seek-backward",
id: "normal-seek-backward",
name: t("Seek backward"),
repeatable: true,
callback: async () => {
this.sendVlcRequest(`seek&val=-${-this.settings.normalSeek}`);
},
});
this.addCommand({
id: "vlc-large-seek-forward",
id: "large-seek-forward",
name: t("Long seek forward"),
repeatable: true,
callback: async () => {
Expand All @@ -135,7 +135,7 @@ export default class VLCBridgePlugin extends Plugin {
});

this.addCommand({
id: "vlc-large-seek-backward",
id: "large-seek-backward",
name: t("Long seek backward"),
repeatable: true,
callback: async () => {
Expand All @@ -144,23 +144,23 @@ export default class VLCBridgePlugin extends Plugin {
});

this.addCommand({
id: "vlc-toggle-fullscreen",
id: "toggle-fullscreen",
name: t("Toggle fullscreen"),
callback: async () => {
this.sendVlcRequest(`fullscreen`);
},
});

this.addCommand({
id: "vlc-toggle-play",
id: "toggle-play",
name: t("Toggle play/pause"),
callback: async () => {
this.sendVlcRequest(`pl_pause`);
},
});

this.addCommand({
id: "vlc-paste-snapshot",
id: "paste-snapshot",
name: t("Take and paste snapshot from video"),
editorCallback: async (editor: Editor, view: MarkdownView) => {
if (currentConfig.snapshotFolder && !(await this.app.vault.adapter.exists(currentConfig.snapshotFolder))) {
Expand Down

0 comments on commit ef2f2d4

Please sign in to comment.