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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user