mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 12:05:46 +01:00
added modelines everywhere
This commit is contained in:
@@ -151,3 +151,4 @@ function parseBookmarkString(str, res)
|
||||
return true;
|
||||
}
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4:
|
||||
|
||||
@@ -93,7 +93,7 @@ var g_commands = [/*{{{*/
|
||||
function(filter) { return get_bookmark_completions(filter); }
|
||||
],
|
||||
[
|
||||
["buffer", "bu"],
|
||||
["buffer", "b"],
|
||||
"Go to buffer number n. Full completion works.",
|
||||
null,
|
||||
function (args) { tab_go(args.split(":")[0]); preview_window.hidden = true; },
|
||||
@@ -103,7 +103,7 @@ var g_commands = [/*{{{*/
|
||||
["buffers", "files", "ls"],
|
||||
"Shows a list of all buffers.",
|
||||
null,
|
||||
function (args) {bushow("");},
|
||||
function (args) {bushow("", false);},
|
||||
null
|
||||
],
|
||||
[
|
||||
@@ -198,8 +198,21 @@ var g_commands = [/*{{{*/
|
||||
" <li>Passed directly to Firefox in all other cases (<code>:open www.osnews.com | www.slashdot.org</code> will open OSNews in the current, and Slashdot in a new background tab).</li></ol>"+
|
||||
"You WILL be able to use <code>:open [-T \"linux\"] torvalds<Tab></code> to complete bookmarks with tag \"linux\" and which contain \"torvalds\". Note that -T support is only available for tab completion, not for the actual command.<br>"+
|
||||
"The items which are completed on <code><Tab></code> are specified in the <code>'complete'</code> option.<br>"+
|
||||
"Without argument, reloads the current page.",
|
||||
function(args) { if(args.length > 0) openURLs(args); else reload(false); },
|
||||
"Without argument, reloads the current page.<br>"+
|
||||
"Without argument but with !, reloads the current page skipping the cache.",
|
||||
function(args, special)
|
||||
{
|
||||
if(args.length > 0)
|
||||
openURLs(args);
|
||||
else
|
||||
{
|
||||
if (special)
|
||||
BrowserReloadSkipCache();
|
||||
else
|
||||
BrowserReload();
|
||||
}
|
||||
},
|
||||
|
||||
function(filter) { return get_url_completions(filter); }
|
||||
],
|
||||
[
|
||||
@@ -373,7 +386,7 @@ var g_mappings = [/*{{{*/
|
||||
["b"],
|
||||
"Open a prompt to switch buffers",
|
||||
"Typing the corresponding number opens switches to this buffer",
|
||||
function (args) { bushow(""); openVimperatorBar('buffer '); }
|
||||
function (args) { bushow("", true); openVimperatorBar('buffer '); }
|
||||
],
|
||||
[
|
||||
["d"],
|
||||
@@ -394,6 +407,18 @@ var g_mappings = [/*{{{*/
|
||||
"This mapping is for debugging purposes, and may be removed in future.",
|
||||
function(count) { openVimperatorBar('execute '); }
|
||||
],
|
||||
[
|
||||
["gh"],
|
||||
"Go home",
|
||||
"Opens the homepage in the current tab.",
|
||||
function(count) { BrowserHome(); }
|
||||
],
|
||||
[
|
||||
["gH"],
|
||||
"Go home in a new tab",
|
||||
"Opens the homepage in a new tab.",
|
||||
function(count) { openURLsInNewTab("", true); BrowserHome(); }
|
||||
],
|
||||
[
|
||||
["gP"],
|
||||
"Open (put) an URL based on the current Clipboard contents in a new buffer",
|
||||
@@ -1117,7 +1142,7 @@ function bmshow(filter, fullmode)
|
||||
openURLsInNewTab("chrome://browser/content/bookmarks/bookmarksPanel.xul", true);
|
||||
else
|
||||
{
|
||||
items = get_bookmark_completions(filter);
|
||||
var items = get_bookmark_completions(filter);
|
||||
preview_window_fill(items);
|
||||
preview_window.hidden = false;
|
||||
}
|
||||
@@ -1128,16 +1153,25 @@ function hsshow(filter, fullmode)
|
||||
openURLsInNewTab("chrome://browser/content/history/history-panel.xul", true);
|
||||
else
|
||||
{
|
||||
items = get_history_completions(filter);
|
||||
var items = get_history_completions(filter);
|
||||
preview_window_fill(items);
|
||||
preview_window.hidden = false;
|
||||
}
|
||||
}
|
||||
function bushow(filter)
|
||||
function bushow(filter, in_comp_window)
|
||||
{
|
||||
items = get_buffer_completions(filter);
|
||||
preview_window_fill(items);
|
||||
preview_window.hidden = false;
|
||||
if (in_comp_window) // fill the completion list
|
||||
{
|
||||
g_completions = get_buffer_completions(filter);
|
||||
completion_fill_list(0);
|
||||
completion_show_list();
|
||||
}
|
||||
else // in the preview window
|
||||
{
|
||||
var items = get_buffer_completions(filter);
|
||||
preview_window_fill(items);
|
||||
preview_window.hidden = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1856,4 +1890,4 @@ function removeMode(mode)
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
// vim: set fdm=marker :
|
||||
// vim: set fdm=marker sw=4 ts=4:
|
||||
|
||||
@@ -426,8 +426,10 @@ function get_settings_completions(filter)/*{{{*/
|
||||
function get_buffer_completions(filter)
|
||||
{
|
||||
var reg = new RegExp("^"+filter,"i");
|
||||
items=new Array();
|
||||
items = new Array();
|
||||
var num = getBrowser().browsers.length;
|
||||
var title, url;
|
||||
|
||||
for(var i=0; i<num;i++)
|
||||
{
|
||||
try
|
||||
@@ -441,10 +443,11 @@ function get_buffer_completions(filter)
|
||||
if (title == "")
|
||||
title = "(Untitled)";
|
||||
|
||||
if(title.search(reg) != -1)
|
||||
url = getBrowser().getBrowserAtIndex(i).contentDocument.location.href;
|
||||
|
||||
if(title.search(reg) != -1 || url.search(reg) != -1)
|
||||
{
|
||||
var title;
|
||||
items.push([(i+1)+": "+title]);
|
||||
items.push([(i+1)+": "+title, url]);
|
||||
}
|
||||
}
|
||||
return items;
|
||||
@@ -510,4 +513,5 @@ function preview_window_select(event)
|
||||
else
|
||||
return false;
|
||||
}
|
||||
// vim: set fdm=marker :
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4:
|
||||
|
||||
@@ -638,3 +638,5 @@ function hit_a_hint()
|
||||
}
|
||||
|
||||
var hah = new hit_a_hint();
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4:
|
||||
|
||||
@@ -355,4 +355,4 @@ function set_showtabline(value)
|
||||
}
|
||||
}
|
||||
|
||||
// vim: set fdm=marker :
|
||||
// vim: set fdm=marker sw=4 ts=4:
|
||||
|
||||
@@ -5,11 +5,13 @@
|
||||
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
||||
!_TAG_PROGRAM_VERSION 5.6 //
|
||||
addBookmark bookmarks.js /^function addBookmark(title, uri)$/;" f
|
||||
addMode commands.js /^function addMode(mode)$/;" f
|
||||
add_to_command_history completion.js /^function add_to_command_history(str)$/;" f
|
||||
beep commands.js /^function beep()$/;" f
|
||||
bmadd commands.js /^function bmadd(str)$/;" f
|
||||
bmdel commands.js /^function bmdel(str)$/;" f
|
||||
bmshow commands.js /^function bmshow(filter, fullmode)$/;" f
|
||||
bushow commands.js /^function bushow(filter)$/;" f
|
||||
changeHintFocus hints.js /^ function changeHintFocus(linkNumString, oldLinkNumString)$/;" f
|
||||
completion_add_to_list completion.js /^function completion_add_to_list(completion_item, at_beginning)\/*{{{*\/$/;" f
|
||||
completion_fill_list completion.js /^function completion_fill_list(startindex)\/*{{{*\/$/;" f
|
||||
@@ -38,6 +40,7 @@ getLinkNodes vimperator.js /^function getLinkNodes(doc)$/;" f
|
||||
getPageLinkNodes vimperator.js /^function getPageLinkNodes()$/;" f
|
||||
getProperty bookmarks.js /^function getProperty( aInput, aArc, DS )$/;" f
|
||||
get_bookmark_completions completion.js /^function get_bookmark_completions(filter)\/*{{{*\/$/;" f
|
||||
get_buffer_completions completion.js /^function get_buffer_completions(filter)$/;" f
|
||||
get_command commands.js /^function get_command(cmd) \/\/ {{{$/;" f
|
||||
get_command_completions completion.js /^function get_command_completions(filter)\/*{{{*\/$/;" f
|
||||
get_firefox_pref settings.js /^function get_firefox_pref(name, default_value)$/;" f
|
||||
@@ -49,6 +52,7 @@ get_settings_completions completion.js /^function get_settings_completions(filte
|
||||
get_url_completions completion.js /^function get_url_completions(filter)\/*{{{*\/$/;" f
|
||||
get_url_mark commands.js /^function get_url_mark(mark)$/;" f
|
||||
goUp commands.js /^function goUp() \/\/ FIXME$/;" f
|
||||
hasMode commands.js /^function hasMode(mode)$/;" f
|
||||
help commands.js /^function help(section)$/;" f
|
||||
hit_a_hint hints.js /^function hit_a_hint()$/;" f
|
||||
hsshow commands.js /^function hsshow(filter, fullmode)$/;" f
|
||||
@@ -62,7 +66,6 @@ logMessage vimperator.js /^function logMessage(msg)$/;" f
|
||||
makeHelpString commands.js /^ function makeHelpString(commands, color, beg, end, func)$/;" f
|
||||
makeSettingsHelpString commands.js /^ function makeSettingsHelpString(command)$/;" f
|
||||
nsBrowserStatusHandler vimperator.js /^function nsBrowserStatusHandler() \/*{{{*\/$/;" f
|
||||
onBlur vimperator.js /^function onBlur() \/\/ FIXME: needed?$/;" f
|
||||
onCommandBarInput vimperator.js /^function onCommandBarInput(event)$/;" f
|
||||
onCommandBarKeypress vimperator.js /^function onCommandBarKeypress(evt)\/*{{{*\/$/;" f
|
||||
onEscape vimperator.js /^function onEscape()$/;" f
|
||||
@@ -78,11 +81,14 @@ preview_window_select completion.js /^function preview_window_select(event)$/;"
|
||||
quit commands.js /^function quit(save_session)$/;" f
|
||||
reload commands.js /^function reload(all_tabs)$/;" f
|
||||
removeHints hints.js /^ function removeHints(win)$/;" f
|
||||
removeMode commands.js /^function removeMode(mode)$/;" f
|
||||
restart commands.js /^function restart()$/;" f
|
||||
save_history completion.js /^function save_history()$/;" f
|
||||
scrollBufferAbsolute commands.js /^function scrollBufferAbsolute(horizontal, vertical)$/;" f
|
||||
scrollBufferRelative commands.js /^function scrollBufferRelative(right, down)$/;" f
|
||||
selectInput commands.js /^function selectInput()$/;" f
|
||||
set commands.js /^function set(args, special)$/;" f
|
||||
setCurrentMode commands.js /^function setCurrentMode(mode)$/;" f
|
||||
setHintStyle hints.js /^ function setHintStyle(hintElem, styleString)$/;" f
|
||||
setMouseOverElement hints.js /^ function setMouseOverElement(elem)$/;" f
|
||||
setStatusbarColor vimperator.js /^function setStatusbarColor(color)$/;" f
|
||||
|
||||
@@ -1010,4 +1010,4 @@ function getLinkNodes(doc)
|
||||
return links;
|
||||
}
|
||||
|
||||
// vim: set fdm=marker :
|
||||
// vim: set fdm=marker sw=4 ts=4:
|
||||
|
||||
Reference in New Issue
Block a user