Skip to content

User-defined formatting of transcript copy #43

@redactedscribe

Description

@redactedscribe

Is your feature request related to a problem? Please describe.

I think it would be great if we could define a format ourselves for when copying, either all of the transcript, or single lines. This would involve us defining two formats, one for each.

Describe the solution you'd like

Using some {variables} defined by the plugin, for when copying the entire transcript, we could define something like:

> [[{timestamp}]({timestamp_url})] *{text}*{space}{space}{newline}

Which would produce something like:

> [[00:00](https://www.youtube.com/watch?v=mScpHTIi-kM&t=0)] *- This is a video about the most famous problem  *

Or as rendered:

[00:00] - This is a video about the most famous problem

An example format for copying single lines could look like:

[*{text}*]({timestamp_url})

Rendered as:

- This is a video about the most famous problem

...or whatever the user chooses.

Examples of variables:

  • timestamp: Plain 00:00
  • timestamp_url: https://www.youtube.com/watch?v=mScpHTIi-kM&t=0
  • text: Contents of the timestamp.
  • video_url: URL of the video.
  • space: A single space. May not be necessary, although I've seen instances where plugins strip trailing spaces, so a variable for it may help in those scenarios (the double space above, i.e. {space}{space}, is Markdown to force consecutive lines to render below each other, not as a single paragraph).
  • newline: Newline character.

Describe alternatives you've considered

Each time pasting into VS Code and performing some regular expression replacements to format the transcript as desired.

Additional context

We could end up with something neat like this:

Obsidian_2024-01-24_16-55-35

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions