Commit Graph

310 Commits

Author SHA1 Message Date
christoph-heinrich
5f31a248ee Allow speed to be modified by a factor 2022-08-15 10:22:15 +02:00
Christoph Heinrich
35f058d760 Consistant scrolling direction
Scrolling up to change a value is semantically associated with
increasing that value.
Volume already worked this way, and the same is true for seeking
by scrolling outside of the UI, but scrolling up on the timeline
seeked backwards and scrolling up on the speed widget reduced speed.
Now scrolling on the timeline or outside of the UI seeks in the same
direction and speed also increases when scrolling up on the widget.
2022-08-15 10:05:31 +02:00
Christoph Heinrich
b1c0466c11 Allow negative numbers for timeline_step
The restriction of only allowing positive numbers for `timeline_step`
has been lifted, allowing users to set negative numbers
if they want to reverse the scrolling direction of timeline seeking.
This was already possible for speed and volume.
2022-08-15 10:05:31 +02:00
Christoph Heinrich
4eb93bc25b Update subtitle, audio, video and chapter menu lists
The playlist menu list would reflect changes of the underlying data.
That now also happens for the menu lists of all three tracks as well as
chapters. Closes #21
2022-08-15 09:20:18 +02:00
Christoph Heinrich
377a5ef3c6 Allow creating empty folders
So far it was not possible to create an empty folder that was then was
later filled up with commands (or folders).
Because of that the structure of input.conf had to be based around
the menu.
By creating empty folders with the `ignore` command, that requirement
has been loosened a bit.
Trimming whitespace from `command` was necessary to check for "ignore".
2022-08-14 15:15:13 +02:00
Christoph Heinrich
77550ef999 Trim whitespace at the end of the context menu line 2022-08-14 15:15:13 +02:00
Tomas Klaen
1de5c78aa8 Fix download links 2022-08-14 14:56:03 +02:00
Tomas Klaen
0bd53e9c74 Migrate changelog and configuration to releases 2022-08-14 14:53:19 +02:00
Natural-Harmonia-Gropius
a751449168 show volume-bar only when has_audio 2022-08-14 14:17:22 +02:00
Christoph Heinrich
ca885c9ec0 Add UI scaling
Fixes #81

Uses a new option `ui_scale` for scaling the UI as well as the
`display-hidpi-scale` property.
Has been inspired by the scaling in console.lua
2022-08-14 13:24:42 +02:00
Christoph Heinrich
3466ea5299 Fix menu crash when quickly repeatedly opening and closing submenu
Opening and closing a submenu very quickly very quickly
(smashing right and left arrow as fast as I possibly can)
resulted in a nil error.
2022-08-14 13:03:41 +02:00
Christoph Heinrich
3cff450016 Show more information for tracks 2022-08-14 12:42:25 +02:00
Christoph Heinrich
a07a43cd6b Fix hint width estimation
Use the actual font size of hints to estimate their width.
`item_content_spacing` is not needed in the calculation of `hint_width`,
because it is already considered in the calculation of `title_clip_x`,
otherwise we'll end up with twice the spacing.
2022-08-14 12:37:39 +02:00
Christoph Heinrich
276b590e07 Update and render on remaining time changes 2022-08-14 12:27:18 +02:00
Christoph Heinrich
17d400c442 Fix speed dial crash
When dragging the speed dial and letting go over the timeline,
`this:fadeout` was called, but that function does not exist.
Introduced in 755194352f
2022-08-14 12:04:50 +02:00
Christoph Heinrich
46b3b638c6 Fix menu selection initialization and scroll position
When the menu was initialized without items and then the items and
active item were set afterwards (like is the case with playlist),
then the initialization of the selection and scroll position would
not work.
2022-08-14 11:25:45 +02:00
Christoph Heinrich
f5873fa278 Remove 100ms leeway in chapter menu
Due to the 100 leeway, a chapter starting at 00:00 would not be active,
when the playback time also was 00:00.
2022-07-19 23:08:29 +02:00
aescanes
e12051820c add default_directory option for conf file 2022-07-15 22:22:12 +02:00
Christoph Heinrich
bd34d77540 Fix initial invocation of pause indicator
When starting the player paused, the static pause indicator
was not shown.
Now starting a video paused will properly show the static indicator
and the flash indicator is only shown when the state actually changes.
2022-07-14 23:53:11 +02:00
Christoph Heinrich
0000e9a02e Automatically choose rendering frequency 2022-07-14 09:55:38 +02:00
Christoph Heinrich
2fb7e5348d Render on cache updates
The updated state of the cache was not visible when the player was
paused and not interacted with.

