Skip to content

Commit

Permalink
update ribbon icon
Browse files Browse the repository at this point in the history
  • Loading branch information
zuluwi committed Mar 7, 2024
1 parent 89247ce commit 1e917b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/language/locale/tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
"Long seek amount (in seconds)": "Uzun ileri/geri sarma Miktarı (saniye cinsinden)",
"Set the seek amount for 'Long seek forward/backward' commands": "'Uzun ileri/geri sar' komutları için atmala miktarını seçiniz",
//
"Syncplay path": "Syncplay yolu",
"Syncplay path": "Syncplay dosya yolu",
"Select 'Syncplay.exe' from the folder where Syncplay is installed": "Syncplay'in kurulu olduğu klasörden Syncplay.exe'yi seçiniz",
"Select Syncplay.exe": "Syncplay.exe'yi seç",
"Start Syncplay with plugin arguments": "Plugin argümanlarıyla Syncplay'i çalıştır",
Expand Down
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ declare global {

export default class VLCBridgePlugin extends Plugin {
settings: VBPluginSettings;
openVideoIcon: HTMLElement;
openVideo: (params: ObsidianProtocolData | { mediaPath: string; subPath?: string; subDelay?: string; timestamp?: string }) => void;
addSubtitle: (filePath: string, subDelay?: string) => void;
sendVlcRequest: (command: string) => Promise<RequestUrlResponse | undefined>;
Expand Down Expand Up @@ -42,6 +41,10 @@ export default class VLCBridgePlugin extends Plugin {
this.launchSyncplay();
});

this.addRibbonIcon("lucide-traffic-cone", t("Select a file to open with VLC Player"), (evt: MouseEvent) => {
this.fileOpen();
});

this.addCommand({
id: "paste-video-path-with-timestamp",
name: t("Paste timestamped link of current video"),
Expand Down

0 comments on commit 1e917b6

Please sign in to comment.