1
0
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:
Doug Kearns
2009-03-24 15:00:18 +11:00
parent 086f9d7971
commit 663cd581a1
3 changed files with 38 additions and 36 deletions

View File

@@ -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)