strip more
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
-- https://github.com/Seme4eg/mpv-scripts/blob/master/script-modules/extended-menu.lua
|
||||
|
||||
local mp = require 'mp'
|
||||
local utils = require 'mp.utils'
|
||||
local assdraw = require 'mp.assdraw'
|
||||
@@ -449,7 +451,7 @@ end
|
||||
I was too lazy to list all modifications i've done to the script, but if u
|
||||
rly need to see those - do diff with the original code
|
||||
]]
|
||||
--
|
||||
--
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- START ORIGINAL MPV CODE --
|
||||
@@ -830,58 +832,58 @@ end
|
||||
-- bindings and readline bindings.
|
||||
function em:get_bindings()
|
||||
local bindings = {
|
||||
{ 'ctrl+[', function() self:set_active(false) end },
|
||||
{ 'ctrl+g', function() self:set_active(false) end },
|
||||
{ 'esc', function() self:set_active(false) end },
|
||||
{ 'enter', function() self:handle_enter() end },
|
||||
{ 'kp_enter', function() self:handle_enter() end },
|
||||
{ 'ctrl+m', function() self:handle_enter() end },
|
||||
{ 'bs', function() self:handle_backspace() end },
|
||||
{ 'shift+bs', function() self:handle_backspace() end },
|
||||
{ 'ctrl+h', function() self:handle_backspace() end },
|
||||
{ 'del', function() self:handle_del() end },
|
||||
{ 'shift+del', function() self:handle_del() end },
|
||||
{ 'ins', function() self:handle_ins() end },
|
||||
{ 'shift+ins', function() self:paste(false) end },
|
||||
{ 'mbtn_mid', function() self:paste(false) end },
|
||||
{ 'left', function() self:prev_char() end },
|
||||
{ 'ctrl+b', function() self:prev_char() end },
|
||||
{ 'right', function() self:next_char() end },
|
||||
{ 'ctrl+f', function() self:next_char() end },
|
||||
{ 'ctrl+k', function() self:change_selected_index(-1) end },
|
||||
{ 'ctrl+p', function() self:change_selected_index(-1) end },
|
||||
{ 'ctrl+j', function() self:change_selected_index(1) end },
|
||||
{ 'ctrl+n', function() self:change_selected_index(1) end },
|
||||
{ 'up', function() self:move_history(-1) end },
|
||||
{ 'alt+p', function() self:move_history(-1) end },
|
||||
{ 'wheel_up', function() self:move_history(-1) end },
|
||||
{ 'down', function() self:move_history(1) end },
|
||||
{ 'alt+n', function() self:move_history(1) end },
|
||||
{ 'wheel_down', function() self:move_history(1) end },
|
||||
{ 'wheel_left', function() end },
|
||||
{ 'wheel_right', function() end },
|
||||
{ 'ctrl+left', function() self:prev_word() end },
|
||||
{ 'alt+b', function() self:prev_word() end },
|
||||
{ 'ctrl+right', function() self:next_word() end },
|
||||
{ 'alt+f', function() self:next_word() end },
|
||||
{ 'ctrl+a', function() self:go_home() end },
|
||||
{ 'home', function() self:go_home() end },
|
||||
{ 'ctrl+e', function() self:go_end() end },
|
||||
{ 'end', function() self:go_end() end },
|
||||
{ 'ctrl+shift+f',function() self:handle_pgdown() end },
|
||||
{ 'ctrl+shift+b',function() self:handle_pgup() end },
|
||||
{ 'pgdwn', function() self:handle_pgdown() end },
|
||||
{ 'pgup', function() self:handle_pgup() end },
|
||||
{ 'ctrl+c', function() self:clear() end },
|
||||
{ 'ctrl+d', function() self:handle_del() end },
|
||||
{ 'ctrl+u', function() self:del_to_start() end },
|
||||
{ 'ctrl+v', function() self:paste(true) end },
|
||||
{ 'meta+v', function() self:paste(true) end },
|
||||
{ 'ctrl+bs', function() self:del_word() end },
|
||||
{ 'ctrl+w', function() self:del_word() end },
|
||||
{ 'ctrl+del', function() self:del_next_word() end },
|
||||
{ 'alt+d', function() self:del_next_word() end },
|
||||
{ 'kp_dec', function() self:handle_char_input('.') end },
|
||||
{ 'ctrl+[', function() self:set_active(false) end },
|
||||
{ 'ctrl+g', function() self:set_active(false) end },
|
||||
{ 'esc', function() self:set_active(false) end },
|
||||
{ 'enter', function() self:handle_enter() end },
|
||||
{ 'kp_enter', function() self:handle_enter() end },
|
||||
{ 'ctrl+m', function() self:handle_enter() end },
|
||||
{ 'bs', function() self:handle_backspace() end },
|
||||
{ 'shift+bs', function() self:handle_backspace() end },
|
||||
{ 'ctrl+h', function() self:handle_backspace() end },
|
||||
{ 'del', function() self:handle_del() end },
|
||||
{ 'shift+del', function() self:handle_del() end },
|
||||
{ 'ins', function() self:handle_ins() end },
|
||||
{ 'shift+ins', function() self:paste(false) end },
|
||||
{ 'mbtn_mid', function() self:paste(false) end },
|
||||
{ 'left', function() self:prev_char() end },
|
||||
{ 'ctrl+b', function() self:prev_char() end },
|
||||
{ 'right', function() self:next_char() end },
|
||||
{ 'ctrl+f', function() self:next_char() end },
|
||||
{ 'ctrl+k', function() self:change_selected_index(-1) end },
|
||||
{ 'ctrl+p', function() self:change_selected_index(-1) end },
|
||||
{ 'ctrl+j', function() self:change_selected_index(1) end },
|
||||
{ 'ctrl+n', function() self:change_selected_index(1) end },
|
||||
{ 'up', function() self:move_history(-1) end },
|
||||
{ 'alt+p', function() self:move_history(-1) end },
|
||||
{ 'wheel_up', function() self:move_history(-1) end },
|
||||
{ 'down', function() self:move_history(1) end },
|
||||
{ 'alt+n', function() self:move_history(1) end },
|
||||
{ 'wheel_down', function() self:move_history(1) end },
|
||||
{ 'wheel_left', function() end },
|
||||
{ 'wheel_right', function() end },
|
||||
{ 'ctrl+left', function() self:prev_word() end },
|
||||
{ 'alt+b', function() self:prev_word() end },
|
||||
{ 'ctrl+right', function() self:next_word() end },
|
||||
{ 'alt+f', function() self:next_word() end },
|
||||
{ 'ctrl+a', function() self:go_home() end },
|
||||
{ 'home', function() self:go_home() end },
|
||||
{ 'ctrl+e', function() self:go_end() end },
|
||||
{ 'end', function() self:go_end() end },
|
||||
{ 'ctrl+shift+f', function() self:handle_pgdown() end },
|
||||
{ 'ctrl+shift+b', function() self:handle_pgup() end },
|
||||
{ 'pgdwn', function() self:handle_pgdown() end },
|
||||
{ 'pgup', function() self:handle_pgup() end },
|
||||
{ 'ctrl+c', function() self:clear() end },
|
||||
{ 'ctrl+d', function() self:handle_del() end },
|
||||
{ 'ctrl+u', function() self:del_to_start() end },
|
||||
{ 'ctrl+v', function() self:paste(true) end },
|
||||
{ 'meta+v', function() self:paste(true) end },
|
||||
{ 'ctrl+bs', function() self:del_word() end },
|
||||
{ 'ctrl+w', function() self:del_word() end },
|
||||
{ 'ctrl+del', function() self:del_next_word() end },
|
||||
{ 'alt+d', function() self:del_next_word() end },
|
||||
{ 'kp_dec', function() self:handle_char_input('.') end },
|
||||
}
|
||||
|
||||
for i = 0, 9 do
|
||||
|
||||
Reference in New Issue
Block a user