mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-26 01:25:46 +01:00
Fix and document :load.
This commit is contained in:
@@ -1411,17 +1411,9 @@ function Completion() //{{{
|
||||
|
||||
playlist: function playlist(context, args)
|
||||
{
|
||||
let playlists = Player().getPlaylists();
|
||||
let length = playlists.length;
|
||||
let playlistNames = [];
|
||||
|
||||
for (var i=0; i < length; i++)
|
||||
{
|
||||
playlistNames[i] = [playlists[i].name.toString(),playlists[i].name];
|
||||
}
|
||||
|
||||
context.title = ["Playlists"];
|
||||
context.completions = playlistNames;
|
||||
context.title = ["Playlist", "Type"];
|
||||
context.keys = { text: "name", description: "type" };
|
||||
context.completions = player.getPlaylists();
|
||||
},
|
||||
|
||||
buffer: function buffer(context)
|
||||
|
||||
Reference in New Issue
Block a user