Commit Graph

901 Commits

Author SHA1 Message Date
ae27477dcd more debug logging 2024-04-05 06:19:38 +00:00
tomasklaen
6fa34c31d0 fix: chapter remaining time scaled by speed even when destination_time is set to time-remaining 2024-03-13 11:01:12 +01:00
tomasklaen
581adf4c5b fix: remaining chapter time in top bar wasn't accounting for speed
closes #873
2024-03-12 14:33:52 +01:00
christoph-heinrich
db985f1cbb fix: human time formats not accounting for speed < 1 (#871) 2024-03-11 09:35:16 +01:00
christoph-heinrich
48e0100727 fix: redraw when toggling the title in the top bar (#870) 2024-03-04 15:00:14 +01:00
christoph-heinrich
3675ed47c3 fix: refine text_width check (#869)
The option did the opposite of what it was supposed to.
2024-03-04 14:59:48 +01:00
tomasklaen
35699d3004 fix: menu crash after ctrl+backspace with only one character in input field
closes #847
2024-02-20 16:17:57 +01:00
tomasklaen
2370cb4e1d fix: disabling chapter indicators now disables chapter tooltips as well
resolves #849
2024-02-20 09:17:48 +01:00
tomasklaen
60dc19713e 5.2.0 2024-02-06 10:51:22 +01:00
tomasklaen
777ed2bb40 fix: keybindings and download-subtitles menus were not using palette search style 2024-02-06 10:45:45 +01:00
Tomas Klaen
4a4d0560b7 fix: click threshold not working when any clickable element is visible (#831)
This moves click threshold handling to cursor zones, which have been reworked a bit.

Resolves #820
2024-02-06 10:18:57 +01:00
tomasklaen
dc73278d65 feat: remaining chapter time in topbar
closes #839
2024-01-28 13:15:24 +01:00
christoph-heinrich
861f121c83 fix: don't scroll to top on menu update during search (#841) 2024-01-27 10:04:42 +01:00
tomasklaen
2eccc1bb06 fix: incorrect top bar state after re-enabling
closes #838
2024-01-20 21:48:22 +01:00
christoph-heinrich
63aba054ea fix: timestamp zero representation caching (#836)
Caching the zero represenation sounds like a good idea, until the
precision gets changed and then e.g. 01:40:23.13 returns -00:00:00.0
because it has the same amount of characters, messing up our width
estimation and pseudo monospace thingy.

Clearing the cache on options change avoids such conflicts.

Fixes #834
2024-01-20 21:26:07 +01:00
christoph-heinrich
0f970b5d8e feat: add items to playlist from files menu when holding ctrl (#822)
Closes #821
2024-01-08 19:18:43 +01:00
tomasklaen
efd6a55b20 feat: added flash-progress command
closes #828
2024-01-04 12:18:30 +01:00
Tomas Klaen
0d7825a4ad feat!: refine option to improve features at a cost of some performance (#816)
Replaces option `text_width_estimation`, which is now one of its available flags:

```
refine=text_width
```
2023-12-28 13:05:59 +01:00
dyphire
b36cefed88 feat: romanization support for search characters (#797) 2023-12-08 18:05:20 +01:00
dyphire
d01eb25c4d feat: more accurate file sorting on windows (#798) 2023-12-08 17:59:04 +01:00
tomasklaen
cef5694f96 fix: no window border on new mpv windows versions
There's a lot of `title-bar` interaction weirdness on windows. When disabling it on newer mpv versions, one version hides borders, other doesn't. So let's just pretend this setting does what it's supposed to and what everyone would expect, and only hides the title bar without touching the border. People can always disable uosc's window border with other options if they need to.
2023-12-08 17:38:50 +01:00
nicoo
9a02a60684 feat: support overriding ziggy path with MPV_UOSC_ZIGGY environment variable (#814)
This is useful when running on a platform builds of `ziggy` aren't provided for
... or when using a distro-provided build.

The idea for this patch originated in NixOS/nixpkgs#270962,
as it needed a way to point `uosc` at the nix-managed build of `ziggy`.
2023-12-07 11:03:21 +01:00
nicoo
8cfcdcfdec docs: fix broken link to uosc.conf (#813) 2023-12-07 10:44:37 +01:00
christoph-heinrich
79a77b1678 fix: couldn't disable buffering_indicator due to incorrect ID (#809)
The element id didn't match the id in the constructors table or the
description in the config. Consequently it was possible to disable the
indicator at startup, but once it was instantiated it wasn't possible to
remove it again.

Fixes #808
2023-12-07 09:56:04 +01:00
tomasklaen
472cbb1648 docs: add installation note about the antivirus issue 2023-12-06 23:33:06 +01:00
tomasklaen
bc9d20cb1a fix: toggle-ui not hiding elements when border=yes
closes #805
2023-12-06 23:05:42 +01:00
Sneakpeakcss
78061a7dc6 fix: show-in-directory issue opening paths containing a comma (win) (#800)
On Windows trying to open a path that contains a comma fails unless there's a space anywhere in the path, adding a trailing space to the end of it doesn't seem to bother explorer /select, and forces proper quotations.

Here's a bit more detail about this https://github.com/mpvnet-player/mpv.net/issues/580#issuecomment-1819365741
2023-12-06 22:36:14 +01:00
christoph-heinrich
96b57b259e fix: make maximize workaround windows specific (#795) 2023-11-15 20:14:10 +01:00
christoph-heinrich
210a1216fe fix: locale parsing related crash on some mpv builds (#794)
The # operator produces different results on luajit to the
interpreter for lists like `{1, nil, 3}`.
The interpreter gives a size of 3, while luajit says it's 1.

That caused `table_assign` and `itable_join` to behave differently depending
on the lua environment they're running in.

To get the total number of vararg arguments, `select('#', ...)`` can be
used, which doesn't stop counting when it encounters `nil`.

Any error return nil.
2023-11-13 18:58:43 +01:00
tomasklaen
28e968450f docs: clarified how to configure fetched languages in download-subtitles menu
closes #791
2023-11-12 19:13:31 +01:00
tomasklaen
55938d467a docs: updated faq with antivirus issue info 2023-11-10 10:02:55 +01:00
tomasklaen
1f4b7294b6 5.1.1 2023-11-10 09:30:52 +01:00
Tomas Klaen
c1828231ed chore: update screenshot in readme 2023-11-09 13:20:51 +01:00
tomasklaen
9cebb07fcb 5.1.0 2023-11-09 10:39:45 +01:00
tomasklaen
6d329f959b tweak: chapter indicator sizing 2023-11-09 10:39:22 +01:00
christoph-heinrich
38e68e1771 fix: scroll parent menus when opening menu by id (#780) 2023-11-09 09:33:25 +01:00
christoph-heinrich
a9c83bb73b tweak: always scroll to selected index on menu open (#779)
I don't think there is currently a use case for this, but maybe there
will be at some point and it doesn't hurt.

This would enable scrolling to some item on menu open even with
`mouse_nav` set, but currently any place that can open a menu with
`selected_index` set doesn't have `mouse_nav` set.
2023-11-09 09:31:56 +01:00
christoph-heinrich
8df5ea6efd fix: don't cause a fling in update_dimensions() (#778)
Opening a large menu with a selected item would not scroll
all the way to that selected item if there was a menu update during the
initial fling.
2023-11-09 09:30:30 +01:00
tomasklaen
0531659397 fix: controls couldn't cycle some mpv properties
closes #777
2023-11-07 15:10:39 +01:00
christoph-heinrich
ed42152bb8 fix: menu config with mpv.net (#776)
mpv.net v7 returns the whole input.conf content instead of the path for
the `input-conf` property.
2023-11-06 18:51:00 +01:00
tomasklaen
9c087efbb5 feat: added playlist_position to configurable opacity properties
closes #774
2023-11-06 09:14:04 +01:00
christoph-heinrich
c3e5bb2270 fix: only autohide UI when the cursor autohides (#771)
The cursor isn't allowed to autohide while hovering elements, so the UI
shouldn't autohide either. Otherwise this leads to the situation where
the UI autohides while e.g. hovering the timeline, and then the
cursor autohides afterwards because it's not hovering anything anymore.
2023-11-06 09:07:23 +01:00
christoph-heinrich
26d71a8630 fix: correctly update proximities on mouse enter and record position (#772)
Element:update_proximity() checks for cursor.hidden, which is why we have
to update that before updating the proximities.

Also it doesn't make sense to not record the first cursor position on
enter.
2023-11-05 11:37:32 +01:00
christoph-heinrich
a7ee37c1d7 refactor: remove check before adding 0.5 to cursor position (#770)
math.huge + 0.5 == math.huge
2023-11-05 11:24:25 +01:00
tomasklaen
650118ebbd docs: clarify how to control autohide timing 2023-11-04 19:58:08 +01:00
tomasklaen
d8044770ee tweak: bumped timeline cursor line opacity
ref #722
2023-11-04 19:45:58 +01:00
tomasklaen
bd068c9cd0 feat: added controls to configurable opacity properties
Changes background opacity of control buttons. Default is `0`.

ref #722
2023-11-04 19:38:15 +01:00
tomasklaen
c9826221d0 fix: autoload looping a file when only a single file in directory
closes #768
2023-11-04 19:05:14 +01:00
tomasklaen
37675d0f55 feat: allow pasting to start search
closes #767
2023-11-04 18:54:40 +01:00
tomasklaen
8d2dfc4b00 build: fixed packaging tool reporting total instead of compressed size 2023-11-04 18:41:26 +01:00