Commit Graph

14 Commits

Author SHA1 Message Date
Eva
f403f92c1d fix: translate audio channels and devices list (#520) 2023-04-25 19:21:51 +02:00
natural-harmonia-gropius
3c70ffd927 feat: internationalization (#518)
Adds `languages` option to specify localization language priority.
Built in languages can be found in `scripts/uosc_shared/intl`.
2023-04-24 11:37:58 +02:00
tomasklaen
21b37ce33b fix: submenus vertically misaligned when opened via show-submenu message
closes #459
2023-03-29 17:08:53 +02:00
tomasklaen
08734f1dda refactor: use mpv's new platform prop to detect platform
closes #462
2023-03-29 10:41:12 +02: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
christoph-heinrich
30d6e12001 feat: add on_close command to menu API (#449) 2023-02-07 08:45:04 +01:00
tomasklaen
479816af52 fix: file menu back feature broken by b9cc1cc
ref #378
2023-01-30 15:02:48 +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
682fd81a85 feat: **back** in file menus now navigates up the directory tree
closes #367
2022-11-14 09:22:32 +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
christoph-heinrich
59ac8af48f fix: menu title when browsing files (#349) 2022-10-28 21:54:57 +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
4399904bba refactor: change directory structure to support mpv 0.32 and lower 2022-10-27 12:09:59 +02:00