Releases: tomasklaen/uosc
5.6.2
5.6.1
Features
- Support for using
uosc
as toggle/cycle control prop owner to tap into uosc options (8220bad) @tomasklaen
Fixes
- Updated Simplified Chinese translation (#980) (6d049c0) @dyphire
copy-to-clipboard
script-binding not showing the message (3da977c) @tomasklaen- Clicking chapter title in top bar wouldn't open chapter menu (e184cfe) @tomasklaen
- Active items in previewed submenus not highlighted properly (fdc16ad) @tomasklaen
mbtn_back
not working in menus (4bdcfab) @tomasklaenleft/right
arrow navigation not working in directory menus (c59517f) @tomasklaen- UI sometimes staying visible when cursor left the window (be52ba2) @tomasklaen
Documentation
- Clarify paste-to-playlist behavior when idle (c79d201) @tomasklaen
Full Changelog: 5.6.0...5.6.1
5.6.0
Features
- New commands
paste
,paste-to-open
,paste-to-playlist
,copy-to-clipboard
(66cf568) @tomasklaen ctrl+c
to copy a path of selected item inplaylist
oropen-file
menus (ca3263f) @tomasklaenpaste-to-playlist
now also opens the file if mpv is idle (a9938c2) @tomasklaen
Fixes
- Menus not reliably reserving space for footnotes (3ee3d47) @tomasklaen
- Menu eating search related keybinds when
menu.search_style
set todisabled
(a2ea5ac) @tomasklaen - Getting unsuported formats from clipboard returning unhelpful error message (6ef8af5) @tomasklaen
duration
changes not triggering updates (dc7c822) @tomasklaen
Refactors
- Normalized interfacing with ziggy (c00fbfa) @tomasklaen
Full Changelog: 5.5.0...5.6.0
5.5.0
Features
- Due to demand, playlist menu up/down buttons added back in (6b256b2) @tomasklaen
- Simplify external track titles (#975) (904d23e) @dyphire
- API: Added
EventActivate.is_pointer
property (ef1bee4) @tomasklaen
Fixes
- Can't click action buttons outside menu (6de09a6) @tomasklaen
- Key navigation in menu feeling slow b/c bound to keyup instead of keydown (3733f71) @tomasklaen
timeline_step=0
not canceling timeline stepping (961c6e2) @tomasklaen- Reverted left/right keys back to navigating submenus (6e06fa2) @tomasklaen
- Cursor movement not deselecting menu item actions (00c1588) @tomasklaen
- Menu item button labels too distracting, moved to footnote (806095d) @tomasklaen
- Menu not selecting item under pointer after content updates (0d2705b) @tomasklaen
- Prevent menu indicator flickering when moving cursor between items (bc1d326) @tomasklaen
- Idle cursor selecting menu actions when navigating with keyboard (3621e0b) @tomasklaen
- Fix active menu item indicator flickering during vertical cursor movement above actions (05af465) @tomasklaen
- Track menu hints sometimes concatenating empty strings (da83afd) @tomasklaen
- Don't activate items in non-callback mode menus when modifiers or actions are used (fac1d98) @tomasklaen
- Limit menu width to reserve some space for external buttons (f51769e) @tomasklaen
- Track menu crash when no file is open (a59922d) @tomasklaen
- Updates Chinese translation (#975) (904d23e) @dyphire
- API:
on_close
&keep_open
not working as documented (e4e8f07) @tomasklaen
Full Changelog: 5.4.0...5.5.0
5.4.0
Features
- Various menu actions adjustments (3215c13) @tomasklaen
- Added reload & remove actions and shortcuts to external tracks in track menus (#966) (bb83e40) @dyphire
- Prevent cursor movement from deselecting menu items (5790169) @tomasklaen
- [breaking] API:
MenuBase.actions
renamed toMenuBase.item_actions
(57fd8c3) @tomasklaen - API: Added
MenuBase.item_actions_place
andItem.actions_place
properties (a77e11f) @tomasklaen - API: Support for F1-F12 keys to listen for in callback mode menus (07a1563) @tomasklaen
Fixes
- Forwarding keybinds sometimes crashing (c183c37) @tomasklaen
- Incorrect notification messages after loading file as a new track (431bb5e) @tomasklaen
- Menu scrollbar rendering above action labels (671223c) @tomasklaen
- Timeline not handling
--rebase-start-time=no
(#969) (8fb357f) @po5 - Updated chinese translation (#966) (bb83e40) @dyphire
Tweaks
- Added
alt+up
shortcut info to open file menus footnote (16fc7ae) @tomasklaen
Refactors
- Add
on_key
tocreate_self_updating_menu_opener()
options (5011139) @tomasklaen - Track menu simplifications and some other tweaks (f6159ad) @tomasklaen
Full Changelog: 5.3.1...5.4.0
5.3.1
Fixes
- Playlist menu delete item shortcuts not working/crashing (c55e9ff) @tomasklaen
- Playlist move up button not working if target index is
1
(641aa43) @tomasklaen - Menu item title sometimes overlapping actions (90dd597) @tomasklaen
Full Changelog: 5.3.0...5.3.1
5.3.0
Features
- Support aligning window controls to the left (#894) (7f03046) @christoph-heinrich
keybinds
menu now also includes keyless or overwritten bindings frominput.conf
(e15523a) @tomasklaen- Added additional selected menu item indicator (43dcb51) @tomasklaen
- Show playlist files in the file navigation menu (#927) (3bf774b) @christoph-heinrich
- Use loadlist when opening playlists (#929) (c660db0) @christoph-heinrich
- Window controls now respect
opacity.controls
config (a0a608d) @tomasklaen top_bar_flash_on
option now supportschapter
as an event (5f70143) @tomasklaen- Display ignored bindings in
keybinds
menu (e975429) @tomasklaen default_directory
option now supports{drives}
on windows (61c259b) @tomasklaen- Eliminated the need for
ctrl+enter
to submit searches (3b7443f) @tomasklaen timeline_step
option now accepts!
suffix to enable exact seeks (003f9ee) @tomasklaen- Adjusted menu modifier behavior and added buttons where appropriate (c139963) @tomasklaen
- Added a button to open subtitles search result's download page in browser (17ddf24) @tomasklaen
- Disable tracks in track menus by toggling off active track (fbd734d) @tomasklaen
alt+up
in file browsing menus now opens parent directory (47cccb4) @tomasklaen- Subtitle menu now supports selecting secondary subtitles (7150ceb) @tomasklaen
- Allow pasting paths or URLs into file, playlist, and track menus (cb0f6d2) @tomasklaen
- API: Menu lifecycle and actions API (#936) (7f054a4) @tomasklaen
- API:
set-button
API for scripts to add custom control bar buttons (#938) (fe0d394) @tomasklaen - API: Added
alt
,ctrl
, andshift
booleans toMenuEventActivate
event (cd08350) @tomasklaen - API: Added
MenuBase.footnote
property (6f1df1d) @tomasklaen
Fixes
- Disabling chapter indicators now disables chapter tooltips as well (2370cb4) @tomasklaen
- Menu crash after
ctrl+backspace
with only one character in input field (35699d3) @tomasklaen - Refine text_width check (#869) (3675ed4) @christoph-heinrich
- Redraw when toggling the title in the top bar (#870) (48e0100) @christoph-heinrich
- Human time formats not accounting for speed < 1 (#871) (db985f1) @christoph-heinrich
- Remaining chapter time in top bar wasn't accounting for speed (581adf4) @tomasklaen
- Chapter remaining time scaled by speed even when
destination_time
is set totime-remaining
(6fa34c3) @tomasklaen - Cycle button controls not working properly on floating point values like
speed
(e6a5fd9) @tomasklaen - Scale cache duration with speed again (#899) (a713633) @christoph-heinrich
- Flash out animations always starting from max instead of current visibility value (4c64fe9) @tomasklaen
- Display proper capitalization and selected index in track menus (#902) (8936009) @dyphire
keybinds
menu list not skipping duplicate, disabled, andignore
keybinds (d4b1343) @tomasklaenkeybinds
menu not listingmpv-menu-plugin
keyless syntax commands (2940352) @tomasklaen- Buffered_time_threshold check (#907) (b01c6df) @christoph-heinrich
- Menu item separators were being ignored (08df4aa) @tomasklaen
timeline_step
wasn't being disabled when set to0
(1c38d4d) @tomasklaen- Use primary_click for chapter indicators (#932) (9fa7220) @christoph-heinrich
- Always read romanizations for configured languages (#948) (8346db4) @dyphire
- Cursor events not exposing modifiers (06f6eb7) @tomasklaen
- Localization fixes and updated simplified chinese translation (#956) (7964827) @dyphire
Tweaks
- Same spacing between all top bar elements (#893) (56b62bb) @christoph-heinrich
- Platform agnostic window controls design (0e60272) @tomasklaen
- Display actions outside menu when possible (1fc68f2) @tomasklaen
- Display menu actions outside only if there's item hint or icon (bfd440d) @tomasklaen
- Make footnotes more discrete (2fbb00f) @tomasklaen
Documentation
- Moved API documentation to wiki
- Added build instructions (2709a3a) @tomasklaen
Refactors
- Use demuxer-cache-state/cache-duration property (#889) (00737e1) @christoph-heinrich
Full Changelog: 5.2.0...5.3.0
5.2.0
Features
- Support overriding ziggy path with
MPV_UOSC_ZIGGY
environment variable (#814) (9a02a60) @nicoo - More accurate file sorting on windows (#798) (d01eb25) @dyphire
- Romanization support for search characters (#797) (b36cefe) @dyphire
- [breaking]
refine
option to improve features at a cost of some performance (#816) (0d7825a) @tomasklaen - Added
flash-progress
command (efd6a55) @tomasklaen - Add items to playlist from files menu when holding ctrl (#822) (0f970b5) @christoph-heinrich
- Remaining chapter time in topbar (dc73278) @tomasklaen
Fixes
- Locale parsing related crash on some mpv builds (#794) (210a121) @christoph-heinrich
- Make maximize workaround windows specific (#795) (96b57b2) @christoph-heinrich
show-in-directory
issue opening paths containing a comma (win) (#800) (78061a7) @Sneakpeakcsstoggle-ui
not hiding elements whenborder=yes
(bc9d20c) @tomasklaen- Couldn't disable buffering_indicator due to incorrect ID (#809) (79a77b1) @christoph-heinrich
- No window border on new mpv windows versions (cef5694) @tomasklaen
- Timestamp zero representation caching (#836) (63aba05) @christoph-heinrich
- Incorrect top bar state after re-enabling (2eccc1b) @tomasklaen
- Don't scroll to top on menu update during search (#841) (861f121) @christoph-heinrich
- Click threshold not working when any clickable element is visible (#831) (4a4d056) @tomasklaen
keybindings
anddownload-subtitles
menus were not usingpalette
search style (777ed2b) @tomasklaen
Full Changelog: 5.1.1...5.2.0
5.1.1
No changes have been made, only removed upx compression from binaries to silence false positive antivirus detection.
There are still some obscure antiviruses that find our binaries suspicious due to the way go packages them. I think the only way to solve that would be to sign them (not 100% sure though), but I'm not paying to work on free stuff. If anyone is bothered by this, and would be willing to donate a code signing certificate, let me know.
If you want to check the binaries are safe, the code is in src/ziggy
, and you can build them yourself by running tools/build ziggy
and compare.
5.1.0
Highlights
Subtitle downloader
Available under the Download option in subtitles
menu or with a direct download-subtitles
command is a new menu for downloading subtitles for current file.
The service we use is Open Subtitles, which has a 5 downloads per day limit for unauthenticated IPs. Authentication bumps this to 10, which is not much of a difference and adds a lot of hassles, so it's not implemented at this time. If you need to download more than 5 subs per day, you should probably just deal with it in the browser beforehand so you don't have to fiddle with the menu every time a new file starts.
Implementation will hash the current file and send the hash to Open Subtitles so you can search even with empty query and if your file is known, you'll get subtitles exactly for it.
Subtitles will be downloaded to the same directory as currently opened file, or ~~/subtitles
(folder in your mpv config directory) if playing a URL.
Default styles tweak
Default border radius and menu padding was bumped a bit to better fit/match styles of environments uosc usually finds itself in (windows, gnome, macos,...). To revert it back where it was before, set this in your uosc.conf
:
menu_padding=2
border_radius=2
Release size increase clarification
The release size is now ~6 MB. This is because we are limited in what we can do in mpv's lua scripting environment, and to work around this, we now include a small binary tool (one for each platform), that we call to handle stuff we can't do in lua. Currently this means searching & downloading subtitles, accessing clipboard data, and in future might improve self updating, and potentially other things.
Other scripts usually choose to go the route of adding python scripts and requiring users to install the runtime. I don't like this as I want the installation process to be as seamless and as painless as possible. I also don't want to contribute to potential python version mismatch issues, because one tool depends on 2.7, other latest 3, and this one 3.9 only and no newer (real world scenario that happened to me), now have fun reconciling this. Depending on external runtimes can be a mess, and shipping a stable, tiny, and fast binary that users don't even have to know about is imo more preferable than having unstable external dependencies and additional installation steps that force everyone to install and manage hundreds of megabytes big runtimes in global PATH.
And the reason we don't split the release into uosc-{platform}.zip
that only includes binaries for the concerned platform is that then you wouldn't be able to sync your mpv config between platforms and everything just work. And the binaries are small, this is not a problem.
Changelog
Features
- Added
play-pause
control shorthand (1f26c3e) @tomasklaen - Added ukrainian translation (#728) (4123cbe) @Helltar
- Added
menu_padding
option (e5a1603) @tomasklaen - Replaced menu
palette
option withsearch_style
(13eb2dc) @tomasklaen - Added menu for downloading subtitles from opensubtitles.com (#756) (542f0db) @tomasklaen
- Control gaps now shrink when not enough space (b8280b0) @tomasklaen
- Support for paste in menus (81f402a) @tomasklaen
- Allow pasting to start search (37675d0) @tomasklaen
- Added
controls
to configurableopacity
properties (bd068c9) @tomasklaen - Added
playlist_position
to configurableopacity
properties (9c087ef) @tomasklaen
Fixes
- Font scaling in timeline (5e757b2) @tomasklaen
- Update simplified chinese translation (#725) (066a6dc) @dyphire
- Update german translation (#727) (192c3ef) @christoph-heinrich
delete-file-prev
not working as intended (#726) (d49f385) @christoph-heinrich- Timeline chapter indicators not scaling appropriately (6e19bee) @tomasklaen
- Update german translation (#731) (48f09ff) @christoph-heinrich
- Update simplified chinese translation (#734) (66f035b) @dyphire
- Runtime updates for progress option (#739) (ed6dcbe) @christoph-heinrich
- Menus crash when
ctrl+backspace
pressed while input is empty (55789e1) @tomasklaen - Add padding to menu width calculation (#755) (28878e4) @christoph-heinrich
- Scale timeline timestaps border and margin (#751) (4f091d3) @christoph-heinrich
- Allow a volume border of 0 (#749) (bf7f970) @christoph-heinrich
- Timestamp shifting due to non monospace font (#752) (6cbf073) @christoph-heinrich
manual
pause indicator initializes asstatic
when launched with--pause
(16f61eb) @tomasklaen- Update german translation (#747) (0a1b429) @christoph-heinrich
- Update simplified chinese translation (#748) (d2885dd) @dyphire
- Keep selected index on menu update during search (#759) (f1c41a5) @christoph-heinrich
- Dynamic control shrinking would not subtract spacing (76b5fbe) @tomasklaen
- Menu separators and scrollbar not scaling properly (4cdd6c5) @tomasklaen
- Loading same track twice would add a duplicate entry (de85bde) @tomasklaen
- Autoload looping a file when only a single file in directory (c982622) @tomasklaen
- Correctly update proximities on mouse enter and record position (#772) (26d71a8) @christoph-heinrich
- Only autohide UI when the cursor autohides (#771) (c3e5bb2) @christoph-heinrich
- Menu config with mpv.net (#776) (ed42152) @christoph-heinrich
- Controls couldn't cycle some mpv properties (0531659) @tomasklaen
- Don't cause a fling in update_dimensions() (#778) (8df5ea6) @christoph-heinrich
- Scroll parent menus when opening menu by id (#780) (38e68e1) @christoph-heinrich
Documentation
- Add faq (c18b374) @tomasklaen
- Clarify how to control autohide timing (650118e) @tomasklaen
Miscellaneous
- Restructured repo to eliminate
dist
directory (c173641) @tomasklaen
Performance
- Speed up ziggy initialization by using less aggressive binary compression (a8f040a) @tomasklaen
Refactor
- No dynamic localization calls (36f8074) @tomasklaen
- More no dynamic localization calls (7c5d4f1) @tomasklaen
- No dynamic localization calls (6dc4c30) @tomasklaen
- Remove check before adding 0.5 to cursor position (#770) (a7ee37c) @christoph-heinrich
Build
- Added building, packaging, and localization tools (#744) (656ddcf) @tomasklaen
- Fixed unix build script syntax (#758) (16e8ca3) @christoph-heinrich
- Fix ziggy build on unix (88e15ca) @tomasklaen
- Fixed packaging tool reporting total instead of compressed size (8d2dfc4) @tomasklaen
Tweak
- Menu separators restyled a bit (96685b5) @tomasklaen
- Bumped default
border_radius
from2
to4
(18e81c2) @tomasklaen - Tweaked subtitle downloader messages (b862387) @tomasklaen
- Update scroll position when moving items like when navigating (#763) (448d408) @christoph-heinrich
- Bumped timeline cursor line opacity (d804477) @tomasklaen
- Always scroll to selected index on menu open (#779) (a9c83bb) @christoph-heinrich
- Chapter indicator sizing (6d329f9) @tomasklaen
Full Changelog: 5.0.0...5.1.0