PKM-er / media-extended

enhanced media(video/audio) playback for obsidian.md
https://mx.pkmer.net
MIT License
634 stars 53 forks source link

Feature: Timestamp Template #32

Open iris2jane opened 3 years ago

iris2jane commented 3 years ago

I would like to automatically add some fields, such as Title Level 6("###### "), before the timestamp, which may make the video note level clearer.


If there are more feature request around templates, you can reply directly in this issue.

Tony-zf1 commented 3 years ago

@aidenlx 作者你好,我想要的自定义时间戳格式的功能比较简单。 当前的时间戳格式是:回车+[03:05](http://***)+回车。 在写大纲笔记(workflowy或幕布的笔记形式)时,我希望时间戳直接在行尾,以保证笔记的大纲格式不被破坏。 因此希望这个时间戳格式可以自定义为:[03:05](http://***)+回车。 视频说明在b站,谢谢!

iris2jane commented 3 years ago

@aidenlx 作者你好,我想要的自定义时间戳格式的功能比较简单。 当前的时间戳格式是:回车+[03:05](http://***)+回车。 在写大纲笔记(workflowy或幕布的笔记形式)时,我希望时间戳直接在行尾,以保证笔记的大纲格式不被破坏。 因此希望这个时间戳格式可以自定义为:[03:05](http://***)+回车。 视频说明在b站,谢谢!

插件设置里现在可以自定义了

aidenlx commented 3 years ago

@aidenlx 作者你好,我想要的自定义时间戳格式的功能比较简单。 当前的时间戳格式是:回车+[03:05](http://***)+回车。 在写大纲笔记(workflowy或幕布的笔记形式)时,我希望时间戳直接在行尾,以保证笔记的大纲格式不被破坏。 因此希望这个时间戳格式可以自定义为:[03:05](http://***)+回车。 视频说明在b站,谢谢!

在v2.9.0,你可以在设置里只留下{{TIMESTAMP}},不保留换行符,然后手动回车,因为obsidian要触发自动缩进需要手动按回车键,插件直接操作编辑器是没法触发的

image

PS: 最好以后GitHub上附一份英文(百度翻译也可以),要不成国人的加密通讯了😂

Tony-zf1 commented 3 years ago

在v2.9.0,你可以在设置里只留下{{TIMESTAMP}},不保留换行符,然后手动回车,因为obsidian要触发自动缩进需要手动按回车键,插件直接操作编辑器是没法触发的

image

PS: 最好以后GitHub上附一份英文(百度翻译也可以),要不成国人的加密通讯了😂

Thank you so much! The template works well as below.

image

A cup of MIXUE Icecream&Tea has been offered with Alipay.

Thanks again!

PS:一开始是发在b站插件那边,想着没老外看就直接打的中文,到这边补充也没换成英文😂

aidenlx commented 3 years ago

Moved from #81 created by @dummifiedme

More templates especially for Cursor control

When I am taking notes, its essential that we can have cursor control to move the cursor to a location after inserting time link.

for example:

I mostly want my notes to be of the form - Some text {{timestamp}}.

While doing this, if I insert timestamp, I need to then go back to the staarting point and then type the thing. If it was possible to have a template for cursor then we could have a template like : {{cursor}}{{TIMESTAMP}}

It would help other users too depeding on how they take and format note :)

Templater plugin has this function called tp.file.cursor() for the same thing, maybe something like take could be explored.

geekhuashan commented 2 years ago

yes,yes.

I am a novice using obsidian, And how can I ues Tamplater to get this effect.
I just creat a template with the <% tp.file.cursor(){{TIMESTAMP}} %>

Then failed.

Which command should I generate to achieve this effect.

Looking forward to your kindly reply

chaecramb commented 2 years ago

I would love to have a {{TIME}} template that just gives the time alone. This is so that I can setup a template for local files that just displays the time, in the same way as {{TIMESTAMP}} works for YouTube.

Currently with local files we get:

[[filname.mp3#t=00:10.969]]

I’d like to be able to configure to be consistent with YouTube timestamps, so that we get:

[10:96](filname.mp3#t=00:10.969)

Perhaps by separating out {{TIME}} and {{LOCATION}} would create more flexibility.

mdmanurung commented 2 years ago

Moved from #81 created by @dummifiedme

More templates especially for Cursor control

When I am taking notes, its essential that we can have cursor control to move the cursor to a location after inserting time link.

for example:

I mostly want my notes to be of the form - Some text {{timestamp}}.

While doing this, if I insert timestamp, I need to then go back to the staarting point and then type the thing. If it was possible to have a template for cursor then we could have a template like : {{cursor}}{{TIMESTAMP}}

It would help other users too depeding on how they take and format note :)

Templater plugin has this function called tp.file.cursor() for the same thing, maybe something like take could be explored.

giving another upvote for this.

JacobLightman commented 11 months ago

More templates for cursor control

I'd like to automatically have my cursor after the timestamp without having to use another (templater) hotkey. Currently in Media Extended I have {{TIMESTAMP}} <%tp.file.cursor() %> but this requires the use of two hotkeys (Shift + Space, Ctrl + Space) to write a note with a timestamp while I'm watching a video, and sometimes I take a lot of timestamped notes without pausing, which makes this frustrating. If there was a way to achieve this with one hotkey it would be fantastic.