Use some useful default chapter_ranges
This commit is contained in:
57
CHANGELOG.md
57
CHANGELOG.md
@@ -1,4 +1,41 @@
|
||||
## 1.4.0
|
||||
# 2.0.0 - 2020-Apr-12
|
||||
|
||||
Substantial rewrite with tons of new features and improvements! A lot of options have changed or disappeared, you need to reconfigure your config file.
|
||||
|
||||
Changed:
|
||||
- **Progressbar** and **Seekbar** have been merged into one element **Timeline**.
|
||||
Originally I wanted them to be separate because making them the same thing means I have to slide it in instead of fading it in, which I felt would make it a movable target and harder to use. But after actually testing it I've realized that is not the case at all. This change simplifies the code, options, and I'd even say it's even nicer to use than before.
|
||||
|
||||
New:
|
||||
- Volume slider.
|
||||
- Implemented menu rendering, which in turn allowed me to add a lot of new features on top of it:
|
||||
- Context menu - customizable context menu with nesting support which you can fill with whatever you want! Read the documentation to find out how.
|
||||
- External subtitles loader.
|
||||
- Subtitle/audio/video track selector.
|
||||
- Playlist navigation.
|
||||
- Directory navigation.
|
||||
- A lot of new useful commands added. Rad the documentation to see exactly what they do. Here is a quick list of all currently available commands to bind your keys to:
|
||||
- `script-binding uosc/toggle-timeline`
|
||||
- `script-binding uosc/context-menu`
|
||||
- `script-binding uosc/load-subtitles`
|
||||
- `script-binding uosc/select-subtitles`
|
||||
- `script-binding uosc/select-audio`
|
||||
- `script-binding uosc/select-video`
|
||||
- `script-binding uosc/navigate-playlist`
|
||||
- `script-binding uosc/show-in-directory`
|
||||
- `script-binding uosc/navigate-directory`
|
||||
- `script-binding uosc/next-file`
|
||||
- `script-binding uosc/prev-file`
|
||||
- `script-binding uosc/first-file`
|
||||
- `script-binding uosc/last-file`
|
||||
- `script-binding uosc/delete-file-next`
|
||||
- `script-binding uosc/delete-file-quit`
|
||||
- Option to briefly flash elements for set amount of time when the value they represent changes externally.
|
||||
- Option to pause video on short clicks, allowing you to use left mouse button for both video dragging and pausing.
|
||||
|
||||
Also tons of fixes and tweaks.
|
||||
|
||||
## 1.4.0 - 2020-Apr-04
|
||||
|
||||
Changed:
|
||||
- Rewritten `chapter_ranges` feature to support more powerful range definitions.
|
||||
@@ -15,7 +52,7 @@ Changed:
|
||||
Fixed:
|
||||
- Some minor bug fixes.
|
||||
|
||||
## 1.3.0
|
||||
## 1.3.0 - 2020-Apr-03
|
||||
|
||||
New:
|
||||
- Added `chapter_ranges` feature to display chapters that are intended to be ranges as bars instead of dots/lines. Read the docs for more details on how to use them.
|
||||
@@ -24,13 +61,13 @@ New:
|
||||
chapter_ranges=Sponsor start-Sponsor end:968638:0.2
|
||||
```
|
||||
|
||||
## 1.2.0
|
||||
## 1.2.0 - 2020-Apr-02
|
||||
|
||||
New:
|
||||
- Added `toggleseekbar` script binding.
|
||||
- Added `autohide` option to control UI autohide when cursor autohides. Off by default.
|
||||
|
||||
## 1.1.0
|
||||
## 1.1.0 - 2020-Apr-02
|
||||
|
||||
New:
|
||||
- Proximity UI elements now hide on `cursor-autohide` (mpv's cursor autohide time option).
|
||||
@@ -59,15 +96,15 @@ Changed:
|
||||
Fixed:
|
||||
- Default examples as well as `uosc.conf` file were not working because comments were on the same line as option declarations, which apparently mpv can't parse. So that's fixed now.
|
||||
|
||||
### 1.0.5
|
||||
### 1.0.5 - 2020-Mar-07
|
||||
|
||||
Ensures time text seen above the cursor during seeking doesn't overflow the screen. This is a naive implementation that is only guessing the width of the text, since there is no other API to use for this.
|
||||
|
||||
### 1.0.4
|
||||
### 1.0.4 - 2020-Mar-04
|
||||
|
||||
Tweaked styling of window controls to be more visible against pure black backgrounds.
|
||||
|
||||
### 1.0.3
|
||||
### 1.0.3 - 2020-Mar-04
|
||||
|
||||
Simplified options and made them more explicit.
|
||||
|
||||
@@ -92,14 +129,14 @@ seekbar_size=40 # seekbar size in pixels, 0 to disable
|
||||
seekbar_size_fullscreen=40 # same as ^ but when in fullscreen
|
||||
```
|
||||
|
||||
### 1.0.2
|
||||
### 1.0.2 - 2020-Mar-03
|
||||
|
||||
Fixed long window titles wrapping all over the place instead of being clipped by control buttons.
|
||||
|
||||
### 1.0.1
|
||||
### 1.0.1 - 2020-Mar-03
|
||||
|
||||
**uosc** now won't render when default osc is not disabled (`osc=no`).
|
||||
|
||||
# 1.0.0
|
||||
# 1.0.0 - 2020-Mar-02
|
||||
|
||||
Initial release.
|
||||
|
@@ -148,7 +148,7 @@ font_height_to_letter_width_ratio = 0.5
|
||||
# ```
|
||||
# chapter_ranges=op<ffc500:0.5>.*,ed|ending<ffc500:0.5>.*|{eof}
|
||||
# ```
|
||||
chapter_ranges=
|
||||
chapter_ranges=op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end
|
||||
```
|
||||
|
||||
## Keybindings
|
||||
|
@@ -116,4 +116,4 @@ font_height_to_letter_width_ratio = 0.5
|
||||
# ```
|
||||
# chapter_ranges=op<ffc500:0.5>.*,ed|ending<ffc500:0.5>.*|{eof}
|
||||
# ```
|
||||
chapter_ranges=
|
||||
chapter_ranges=op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end
|
||||
|
8
uosc.lua
8
uosc.lua
@@ -1,6 +1,6 @@
|
||||
--[[
|
||||
|
||||
uosc 1.4.0 | https://github.com/darsain/uosc
|
||||
uosc 2.0.0 - 2020-Apr-12 | https://github.com/darsain/uosc
|
||||
|
||||
Minimalistic cursor proximity based UI for MPV player.
|
||||
|
||||
@@ -59,7 +59,7 @@ volume_snap_to=1
|
||||
# for this amount of time, set to 0 to disable
|
||||
volume_flash_duration=300
|
||||
|
||||
# controls all menus such as context menu, subtitle loader/selector, ...
|
||||
# menu
|
||||
menu_item_height=40
|
||||
menu_item_height_fullscreen=50
|
||||
menu_opacity=0.9
|
||||
@@ -134,7 +134,7 @@ font_height_to_letter_width_ratio = 0.5
|
||||
# ```
|
||||
# chapter_ranges=op<ffc500:0.5>.*,ed|ending<ffc500:0.5>.*|{eof}
|
||||
# ```
|
||||
chapter_ranges=
|
||||
chapter_ranges=op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end
|
||||
```
|
||||
|
||||
Available keybindings (place into `input.conf`):
|
||||
@@ -209,7 +209,7 @@ local options = {
|
||||
media_types = '3gp,avi,bmp,flac,flv,gif,h264,h265,jpeg,jpg,m4a,m4v,mid,midi,mkv,mov,mp3,mp4,mp4a,mp4v,mpeg,mpg,oga,ogg,ogm,ogv,opus,png,rmvb,svg,tif,tiff,wav,weba,webm,webp,wma,wmv',
|
||||
subtitle_types = 'aqt,gsub,jss,sub,ttxt,pjs,psb,rt,smi,slt,ssf,srt,ssa,ass,usf,idx,vt',
|
||||
font_height_to_letter_width_ratio = 0.5,
|
||||
chapter_ranges = '',
|
||||
chapter_ranges = 'op<ffc500:.5>.*,ed|ending<ffc500:.5>.*|{eof},sponsor start<0000ff:.5>sponsor end',
|
||||
}
|
||||
opt.read_options(options, 'uosc')
|
||||
local config = {
|
||||
|
Reference in New Issue
Block a user