mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 16:15:45 +01:00
Add 'repeat' and 'shuffle'.
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
* :dialog {subscribe|newsmartplaylist}
|
* :dialog {subscribe|newsmartplaylist}
|
||||||
* add :displaypane and :dpclose
|
* add :displaypane and :dpclose
|
||||||
* rename :filter to :queue and :Filter to :filter
|
* rename :filter to :queue and :Filter to :filter
|
||||||
|
* add 'repeat' and 'shuffle'
|
||||||
|
|
||||||
2009-03-28:
|
2009-03-28:
|
||||||
* version 0.1
|
* version 0.1
|
||||||
|
|||||||
@@ -75,6 +75,33 @@ function Player() // {{{
|
|||||||
gMM.removeListener(mediaCoreListener);
|
gMM.removeListener(mediaCoreListener);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
|
////////////////////// OPTIONS /////////////////////////////////////////////////
|
||||||
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
|
options.add(["repeat"],
|
||||||
|
"Set the playback repeat mode",
|
||||||
|
"number", 0,
|
||||||
|
{
|
||||||
|
setter: function (value) gMM.sequencer.repeatMode = value,
|
||||||
|
getter: function () gMM.sequencer.repeatMode,
|
||||||
|
completer: function (context) [
|
||||||
|
["0", "Repeat none"],
|
||||||
|
["1", "Repeat one"],
|
||||||
|
["2", "Repeat all"]
|
||||||
|
],
|
||||||
|
validator: Option.validateCompleter
|
||||||
|
});
|
||||||
|
|
||||||
|
options.add(["shuffle"],
|
||||||
|
"Play tracks in shuffled order",
|
||||||
|
"boolean", false,
|
||||||
|
{
|
||||||
|
setter: function (value) value ? gMM.sequencer.mode = gMM.sequencer.MODE_SHUFFLE :
|
||||||
|
gMM.sequencer.mode = gMM.sequencer.MODE_FORWARD,
|
||||||
|
getter: function () gMM.sequencer.mode == gMM.sequencer.MODE_SHUFFLE
|
||||||
|
});
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
////////////////////// MAPPINGS ////////////////////////////////////////////////
|
////////////////////// MAPPINGS ////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|||||||
@@ -340,6 +340,7 @@ section:Options[option-index]
|
|||||||
||'popups'|| Where to show requested popup windows +
|
||'popups'|| Where to show requested popup windows +
|
||||||
||'preload'|| Speed up first time history/bookmark completion +
|
||'preload'|| Speed up first time history/bookmark completion +
|
||||||
||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence +
|
||'previouspattern'|| Patterns to use when guessing the \'previous' page in a document sequence +
|
||||||
|
||'repeat'|| Set the playback repeat mode +
|
||||||
||'runtimepath'|| List of directories searched for runtime files +
|
||'runtimepath'|| List of directories searched for runtime files +
|
||||||
||'scroll'|| Number of lines to scroll with [m]<C-u>[m] and [m]<C-d>[m] commands +
|
||'scroll'|| Number of lines to scroll with [m]<C-u>[m] and [m]<C-d>[m] commands +
|
||||||
||'shell'|| Shell to use for executing [c]:![c] and [c]:run[c] commands +
|
||'shell'|| Shell to use for executing [c]:![c] and [c]:run[c] commands +
|
||||||
@@ -347,6 +348,7 @@ section:Options[option-index]
|
|||||||
||'showmode'|| Show the current mode in the command line +
|
||'showmode'|| Show the current mode in the command line +
|
||||||
||'showstatuslinks'|| Show the destination of the link under the cursor in the status bar +
|
||'showstatuslinks'|| Show the destination of the link under the cursor in the status bar +
|
||||||
||'showtabline'|| Control when to show the tab bar of opened web pages +
|
||'showtabline'|| Control when to show the tab bar of opened web pages +
|
||||||
|
||'shuffle'|| Play tracks in shuffled order +
|
||||||
||'smartcase'|| Override the 'ignorecase' option if the pattern contains uppercase characters +
|
||'smartcase'|| Override the 'ignorecase' option if the pattern contains uppercase characters +
|
||||||
||'suggestengines'|| Engine Alias which has a feature of suggest +
|
||'suggestengines'|| Engine Alias which has a feature of suggest +
|
||||||
||'titlestring'|| Change the title of the window +
|
||'titlestring'|| Change the title of the window +
|
||||||
|
|||||||
@@ -595,6 +595,20 @@ link elements are those defined by 'hinttags'.
|
|||||||
____
|
____
|
||||||
|
|
||||||
|
|
||||||
|
|\'repeat'|
|
||||||
|
||'repeat'|| number (default: 0)
|
||||||
|
____
|
||||||
|
Set the playback repeat mode.
|
||||||
|
|
||||||
|
.---`-----------
|
||||||
|
*0* Repeat none
|
||||||
|
*1* Repeat one
|
||||||
|
*2* Repeat all
|
||||||
|
----------------
|
||||||
|
|
||||||
|
____
|
||||||
|
|
||||||
|
|
||||||
|$XULMUS_RUNTIME|
|
|$XULMUS_RUNTIME|
|
||||||
|\'rtp'| |\'runtimepath'|
|
|\'rtp'| |\'runtimepath'|
|
||||||
||'runtimepath' 'rtp'|| stringlist
|
||'runtimepath' 'rtp'|| stringlist
|
||||||
@@ -678,6 +692,12 @@ Control when to show the tab bar of opened web pages. Possible values:
|
|||||||
____
|
____
|
||||||
|
|
||||||
|
|
||||||
|
|\'shuffle'|
|
||||||
|
||'shuffle'|| boolean (default: false)
|
||||||
|
____
|
||||||
|
Play tracks in shuffled order.
|
||||||
|
____
|
||||||
|
|
||||||
|\'noscs'| |\'nosmartcase'| |\'scs'| |\'smartcase'|
|
|\'noscs'| |\'nosmartcase'| |\'scs'| |\'smartcase'|
|
||||||
||'smartcase' 'scs'|| boolean (default: on)
|
||'smartcase' 'scs'|| boolean (default: on)
|
||||||
____
|
____
|
||||||
|
|||||||
Reference in New Issue
Block a user