Commit Graph

686 Commits

Author SHA1 Message Date
tomasklaen
9839e7b726 fix: elements staying visible after switching to fullscreen
closes #482
2023-03-27 16:54:38 +02:00
tomasklaen
02228282be refactor: uppercase constants 2023-03-27 16:52:32 +02:00
xfzv
1ed8a7a823 fix: add ac3 to audio types (#468) 2023-03-04 16:20:51 +01:00
christoph-heinrich
cb14638ae0 fix: use the new console margins API
A recently merged PR https://github.com/mpv-player/mpv/pull/11226 made
the console use the new user-data property instead of
shared-script-properties, resulting in our margins being ignored.

This sets the `user-data/osc/margins` property in addition to the old
shared-script-property to keep compatiblity with older mpv versions.
2023-02-27 09:45:30 +01:00
tomasklaen
f039af5732 feat: added menu keybinds to move and delete items in playlists
`ctrl+up/down` moves a selected item up/down, and `del` deletes it.
2023-02-20 16:12:22 +01:00
tomasklaen
2e5b0cc834 fix: title deduplication matching not escaping pattern parameter
ref #455
2023-02-18 10:58:09 +01:00
tomasklaen
0bc28c213c feat: smarter window main & alt titles deduplication
Deduplicates the main and alt titles by checking if one completely contains the other, and using only the longer one.

ref #455
2023-02-18 10:19:48 +01:00
christoph-heinrich
1dfbbd7091 fix: lax chapter range patterns producing false positives (#454) 2023-02-16 20:26:06 +01:00
tomasklaen
94ec120923 4.6.0 2023-02-15 09:59:39 +01:00
christoph-heinrich
30d6e12001 feat: add on_close command to menu API (#449) 2023-02-07 08:45:04 +01:00
tomasklaen
51015682f8 feat: visually distinct a-b loop indicators
closes #360
2023-01-31 11:11:49 +01:00
christoph-heinrich
811b2c5f33 fix: timestamp offsets should respect the trimmed time width (#443)
* fix: constant width for hovered time

* fix: respect the trimmed time width in the buffered time indicator

* perf: cache timestamp substitutes for width calculation

Co-authored-by: tomasklaen <tomas.klaen@gmail.com>

---------

Co-authored-by: tomasklaen <tomas.klaen@gmail.com>
2023-01-31 09:11:56 +01:00
tomasklaen
e3c06eb814 feat: made ctrl+click in file menus behave just like ctrl+enter does
ref #378
2023-01-30 22:18:16 +01:00
tomasklaen
75de632fbd fix: 54bb9d6 prevented loading audio/subtitle tracks from other video files
closes #442
2023-01-30 18:11:32 +01:00
tomasklaen
3b68314fcf fix: click to the left of file menus navigating up instead of closing the menu 2023-01-30 15:22:36 +01:00
tomasklaen
479816af52 fix: file menu back feature broken by b9cc1cc
ref #378
2023-01-30 15:02:48 +01:00
christoph-heinrich
fd54373be8 fix: infinite margin on initialization (#362) 2023-01-30 14:41:05 +01:00
tomasklaen
b9cc1ccc3c feat: ctrl+enter in file menus will load selected directory
closes #378
2023-01-30 14:05:26 +01:00
tomasklaen
543c4a71f1 feat: added autoload_types option
Controls what file types to look for when deciding next file to play.

Comma separated list of: `video`, `audio`, `image`, `subtitle`

closes #387
2023-01-30 12:57:05 +01:00
tomasklaen
54bb9d6a77 feat: split media_types option into video_types, audio_types, and image_types 2023-01-30 11:44:15 +01:00
tomasklaen
188a579ebf fix: menus not toggling off after being updated
closes #400
2023-01-30 11:09:44 +01:00
tomasklaen
7647cac9f8 feat: trim unnecessary 00: from timestamps in durations shorter than an hour
closes #401
2023-01-30 10:58:22 +01:00
tomasklaen
9ebc600d37 feat: added show-submenu-blurred message listener
closes #441
2023-01-30 10:14:39 +01:00
tomasklaen
b32ae2abaf fix: top_bar's visibility sometimes stuck when going fullscreen
closes #436
2023-01-21 22:14:00 +01:00
tomasklaen
32cc283397 feat: flash top bar when new file is loaded
closes #380
2023-01-18 12:15:14 +01:00
tomasklaen
8183163f2a feat: added options to display alternative top bar title
Added option `top_bar_alt_title`, which accepts an alternative title template to be displayed, and `top_bar_alt_title_place` that controls where it should be displayed. It can be either `below` to place it below the main one, or `toggle` to show it in place of the main title when user clicks the top bar or calls the `toggle-title` binding.

The `top_bar_title` now also accepts a custom top bar title template if user wants it to be different from the one defined in `mpv.conf`.

closes #402
2023-01-18 12:06:10 +01:00
Tomas Klaen
c5ccd1b4ef feat: added an API to overwrite uosc key bindings (#430)
This allows 3rd party scripts to replace the handling of built in uosc key bindings with their own logic.

Example that replaces uosc's basic stream quality menu with christoph-heinrich/mpv-quality-menu:

```lua
mp.commandv('script-message-to', 'uosc', 'overwrite-binding', 'stream-quality', 'script-binding quality_menu/video_formats_toggle')
```
2023-01-18 09:48:31 +01:00
Till
ed58830ca7 docs: minor additions and cleanup (#428) 2023-01-14 11:34:56 +01:00
christoph-heinrich
e460e8c973 feat: better alphanumerical sorting (#426) 2023-01-13 19:41:17 +01:00
christoph-heinrich
68ac697002 fix: buffered time respects minus in time remaining (#424) 2023-01-10 21:15:47 +01:00
christoph-heinrich
2b887fcd76 tweak: buffered time threshold based on displayed value (#423) 2023-01-10 21:14:07 +01:00
tomasklaen
9f9b8e422e fix: buffered time not accounting for speed
closes #421
2023-01-10 09:07:57 +01:00
christoph-heinrich
11f9067182 fix: mouse-pos can be nil (#418) 2023-01-05 15:57:30 +01:00
christoph-heinrich
5a02c6d205 fix: touch input (#412)
`mouse-pos.hover` may or may not be false during touch input
(contrary to mouse input, where false means the cursor left the window)

Detecting a change to false as a leave event, while allowing any
other mouse-pos update to cause an enter event solves this.
2023-01-02 08:51:49 +01:00
Michael
e66c8fbf88 feat: added destination_time option and deprecated total_time (#399)
`destination_time` accepts one of `total`, `playtime-remaining` (scaled by the current speed), `time-remaining` (remaining length of file).

`total_time` is deprecated, but still works as expected.
2022-12-27 09:17:12 +01:00
xfzv
ea371b5740 fix: add dts to media_types (#398) 2022-12-24 10:41:45 +01:00
dyphire
e33db65c1c feat: add use_trash option (#394) 2022-12-23 15:51:37 +01:00
christoph-heinrich
4c706b9303 fix: declare variable before function using it (#396) 2022-12-23 09:10:07 +01:00
tomasklaen
edf2502535 fix: proximity visibility not being reset when toggling elements off
ref #391
2022-12-17 10:50:05 +01:00
christoph-heinrich
bfaccc8f66 fix: A-B loop crash (#389) 2022-12-14 09:22:44 +01:00
tomasklaen
17c8ed6291 4.5.0 2022-12-07 18:14:11 +01:00
christoph-heinrich
4ef8ff55bb fix: always enabled cache triggering uncached ranges (#385) 2022-12-06 23:18:36 +01:00
christoph-heinrich
8b863a611f fix: osd resolution initializing incorrectly (#383)
* fix: only update resolution when it's > 0

* fix: only render after the resolution has been initialized

* chore: update type annotation to fix warning
2022-12-04 09:09:20 +01:00
christoph-heinrich
b75ceb6d6f fix: controls activating when overlapping chapter is clicked (#373) 2022-11-17 09:37:10 +01:00
tomasklaen
6b2476bace feat: allow clicking timeline chapter indicators
I don't like this solution, but anything cleaner would probably require converting chapter indicators into individual elements and than managing/updating their positions and sizes in relation to growing timeline, which seems like a lot more work and code, so this'll have to suffice.

closes #370
2022-11-16 15:23:44 +01:00
tomasklaen
682fd81a85 feat: **back** in file menus now navigates up the directory tree
closes #367
2022-11-14 09:22:32 +01:00
tomasklaen
107e758144 fix: open-config-directory not opening correct folder on windows
closes #365
2022-11-11 09:45:14 +01:00
tomasklaen
5f5bf4b842 fix: file menu not updating active item and other menu issues
- Preselecting previous folder wasn't working sometimes.
- `join_path()` didn't account for drive letters already having a separator.

Also refactors how `open_file_navigation_menu()` stores menu items value. As a side effect this is now a lot faster as we don't have to serialize each item's path into meta table, but instead we now store just a path string and handle it as needed.

closes #355
2022-10-31 11:10:25 +01:00
tomasklaen
e8060c74ad refactor: don't overwrite default libraries and expose join_path() and path_separator() types 2022-10-31 09:47:46 +01:00
tomasklaen
d9e5853542 fix: text_width() ignoring global font_bold option 2022-10-31 09:24:12 +01:00