mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:02:27 +01:00
Add a :mediaview command to change media views.
This commit is contained in:
@@ -1664,6 +1664,14 @@ function Completion() //{{{
|
||||
context.completions = marks.all;
|
||||
},
|
||||
|
||||
mediaView: function mediaView(context)
|
||||
{
|
||||
context.title = ["Media View", "URL"];
|
||||
context.anchored = false;
|
||||
context.keys = { text: "contentTitle", description: "contentUrl" };
|
||||
context.completions = player.getMediaPages();
|
||||
},
|
||||
|
||||
menuItem: function menuItem(context)
|
||||
{
|
||||
context.title = ["Menu Path", "Label"];
|
||||
|
||||
Reference in New Issue
Block a user