Commit Graph

673 Commits

Author SHA1 Message Date
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
tomasklaen
972dd41b94 fix: menu prev/next navigation shouldn't smooth scroll
closes #352
2022-10-29 19:30:34 +02:00
tomasklaen
64feeb04b7 4.4.0 2022-10-28 22:25:04 +02:00
tomasklaen
d8fad3306a feat: implement special spinner icon for menus
Allows menus to use `spinner` as an item icon, which will display a rotating spinner. Along with a no-op command on an item and `keep_open=true`, this can be used to display placeholder menus/items that are still loading.

Extracts spinner from `BufferingIndicator` into `ass:spinner()` utility.
2022-10-28 22:22:21 +02:00
christoph-heinrich
59ac8af48f fix: menu title when browsing files (#349) 2022-10-28 21:54:57 +02:00
christoph-heinrich
00d249a351 fix: selection on mbtn_up requires mbtn_down first (#348)
Without checking if mbtn_down happened first in the menu, it is possible
to select an item right after opening the menu from the controls.
(mbtn_down on control opens menu, mbtn_up selects item in menu)
2022-10-28 09:46:21 +02:00
tomasklaen
b5ca97adcf feat: add timeline_cache option to disable cache indicators
ref #351
2022-10-27 21:35:56 +02:00
tomasklaen
8538d6a177 perf: optimize reading directories
Instead of calling `utils.readdir()` twice to get directories and files, we now read the directory only once and sort it by item type. Also optimizes extension checking.

ref #344
2022-10-27 13:25:02 +02:00
tomasklaen
70c02b8a7c refactor: don't extend native utilities 2022-10-27 12:14:28 +02:00
tomasklaen
4399904bba refactor: change directory structure to support mpv 0.32 and lower 2022-10-27 12:09:59 +02:00
christoph-heinrich
b2ffc26195 perf: optimize normalize_path (#347)
Does not convert backslashes to slashes or vice versa anymore.
2022-10-27 11:49:09 +02:00
christoph-heinrich
5953113e9d perf: optimize serialize_path (#346)
~22x performance improvement
2022-10-27 11:48:44 +02:00
tomasklaen
d4697134a1 docs: use no-osd in keybind examples 2022-10-26 10:03:31 +02:00
christoph-heinrich
2d8b41fbd4 fix: restore leading zero sorting (#342) 2022-10-26 09:54:21 +02:00