Now a render is requested on every cache update, which happens roughly
two times per second for me.
2022-07-12 08:38:32 +02:00
tomasklaen
945594b702 Try to use existing title property for playlist items 2022-06-27 09:29:11 +02:00
tomasklaen
ee84bf75c7 2.17.0 2022-04-30 22:08:21 +02:00
tomasklaen
7a0c648ae7 Add default_directory option
resolves #72
2022-04-30 21:53:21 +02:00
tomasklaen
b6a90091a2 Update readme 2022-03-22 23:04:19 +01:00
tomasklaen
bff64dc1ad 2.16.0 2022-03-21 09:26:06 +01:00
tomasklaen
7d7915dfda Update readme 2022-03-21 09:13:12 +01:00
Till
b0b5ceb85d Also allow '#menu:' as keyword instead of '#!' in input.conf
Apparently lua patterns don't have syntax which does (#!|#menu:), so it is split with the if statement
2022-03-21 09:09:57 +01:00
Till
f1fd971795 keep playlist on delete-file-next command
If the delete-file-next command is used and there is a playlist, the playlist will continue with the next file of it, instead of loading the next file in the directory and discarding the playlist.
2022-03-21 09:09:57 +01:00
Till
e2b456142f add flash-top-bar command
useful for seeing the video title when switching files
2022-03-21 09:09:57 +01:00
tomasklaen
9dcc1cfd17 2.15.1 2022-02-12 15:50:37 +01:00
tomasklaen
11a231c618 Fix mpv incorrectly reporting initial cursor position as 0,0 2022-02-12 15:45:51 +01:00
tomasklaen
4dee777d3b 2.15.0 2022-01-11 10:05:24 +01:00
tomasklaen
82575c90b9 Tweak menu_button 2022-01-11 10:03:41 +01:00
oumaek
7b329953b4 Add menu button widget (#63) 2022-01-11 09:23:53 +01:00
allmeta
43e6a30f45 load subs works for remote source (#61) 2021-12-26 09:15:04 +01:00
tomasklaen
fda52dd098 2.14.0 2021-09-13 09:29:40 +02:00
tomasklaen
fd7e4b6c05 Add top_bar option
Possible values:
- never
- no-border: in windowed mode when border is disabled, or fullscreen
- always

Closes #15
2021-09-13 09:24:57 +02:00
Leonidas Arvanitis
6a3d0ff281 Fix: accept all whitespace characters during input.conf parsing (#56)
Especially useful for tabs
2021-06-25 20:40:48 +02:00
darsain
6aa705150b Add license
closes #53
2021-06-08 17:06:13 +02:00
darsain
145c369743 2.13.2 2021-04-26 09:08:54 +02:00
darsain
39f2f7b6a5 Fix crash when ab loop is created with no chapters
closes #49
2021-04-26 09:07:28 +02:00
darsain
44f4b9951b Use same heading level for patches and minor updates 2021-01-19 14:08:02 +01:00
darsain
58bb38dc77 2.13.1 2021-01-19 14:04:03 +01:00
darsain
2c3443c736 Make file deletion in delete-file-ACTION commands optional 2021-01-19 13:58:03 +01:00
darsain
42dec2a46c 2.13.0 2020-12-16 10:13:31 +01:00
darsain
fbaf0c2d56 Add shift modifier for opening menu items without closing the menu
resolves #46
2020-12-16 10:08:51 +01:00
darsain
90e4226b01 Concatenate menu items only within the same menu group
ref #45
2020-12-12 14:57:01 +01:00
darsain
8af663f4ff Add curtain_opacity option
ref #45
2020-12-12 10:04:34 +01:00
Tomas Sardyha
b694706d1f 2.12.0 2020-12-03 11:10:07 +01:00