mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-30 07:13:32 +02:00
Add "t" option to 'complete'. Visually it looks odd, that the icons are
more indented than others, we might want to remove or at least move the % and # indicators
This commit is contained in:
@@ -1491,7 +1491,20 @@ const liberator = (function () //{{{
|
||||
// convert the string to an array of converted URLs
|
||||
// -> see util.stringToURLArray for more details
|
||||
if (typeof urls == "string")
|
||||
{
|
||||
// rather switch to the tab instead of opening a new url in case of "12: Tab Title" like "urls"
|
||||
if (liberator.has("tabs"))
|
||||
{
|
||||
let matches = urls.match(/^(\d+):/);
|
||||
if (matches)
|
||||
{
|
||||
tabs.select(parseInt(matches[1], 10) - 1, false); // make it zero-based
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
urls = util.stringToURLArray(urls);
|
||||
}
|
||||
|
||||
if (urls.length > 20 && !force)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user