Replies: 30 comments 192 replies
-
右侧的空白这么宽是不是应该缩减一点?我比较了一下,明显比章节的子菜单右侧的空白多 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
你好,我想问问这个右键菜单浅色深色问题。如果我的系统是浅色,我可不可以把这个菜单设置成深色(我觉得深色好看点)?具体应该修改哪里呢谢谢🙏 |
Beta Was this translation helpful? Give feedback.
-
用起来感觉咋比uosc的延迟还高,子菜单弹出来的时间感觉更长 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
菜单还是没有uosc功能丰富,uosc支持自定义单独的菜单,比如播放列表,我们最常用的还是希望能够定义一个快捷键直接调取播放列表。 |
Beta Was this translation helpful? Give feedback.
-
增加了菜单示例配置的中文版本,可直接使用: https://gist.github.com/tsl0922/8989aa32994b0448a2652ee260348a35#file-input_zh-conf 结合 gist 评论中的其它脚本,还可以添加打开子菜单。 |
Beta Was this translation helpful? Give feedback.
-
文件对话框接口:tsl0922/mpv-menu-plugin#38 ,接口形式可能还有待商榷,暂时没想到更好的。 |
Beta Was this translation helpful? Give feedback.
-
已合并。使用例子:https://github.com/tsl0922/mpv-menu-plugin/wiki/File-Dialog ,如果需求简单可以直接使用这个脚本。 |
Beta Was this translation helpful? Give feedback.
-
我看到你把大部分文档搬到Wiki了,我建议提交信息里做一下版本同步,全是update也一下子看不出来哪个是对应release的文档 |
Beta Was this translation helpful? Give feedback.
-
与主楼无关 有没有兴趣把下面两个功能做成c-plugin |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
我不确定是不是我记错了还是,有的程序菜单最底下有时候会出现“下三角”的箭头,用于条目过多自动压缩,光标移动到那个位置就会自动滚动,是不是有这个接口? |
Beta Was this translation helpful? Give feedback.
-
2.2.0 版本 已发布,新增了系统原生文件对话框和剪贴板支持,并且自带了一个可开箱即用的 dialog.lua 脚本,示例配置 也已同步更新。 |
Beta Was this translation helpful? Give feedback.
-
新的更改菜单条目状态语法:tsl0922/mpv-menu-plugin#44
除此之外,应该还可以这么用:如果一个脚本想更新某个菜单条目状态,可以直接把值写入一个 |
Beta Was this translation helpful? Give feedback.
-
2.3.0 版本已发布。 主要更新:
另外,示例配置 也已同步更新为新的 state 语法。 |
Beta Was this translation helpful? Give feedback.
-
有没有可能实现部分菜单点击完不自动关闭,有些要精细调整的操作例如 |
Beta Was this translation helpful? Give feedback.
-
选中样式可以考虑把圆圈加进来,标准接口应该支持, |
Beta Was this translation helpful? Give feedback.
-
@tsl0922 |
Beta Was this translation helpful? Give feedback.
-
你们有出现卡死的情况吗,最新的2.4.0测试,菜单关闭的时候,有小概率导致mpv无响应,只能任务管理器杀掉, |
Beta Was this translation helpful? Give feedback.
-
在做一个类似 sublime-text 那样的命令面板脚本,效果已经出来,也基本能用了。目前是基于 extended-menu.lua 修改,后面可能会完全重写。自己从头画这些组件是真的麻烦啊,太多地方要考虑了,比如超出背景的地方现在是用 clip 裁剪了,但是可能会有字符被截了一半。 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
监听属性变化自动刷新菜单有点问题,自动刷新时如果展开了二级菜单,菜单会消失。 如果没展开二级菜单,会正常刷新,能看到菜单消失又立即出现。 |
Beta Was this translation helpful? Give feedback.
-
大佬你好,提个小建议:我个人感觉是不是外挂字幕或音频后直接切换到外挂文件比较好,因为逻辑上既然加载外挂大多数的目的就是要播放这条外挂轨道。 |
Beta Was this translation helpful? Give feedback.
-
mpv-player/mpv@3c1e983 和你仓库的实现比,功能缺失了多少?(比如 dyn_menu 脚本里的功能 |
Beta Was this translation helpful? Give feedback.
-
@dyphire 我参考这个脚本 mpv-player/mpv#7563 (comment) 写了一个类似的右键菜单修复脚本,你试一下效果怎样,我这里基本上可以同时解决那个 issue 和右键菜单触发点击这 2 个问题,准确率还是挺高的。 click-fix.lua local mp = require 'mp'
local click_threshold = 0.2
local is_menu_shown = false
local left_click = coroutine.wrap(function()
while true do
local time = mp.get_time()
coroutine.yield()
if (mp.get_time() - time) < click_threshold and not is_menu_shown then
mp.commandv('cycle', 'pause')
end
is_menu_shown = false
coroutine.yield()
end
end)
local right_click = coroutine.wrap(function()
while true do
mp.commandv('context-menu')
coroutine.yield()
is_menu_shown = true
coroutine.yield()
end
end)
mp.add_key_binding(nil, 'left-click', left_click, {complex = true})
mp.add_key_binding(nil, 'right-click', right_click, {complex = true}) input.conf
|
Beta Was this translation helpful? Give feedback.
-
上游即将要添加剪贴板支持:mpv-player/mpv#13837 |
Beta Was this translation helpful? Give feedback.
-
请问你们用新版,输入法会自动关闭吗? 为什么我更新0.38,输入法不自动关闭啊,快捷键都成了文字编码 |
Beta Was this translation helpful? Give feedback.
-
你好我是小白一枚,下载了MPV_lazy整包,我想把你这个菜单插件替换掉MPV_lazy的菜单插件,可以操作吗? |
Beta Was this translation helpful? Give feedback.
-
内置菜单更新了个小功能 mpv-player/mpv@861908c 可以从右键标题栏菜单访问,好像实用性不强,无边框模式没标题栏, |
Beta Was this translation helpful? Give feedback.
-
前情提要:#60 (comment)
上面帖子评论里的回复太长了,还是单开一贴吧。经过各位大佬的反馈改进,现在应该大部分常用菜单需求都支持了。
项目地址:https://github.com/tsl0922/mpv-menu-plugin
使用方法我就不贴了,这里给个能用的测试配置:https://gist.github.com/tsl0922/8989aa32994b0448a2652ee260348a35
目前最新代码已经支持通过 lua 动态修改菜单了,项目自带了一个
dyn_menu.lua
实现了常用的轨道、章节之类菜单支持。(可在 dev 下载编译好的文件,还没正式发布 Release,测试一段时间没什么大问题就打 tag)(2.0.0
版本已发布)Beta Was this translation helpful? Give feedback.
All reactions