History

mac/menu: use show-text instead of old osc script messages

1a558bf5c2 made osc-*list script messages aliases to show-texting the relative properties, so use show-text directly in the menu. Also increase the duration to be the same as the OSC buttons because the default of 1 second is too short.

Guido Cella committed 2 years ago

Commit 99e49791 parent c6883c41 file · +3 −3Browse files

Unified · Split

osdep/mac/menu_bar.swift+3−3
@@ -199,9 +199,9 @@ class MenuBar: NSObject { · 198 unmodified lines
199199 Config(name: "Decrease Speed", action: #selector(command(_:)), target: self, command: "add speed -0.1"),
200200 Config(name: "Reset Speed", action: #selector(command(_:)), target: self, command: "set speed 1.0"),
201201 Config(type: .separator),
202− Config(name: "Show Playlist", action: #selector(command(_:)), target: self, command: "script-message osc-playlist"),
203− Config(name: "Show Chapters", action: #selector(command(_:)), target: self, command: "script-message osc-chapterlist"),
204− Config(name: "Show Tracks", action: #selector(command(_:)), target: self, command: "script-message osc-tracklist"),
202+ Config(name: "Show Playlist", action: #selector(command(_:)), target: self, command: "show-text ${playlist} 3000"),
203+ Config(name: "Show Chapters", action: #selector(command(_:)), target: self, command: "show-text ${chapter-list} 3000"),
204+ Config(name: "Show Tracks", action: #selector(command(_:)), target: self, command: "show-text ${track-list} 3000"),
205205 Config(type: .separator),
206206 Config(name: "Next File", action: #selector(command(_:)), target: self, command: "playlist-next"),
207207 Config(name: "Previous File", action: #selector(command(_:)), target: self, command: "playlist-prev"),

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