Commit Graph

310 Commits

Author SHA1 Message Date
tomasklaen
274c95eae1 style: reformat 2022-08-25 21:34:33 +02:00
tomasklaen
1080592c9b refactor: normalize get_default_directory() 2022-08-25 21:27:15 +02:00
tomasklaen
405135ad59 fix: load-subtitles menu crashing when there's no file open
closes #132
2022-08-25 21:08:19 +02:00
tomasklaen
ee9557cc85 fix: title hiding when mouse is at 0,0 coordinate
This was done because when player start on linux, the cursor position is reported as `0,0`, even though there is no cursor there, which lead to title being always visible on startup until cursor moves, which was annoying. Previous solution just hardcoded `0,0` coordinate to be recognized as `infinity,infinity`. This one Adds a filter for real and initial cursor position events, and only forces `infinity,infinity` when we haven't received a single real mouse movement yet.

closes #130
2022-08-25 16:02:05 +02:00
tomasklaen
6d02173317 3.1.2 2022-08-25 11:42:10 +02:00
hooke007
3a8d981103 feat: always disable the original osc (#128) 2022-08-25 11:10:10 +02:00
tomasklaen
5d46655eae fix: drives menu unable to read drives in player idle mode
closes #129
2022-08-25 09:23:22 +02:00
tomasklaen
e46f6d52a7 style: slim down the header even more 2022-08-24 16:43:03 +02:00
tomasklaen
3e6a43a0ea 3.1.1 2022-08-24 16:36:53 +02:00
tomasklaen
e621f9f148 fix: menu cursor detection ignoring updated items 2022-08-24 16:36:09 +02:00
tomasklaen
89e1c79d04 refactor: tweak & type self updating menu opener api 2022-08-24 16:23:23 +02:00
tomasklaen
54f64c1fb5 style: remove testing indent style and disable formatting diagnostics 2022-08-24 14:14:00 +02:00
tomasklaen
25adcfbf07 3.1.0 2022-08-24 13:35:34 +02:00
tomasklaen
8ca6b468d0 fix: directory navigation menus pre-selecting 1st item instead of 1st path 2022-08-24 13:33:44 +02:00
tomasklaen
7cc5bb04b2 fix: load subtitles menu loosing allowed types filter during navigation 2022-08-24 13:21:14 +02:00
tomasklaen
5da3885c2d feat: preselect 1st item when opening new menus 2022-08-24 13:14:38 +02:00
tomasklaen
016d80e477 feat: provide default context menu 2022-08-24 13:12:37 +02:00
tomasklaen
bff2060058 style: let language server handle code formatting
This is not complete, as I currently can't get the formatter to recognize `.editorconfig` file. Or at least it seems to ignore most of the options in it, so a lot of formatting doesn't adhere to the config.

Will need another pass when that gets fixed.
2022-08-24 12:23:59 +02:00
tomasklaen
7f2803046a feat: add time_precision option
Number that determines sub second fraction precision to display in timeline timestamps. Default is `0`.

closes #127
2022-08-23 22:39:08 +02:00
tomasklaen
761fa996e0 feat: add an ability to open submenus
With this, users can set up keybinds to send `show-submenu` message to
uosc with menu ID to open just that.
Example: `script-message-to uosc show-submenu "Foo > Bar"`

closes #75
2022-08-23 19:10:22 +02:00
tomasklaen
ef7688fa97 fix: show timeline adjacent elements during peek-timeline even when cursor is hidden 2022-08-23 18:36:47 +02:00
tomasklaen
3ea9fbc848 fix: correct hovered menu item detection 2022-08-23 18:30:49 +02:00
tomasklaen
ac33b435f5 fix: adjust and visualize time area padding due to line width 2022-08-23 18:21:23 +02:00
tomasklaen
fb279fecc6 fix: color chapters to the left of the progress line with foreground color 2022-08-23 14:28:07 +02:00
tomasklaen
e194b255d9 fix: make menu item navigation select the scrolled to index 2022-08-23 13:40:35 +02:00
tomasklaen
894dfa0a36 feat: preselect previous folder when navigating up the file tree 2022-08-23 13:11:04 +02:00
tomasklaen
5e05f51756 refactor: tidy up drives menu 2022-08-23 09:20:43 +02:00
Zhong Lufan
17232fbfdc feat: navigating to other drives on Windows (#124) 2022-08-23 08:20:51 +02:00
tomasklaen
895c783be8 3.0.0 2022-08-22 11:48:31 +02:00
Tomas Klaen
d30c1d5dac Update preview urls 2022-08-22 11:47:05 +02:00
tomasklaen
af117c1ce7 Update urls to new repo 2022-08-22 11:33:21 +02:00
tomasklaen
7eca20008e Implement timeline_chapters_width option
closes #119
2022-08-22 11:14:10 +02:00
tomasklaen
2b9ce54b86 Tweak defaults 2022-08-22 10:43:56 +02:00
tomasklaen
b37082d185 Remove timeline_elements option 2022-08-21 14:14:59 +02:00
Eva
78d6dfa137 Display playlist position in window title 2022-08-21 12:23:02 +02:00
tomasklaen
ebf49d5917 Disable unwanted diagnostics warning 2022-08-20 22:50:24 +02:00
tomasklaen
52baad25d0 Fix menu button closing the menu immediately after opening it
closes #77
2022-08-20 22:12:58 +02:00
tomasklaen
8a85070f27 Add nil checks and code style tweaks 2022-08-20 22:06:05 +02:00
tomasklaen
cb542459bd Implement timeline_elements option 2022-08-20 21:28:30 +02:00
tomasklaen
f85d7cfcdc Prefix chapters and chapters_opacity options with timeline_ 2022-08-20 20:59:37 +02:00
tomasklaen
814edb52cb Implement line timeline style 2022-08-20 20:55:24 +02:00
Don Johnny
9830f3981c Fix subtitle loader not normalizing path correctly 2022-08-19 13:22:21 +02:00
christoph-heinrich
f2264a5bf2 Menu width configuration 2022-08-17 16:01:43 +02:00
tomasklaen
6c7d83b8ad Slim down the header 2022-08-17 09:51:51 +02:00
Christoph Heinrich
a003928611 Update dimensions only when necessary 2022-08-17 09:32:43 +02:00
Christoph Heinrich
52aa396087 Update menu offsets when dimensions change 2022-08-17 09:32:43 +02:00
Christoph Heinrich
81b5baaa43 Add chapter title to hovered time
Long titles are wrapped at a width of roughly 25 characters and
the titles are always shown in bold with a small additional spacing
between time and title.

Closes #85
2022-08-16 18:57:01 +02:00
Christoph Heinrich
1ba31c46c2 Remove goto for lua 5.1 compatiblity
goto was introduced in lua 5.2.
mpv supports lua 5.1, so user scripts should too.
2022-08-16 09:55:55 +02:00
Christoph Heinrich
8dffb8aded Correct speed scrolling direction
5f31a248ee overwrote the direction change
from 35f058d760. This corrects that.
2022-08-16 09:55:05 +02:00
Natural-Harmonia-Gropius
4148991490 better text_width_estimate 2022-08-15 11:06:54 +02:00