PKM-er / media-extended

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

[FR] Please add the option to open media in new pane to the side #233

Closed maximbelyayev closed 8 months ago

maximbelyayev commented 8 months ago

When using command "Media Extended: Open media", please provide an option to open the media in a panel to the side. I have an existing template for videos and triggering the command in a note should open the media as shown below:

Screenshot 2024-02-19 at 11 27 47 AM

This way, I'm able to open media in a note I've already created, or use it when creating a new note from Templater. Plugin "Timestamp Notes" accomplishes this, which I currently use as a substitute.

I believe this was the default behavior before 3.0. Currently, with this release we are forced follow this plugin's random workflow which is opening a media in a new full-size window, and having to click a star to creating a "Media note":

Screenshot 2024-02-19 at 11 30 33 AM

The plugin is great and your work is much appreciated, but please at least provide this option, or provide an option for creating a template / working with Templater. Thanks!

maximbelyayev commented 8 months ago

As an aside, for those interested I also modified styles.css so that media is centered in the pane.

Before: .mx .data-\[view-type\=video\]\:aspect-video[data-view-type=video]{aspect-ratio:16 / 9}

After: .mx .data-\[view-type\=video\]\:aspect-video[data-view-type=video]{aspect-ratio:16 / 9;display:inline;}

aidenlx commented 8 months ago

open media command is using the same logic as quick switcher, you need to use mod keys with enter to open to the side CleanShot 2024-02-29 at 15 58 33@2x