media-extended icon indicating copy to clipboard operation
media-extended copied to clipboard

Move the cursor to the end of Timestamp after creation

Open Archie-2021 opened this issue 2 years ago • 6 comments

Right now the cursor stay at its position and the timestamp put in front of it, which is inconvenient because the note is supposed to be added in front of timestamp. I am not sure it is because of the new editor or what just thought it can be helpful to be reported.

thanks

Archie-2021 avatar Jan 03 '22 17:01 Archie-2021

This is a great suggestion, I came to suggest this.

Are there any news on this issue please ?

Thank you !

Elaws avatar Jan 24 '22 21:01 Elaws

This is a great suggestion, I came to suggest this.

Are there any news on this issue please ?

Thank you !

My guess is tha devs are not active, it has been a while since the last update, hopefully they get active on this project again soon

Archie-2021 avatar Jan 25 '22 11:01 Archie-2021

This is a great plugin for Obsidian, I really hope it will soon keep being improved ;)

Elaws avatar Jan 25 '22 19:01 Elaws

This is a great plugin for Obsidian, I really hope it will soon keep being improved ;)

yeah, I am heavily using it and depending on it. just some minor modifications like these and some additional hot keys and it is going to be perfect.

Archie-2021 avatar Jan 26 '22 05:01 Archie-2021

I found a temporary solution for this issue.

  1. Download the fixed main.js , OR follow the steps below if you prefer to compiling the plugin by yourself.
Comment out https://github.com/aidenlx/media-extended/blob/main/src/misc.ts#L48
Compile the plugin by running following command. The compiled files will be in 'build' folder.
  npm install
  npm run build
  1. Copy the main.js file to overwriteyour_valut/.obsidian/plugins/media-extended/main.js. (You could open the plugin folder in Obsidian's Settings->Community plugins->Installed plugins , then click the folder icon Open plugins folder)
  2. Restart Obsidian.

Another workaround would be enabling Use legacy editor. However, this option is not compatible to several popular plugins.

Hope it helps.

leeyupeng avatar Feb 26 '22 03:02 leeyupeng

Not completely sure if I understand your need with the cursor, but I use templater plugin to automatically set where I want to set the cursor. I use the combination of hotkeys CTRL+T to create the timestamp and CTRL+R to "activate" the template, and the cursor is ready to write on the right of the timestamp. Like this:

[03:56](LINK/TO/YOUTUBE/WITH/TIMESTAMP) YOUR/CURSOR/IS/HERE

You can define where you want the cursor to be or other things if you define it in the template. For my usage, copy this in the Timestamp template section of the media extended options

{{TIMESTAMP}} <% tp.file.cursor(0) %>

All credit goes to Bryan Jenks @tallguyjenks

Obsidian Media Extended: The Best Way To Take Notes On Videos

pmarkaide avatar Sep 15 '22 08:09 pmarkaide

i am now using the commander plugin to automate this in a better fashion

using commander to run a macro of inserting the media extended timestamp then running the templater jump to cursor command immediately after

hotkey for inserting media extended timestamp template now assigned to commander macro and it work beautifully

tallguyjenks avatar Dec 08 '22 06:12 tallguyjenks

Was there any update yet? My cursor goes up and above the timestamp. It would be great if it went right after instead.

DeiseDaithi avatar Jun 20 '23 19:06 DeiseDaithi