diff --git a/NEWS b/NEWS
index 36701936..32a709ad 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
2008-06-xx:
* version 1.2
+ * renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit
* don't pass any ctrl- or alt- prefixed keys to firefox in insert mode
* keywords in :open have higher priority than local files now
* add :set online to control the "work offline" menu item
diff --git a/content/buffer.js b/content/buffer.js
index 348026a6..28b972aa 100644
--- a/content/buffer.js
+++ b/content/buffer.js
@@ -873,18 +873,6 @@ liberator.Buffer = function () //{{{
setTimeout(function () { doc.body.removeChild(indicator); }, 500);
},
- // XXX: probably remove this method/functionality
- // updates the buffer preview in place only if list is visible
- updateBufferList: function ()
- {
- if (!liberator.bufferwindow.visible())
- return;
-
- var items = liberator.completion.buffer("")[1];
- liberator.bufferwindow.show(items);
- liberator.bufferwindow.selectItem(getBrowser().mTabContainer.selectedIndex);
- },
-
zoomIn: function (steps, fullZoom)
{
bumpZoomLevel(steps, fullZoom);
diff --git a/content/events.js b/content/events.js
index be5f1b83..54015bed 100644
--- a/content/events.js
+++ b/content/events.js
@@ -244,17 +244,14 @@ liberator.Events = function () //{{{
tabcontainer.addEventListener("TabMove", function (event)
{
liberator.statusline.updateTabCount();
- liberator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabOpen", function (event)
{
liberator.statusline.updateTabCount();
- liberator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabClose", function (event)
{
liberator.statusline.updateTabCount();
- liberator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabSelect", function (event)
{
@@ -263,7 +260,6 @@ liberator.Events = function () //{{{
liberator.commandline.clear();
liberator.modes.show();
liberator.statusline.updateTabCount();
- liberator.buffer.updateBufferList();
liberator.tabs.updateSelectionHistory();
setTimeout(function () { liberator.focusContent(true); }, 10); // just make sure, that no widget has focus
@@ -449,7 +445,6 @@ liberator.Events = function () //{{{
if (url && liberator.history)
liberator.history.add(url, title);
- liberator.buffer.updateBufferList();
liberator.autocommands.trigger("PageLoad", url);
// mark the buffer as loaded, we can't use liberator.buffer.loaded
diff --git a/content/liberator.js b/content/liberator.js
index ee297276..212e8a4f 100644
--- a/content/liberator.js
+++ b/content/liberator.js
@@ -810,7 +810,6 @@ const liberator = (function () //{{{
log("commandline"); liberator.commandline = liberator.CommandLine();
log("search"); liberator.search = liberator.Search();
log("preview window"); liberator.previewwindow = liberator.InformationList("liberator-previewwindow", { incrementalFill: false, maxItems: 10 });
- log("buffer window"); liberator.bufferwindow = liberator.InformationList("liberator-bufferwindow", { incrementalFill: false, maxItems: 10 });
log("statusline"); liberator.statusline = liberator.StatusLine();
log("buffer"); liberator.buffer = liberator.Buffer();
log("editor"); liberator.editor = liberator.Editor();
diff --git a/content/muttator.xul b/content/muttator.xul
index 8d64daf3..b4813bf7 100644
--- a/content/muttator.xul
+++ b/content/muttator.xul
@@ -91,16 +91,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
" + "";
+ for (var i = 0; i < items.length; i++)
{
- // toggle the special buffer preview window
- if (liberator.bufferwindow.visible())
- {
- liberator.bufferwindow.hide();
- }
+ if (i == liberator.tabs.index())
+ indicator = " % ";
+ else if (i == liberator.tabs.index(liberator.tabs.alternate))
+ indicator = " # ";
else
- {
- var items = liberator.completion.buffer("")[1];
- liberator.bufferwindow.show(items);
- liberator.bufferwindow.selectItem(getBrowser().mTabContainer.selectedIndex);
- }
+ indicator = " ";
+
+ [number, title] = items[i][0].split(/:\s+/, 2);
+ url = items[i][1];
+ url = liberator.util.escapeHTML(url);
+ title = liberator.util.escapeHTML(title);
+
+ list += "| " + number + " | " + indicator +
+ " | " + title +
+ " | " + url + " |
";
}
- else
- {
- // TODO: move this to liberator.buffers.get()
- var items = liberator.completion.buffer("")[1];
- var number, indicator, title, url;
+ list += "
";
- var list = ":" + (liberator.util.escapeHTML(liberator.commandline.getCommand()) || "buffers") + "
" + "";
- for (var i = 0; i < items.length; i++)
- {
- if (i == liberator.tabs.index())
- indicator = " % ";
- else if (i == liberator.tabs.index(liberator.tabs.alternate))
- indicator = " # ";
- else
- indicator = " ";
-
- [number, title] = items[i][0].split(/:\s+/, 2);
- url = items[i][1];
- url = liberator.util.escapeHTML(url);
- title = liberator.util.escapeHTML(title);
-
- list += "| " + number + " | " + indicator +
- " | " + title +
- " | " + url + " |
";
- }
- list += "
";
-
- liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
- }
+ liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
},
// wrap causes the movement to wrap around the start and end of the tab list
diff --git a/content/vimperator.xul b/content/vimperator.xul
index 8787eb46..f3454e16 100644
--- a/content/vimperator.xul
+++ b/content/vimperator.xul
@@ -79,16 +79,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
oncommandupdate="if (typeof liberator.events != 'undefined') liberator.events.onSelectionChange(event);"/>
-
-
-
-
-
-
-