Skip to content

Commit 8d1b988

Browse files
committed
SmartCopyPaste(_II): Use native clipboard/text
As of https://github.com/mpv-player/mpv/releases/tag/v0.40.0, there's no need for this hacky and slow design anymore.
1 parent 48d6828 commit 8d1b988

File tree

4 files changed

+299
-522
lines changed

4 files changed

+299
-522
lines changed

script-opts/SmartCopyPaste.conf

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,14 @@
11
######----Settings For SmartCopyPaste 3.1----######
22
####------Script Settings-----####
33

4-
#--auto is for automatic device detection, or manually change to: windows or mac or linux
5-
device=auto
6-
7-
#--copy command that will be used in Linux. OR write a different command
8-
linux_copy=xclip -silent -selection clipboard -in
9-
10-
#--paste command that will be used in Linux. OR write a different command
11-
linux_paste=xclip -selection clipboard -o
12-
13-
#--copy command that will be used in MAC. OR write a different command
14-
mac_copy=pbcopy
15-
16-
#--paste command that will be used in MAC. OR write a different command
17-
mac_paste=pbpaste
18-
19-
#--powershell is for using windows powershell to copy. OR write the copy command, e.g:clip
20-
windows_copy=powershell
21-
22-
#--powershell is for using windows powershell to paste. OR write the paste command
23-
windows_paste=powershell
24-
254
#--change to 0 so item resumes from the exact position, or decrease the value so that it gives you a little preview before loading the resume point
265
resume_offset=-0.65
276

287
#--yes is for displaying osd messages when actions occur. Change to no will disable all osd messages generated from this script
298
osd_messages=yes
309

3110
#--Time seperator that will be shown before the saved time in osd messages
32-
time_seperator= 🕒
11+
time_seperator= 🕒
3312

3413
#--Prefers to copy filename over filetitle. Select between: local, protocols, all, none. 'local' prefer filenames for videos that are not protocols. 'protocols' will prefer filenames for protocols only. 'all' will prefer filename over filetitle for both protocols and not protocols videos. 'none' will always use filetitle instead of filename
3514
prefer_filename_over_title=local
@@ -40,7 +19,7 @@ copy_time_method=all
4019
#--The time attributes which will be added when copying protocols of specific websites from this list. Additional attributes can be added following the same format.
4120
specific_time_attributes=[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ]
4221

43-
#--The text that will be copied before the seek time when copying a protocol video from mpv
22+
#--The text that will be copied before the seek time when copying a protocol video from mpv
4423
protocols_time_attribute=&t=
4524

4625
#--The text that will be copied before the seek time when copying a local video from mpv

script-opts/SmartCopyPaste_II.conf

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
######----Settings For SmartCopyPaste_II 3.1----######
22
####------Script Settings-----####
33

4-
#--auto is for automatic device detection, or manually change to: windows or mac or linux
5-
device=auto
6-
7-
#--copy command that will be used in Linux. OR write a different command
8-
linux_copy=xclip -silent -selection clipboard -in
9-
10-
#--paste command that will be used in Linux. OR write a different command
11-
linux_paste=xclip -selection clipboard -o
12-
13-
#--copy command that will be used in MAC. OR write a different command
14-
mac_copy=pbcopy
15-
16-
#--paste command that will be used in MAC. OR write a different command
17-
mac_paste=pbpaste
18-
19-
#--powershell is for using windows powershell to copy. OR write the copy command, e.g:clip
20-
windows_copy=powershell
21-
22-
#--powershell is for using windows powershell to paste. OR write the paste command
23-
windows_paste=powershell
24-
254
#--Auto run the list when opening mpv and there is no video / file loaded. 'none' for disabled. Or choose between: all, copy, paste, recents, distinct, protocols, fileonly, titleonly, timeonly, keywords.
265
auto_run_list_idle=none
276

@@ -49,7 +28,7 @@ log_paste_running_behavior=timestamp>playlist
4928
#--The time attributes which will be added when copying protocols of specific websites from this list. Additional attributes can be added following the same format.
5029
specific_time_attributes=[ ["twitter", "?t=", ""], ["twitch", "?t=", "s"], ["youtube", "&t=", "s"] ]
5130

52-
#--The text that will be copied before the seek time when copying a protocol video from mpv
31+
#--The text that will be copied before the seek time when copying a protocol video from mpv
5332
protocols_time_attribute=&t=
5433

5534
#--The text that will be copied before the seek time when copying a local video from mpv
@@ -191,7 +170,7 @@ list_alignment=7
191170
text_time_type=duration
192171

193172
#--Time seperator that will be used before the saved time
194-
time_seperator= 🕒
173+
time_seperator= 🕒
195174

196175
#--The text that indicates there are more items above. \N is for new line. \h is for hard space.
197176
list_sliced_prefix=...\h\N\N
@@ -221,7 +200,7 @@ text_cursor_scale=50
221200
text_cursor_border=0.7
222201

223202
#--Pre text for highlighted multi-select item
224-
text_highlight_pre_text=✅
203+
text_highlight_pre_text=✅
225204

226205
#--Search color when in typing mode
227206
search_color_typing=ffffaa
@@ -251,17 +230,17 @@ header_sort_hide_text=added-asc
251230
#--Text to be shown before or after triggered variable in the header
252231
header_sort_pre_text= \{
253232
header_sort_after_text=}
254-
header_filter_pre_text= [Filter:
233+
header_filter_pre_text= [Filter:
255234
header_filter_after_text=]
256235
header_search_pre_text=\h\N\N[Search=
257236
header_search_after_text=..]
258237
header_highlight_pre_text=✅
259238
header_highlight_after_text=
260-
header_list_duration_pre_text= 🕒
239+
header_list_duration_pre_text= 🕒
261240
header_list_duration_after_text=
262-
header_list_length_pre_text= 🕒
241+
header_list_length_pre_text= 🕒
263242
header_list_length_after_text=
264-
header_list_remaining_pre_text= 🕒
243+
header_list_remaining_pre_text= 🕒
265244
header_list_remaining_after_text=
266245

267246
#--Copy seperator that will be shown for copied items in the list

0 commit comments

Comments
 (0)