History

osc.lua: toggle looping when right clicking playpause

Inspired by ModernX. Closes #5067.

Guido Cella committed 2 years ago

Commit dab5cf41 parent a80f5352 files · +3 −2Browse files

Unified · Split

2 files
  1. DOCS/man/osc.rst +2 −1
  2. player/lua/osc.lua +1 −1
DOCS/man/osc.rst+2−1
@@ -60,6 +60,7 @@ cache · 59 unmodified lines
6060 play
6161 ============= ================================================
6262 left-click toggle play/pause
63+ right-click toggle infinite looping
6364 ============= ================================================
6465
6566 skip back
@@ -517,7 +518,7 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``. · 451 unmodified lines
517518
518519 ``play_pause_mbtn_mid_command=``
519520
520−``play_pause_mbtn_right_command=``
521+``play_pause_mbtn_right_command=cycle-values loop-file inf no``
521522
522523 ``chapter_prev_mbtn_left_command=no-osd add chapter -1; show-text ${chapter-list} 3000``
523524
player/lua/osc.lua+1−1
@@ -84,7 +84,7 @@ local user_opts = { · 83 unmodified lines
8484
8585 play_pause_mbtn_left_command = "cycle pause",
8686 play_pause_mbtn_mid_command = "",
87− play_pause_mbtn_right_command = "",
87+ play_pause_mbtn_right_command = "cycle-values loop-file inf no",
8888
8989 chapter_prev_mbtn_left_command = "add chapter -1",
9090 chapter_prev_mbtn_mid_command = "show-text ${chapter-list} 3000",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t