1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 02:27:58 +01:00

Added some media mappings, edited the getAlbums() function, renamed :playmedia to :filter and context titles in autocompletions

This commit is contained in:
kenneslin
2009-03-19 03:07:16 +05:30
parent 431743b907
commit 5329080b24
2 changed files with 80 additions and 22 deletions

View File

@@ -1393,11 +1393,20 @@ function Completion() //{{{
song: function song(context, args)
{
if (args.completeArg == 0)
{
context.title = ["Artists"];
context.completions = getArtists();
}
else if (args.completeArg == 1)
{
context.title = ["Albums by "+args[0]];
context.completions = getAlbums(args[0]);
}
else if (args.completeArg == 2)
{
context.title = ["Tracks from "+args[1]+" by "+args[0]];
context.completions = getTracks(args[0],args[1]);
}
},
buffer: function buffer(context)