8000 GitHub - thoka/videotool · GitHub
[go: up one dir, main page]

Skip to content
thokaPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

media-timecodes

Record the exact playback position of the latest audio or video embed directly into your note. Makes timestamps clickable to seek and start playing.

Features

  • Command palette entry with default Ctrl+Shift+T (or Ctrl+Alt+M) hotkeys.
  • Finds the most recent media embed above the cursor in live preview or reading mode, with clickable timestamps in both.
  • Inserts the current playback time using hh:mm:ss / mm:ss formatting, or start-end ranges.
  • Clicking a timestamp seeks instantly; double-clicking plays and auto-stops at the range end (if present).
  • Transport controls: Ctrl+Alt+, / Ctrl+Alt+. seek ±0.25 seconds (hold Shift for ±2.5 seconds), Ctrl+Alt+Space toggles playback without pop-up messages.
  • Optional debug info is written to the note and /tmp/obsidian-media-timestamp.log when matching fails (turn on with Enable media timecodes debug logging, turn off with Disable media timecodes debug logging commands).

Usage

  1. Place the cursor where you want the timestamp.
  2. Trigger Insert timestamp from last media above cursor (use Ctrl+Shift+T or Ctrl+Alt+M).
  3. The plugin grabs the playback time from the last embed above the cursor and inserts it at the cursor position.
  4. Double-click a timestamp to start playback (auto-stop at the second timecode when a range is present).
  5. On failure, a quoted debug block is added so you can inspect which step failed.

Debug logging

  • Enable logging via the command palette by running Enable media timecodes debug logging; a notice confirms the state.
  • Logs are appended to /tmp/obsidian-media-timestamp.log (handy for attaching to bug reports) while logging is enabled.
  • Disable logging via Disable media timecodes debug logging when you are finished collecting diagnostics.

Development

npm install
npm run dev

To produce a release build, run:

npm run build

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0