diff --git a/common/content/bindings.xml b/common/content/bindings.xml
index 09693199..d2fd0254 100644
--- a/common/content/bindings.xml
+++ b/common/content/bindings.xml
@@ -47,11 +47,9 @@
-
-
diff --git a/common/content/buffer.js b/common/content/buffer.js
index a3e460bf..79dc31ec 100644
--- a/common/content/buffer.js
+++ b/common/content/buffer.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -125,6 +125,7 @@ function Buffer() //{{{
else
v = win.scrollMaxY / 100 * vertical;
+ marks.add("'", true);
win.scrollTo(h, v);
}
@@ -1303,6 +1304,17 @@ function Buffer() //{{{
scrollToPercentiles(-1, percentage);
},
+ scrollToRatio: function (x, y)
+ {
+ scrollToPercentiles(x * 100, y * 100);
+ },
+
+ scrollTo: function (x, y)
+ {
+ marks.add("'", true);
+ content.scrollTo(x, y);
+ },
+
/**
* Scrolls the current buffer laterally to its leftmost.
*/
@@ -1539,12 +1551,11 @@ function Marks() //{{{
function onPageLoad(event)
{
let win = event.originalTarget.defaultView;
- for (let i = 0, length = pendingJumps.length; i < length; i++)
+ for (let [i, mark] in Iterator(pendingJumps))
{
- let mark = pendingJumps[i];
if (win && win.location.href == mark.location)
{
- win.scrollTo(mark.position.x * win.scrollMaxX, mark.position.y * win.scrollMaxY);
+ buffer.scrollToRatio(mark.position.x, mark.position.y);
pendingJumps.splice(i, 1);
return;
}
@@ -1589,7 +1600,7 @@ function Marks() //{{{
}
}
- function isLocalMark(mark) /^[a-z]$/.test(mark);
+ function isLocalMark(mark) /^['`a-z]$/.test(mark);
function isURLMark(mark) /^[A-Z0-9]$/.test(mark);
function localMarkIter()
@@ -1750,13 +1761,14 @@ function Marks() //{{{
* @param {string} mark
*/
// TODO: add support for frameset pages
- add: function (mark)
+ add: function (mark, silent)
{
let win = window.content;
if (win.document.body.localName.toLowerCase() == "frameset")
{
- liberator.echoerr("Marks support for frameset pages not implemented yet");
+ if (!silent)
+ liberator.echoerr("Marks support for frameset pages not implemented yet");
return;
}
@@ -1767,7 +1779,8 @@ function Marks() //{{{
if (isURLMark(mark))
{
urlMarks.set(mark, { location: win.location.href, position: position, tab: tabs.getTab() });
- liberator.log("Adding URL mark: " + markToString(mark, urlMarks.get(mark)), 5);
+ if (!silent)
+ liberator.log("Adding URL mark: " + markToString(mark, urlMarks.get(mark)), 5);
}
else if (isLocalMark(mark))
{
@@ -1777,7 +1790,8 @@ function Marks() //{{{
localMarks.set(mark, []);
let vals = { location: win.location.href, position: position };
localMarks.get(mark).push(vals);
- liberator.log("Adding local mark: " + markToString(mark, vals), 5);
+ if (!silent)
+ liberator.log("Adding local mark: " + markToString(mark, vals), 5);
}
},
@@ -1847,7 +1861,7 @@ function Marks() //{{{
return;
}
liberator.log("Jumping to URL mark: " + markToString(mark, slice), 5);
- win.scrollTo(slice.position.x * win.scrollMaxX, slice.position.y * win.scrollMaxY);
+ buffer.scrollToRatio(slice.position.x, slice.position.y);
ok = true;
}
}
@@ -1862,7 +1876,7 @@ function Marks() //{{{
if (win.location.href == lmark.location)
{
liberator.log("Jumping to local mark: " + markToString(mark, lmark), 5);
- win.scrollTo(lmark.position.x * win.scrollMaxX, lmark.position.y * win.scrollMaxY);
+ buffer.scrollToRatio(lmark.position.x, lmark.position.y);
ok = true;
break;
}
diff --git a/common/content/commands.js b/common/content/commands.js
index d6417a23..6cc8ab97 100644
--- a/common/content/commands.js
+++ b/common/content/commands.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/completion.js b/common/content/completion.js
index c5ee7a1a..aa90fd03 100644
--- a/common/content/completion.js
+++ b/common/content/completion.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/editor.js b/common/content/editor.js
index 59d1c9dd..073e88cf 100644
--- a/common/content/editor.js
+++ b/common/content/editor.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/events.js b/common/content/events.js
index 8d27087e..a50bfec4 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/find.js b/common/content/find.js
index 90a73868..89ebcb1f 100644
--- a/common/content/find.js
+++ b/common/content/find.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/help.css b/common/content/help.css
index 67bdba86..c8107467 100644
--- a/common/content/help.css
+++ b/common/content/help.css
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/hints.js b/common/content/hints.js
index 5e27d0c4..c263ae30 100644
--- a/common/content/hints.js
+++ b/common/content/hints.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/io.js b/common/content/io.js
index ffebc794..130b005b 100644
--- a/common/content/io.js
+++ b/common/content/io.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Code based on venkman
Alternatively, the contents of this file may be used under the terms of
@@ -105,12 +105,7 @@ function IO() //{{{
.map(function (dir) dir == "" ? io.getCurrentDirectory().path : dir);
}
- function replacePathSep(path)
- {
- if (WINDOWS)
- return path.replace("/", "\\");
- return path;
- }
+ function replacePathSep(path) path.replace("/", IO.PATH_SEP, "g");
function joinPaths(head, tail)
{
@@ -278,7 +273,7 @@ function IO() //{{{
function (args)
{
// TODO: "E172: Only one file name allowed"
- let filename = args[0] || "~/" + (WINDOWS ? "_" : ".") + EXTENSION_NAME + "rc";
+ let filename = args[0] || io.getRCFile(null, true).path;
let file = io.getFile(filename);
if (file.exists() && !args.bang)
@@ -459,11 +454,6 @@ function IO() //{{{
*/
sourcing: null,
- /**
- * @property {string} The OS's path separator.
- */
- pathSeparator: WINDOWS ? "\\" : "/",
-
/**
* Expands "~" and environment variables in path.
*
@@ -554,10 +544,12 @@ function IO() //{{{
* Returns the first user RC file found in dir.
*
* @param {string} dir The directory to search.
+ * @param {boolean} always When true, return a path whether
+ * the file exists or not.
* @default $HOME.
* @returns {nsIFile} The RC file or null if none is found.
*/
- getRCFile: function (dir)
+ getRCFile: function (dir, always)
{
dir = dir || "~";
@@ -571,8 +563,9 @@ function IO() //{{{
return rcFile1;
else if (rcFile2.exists() && rcFile2.isFile())
return rcFile2;
- else
- return null;
+ else if (always)
+ return rcFile1;
+ return null;
},
// return a nsILocalFile for path where you can call isDirectory(), etc. on
@@ -1107,6 +1100,12 @@ lookup:
}; //}}}
+IO.PATH_SEP = (function () {
+ let file = services.create("file");
+ file.append("foo");
+ return file.path[0];
+})();
+
/**
* @property {string} The value of the $VIMPERATOR_RUNTIME environment
* variable.
@@ -1126,8 +1125,6 @@ IO.expandPath = function (path, relative)
{
// TODO: proper pathname separator translation like Vim - this should be done elsewhere
const WINDOWS = liberator.has("Win32");
- if (WINDOWS)
- path = path.replace("/", "\\", "g");
// expand any $ENV vars - this is naive but so is Vim and we like to be compatible
// TODO: Vim does not expand variables set to an empty string (and documents it).
@@ -1141,7 +1138,8 @@ IO.expandPath = function (path, relative)
path = expand(path);
// expand ~
- if (!relative && (WINDOWS ? /^~(?:$|[\\\/])/ : /^~(?:$|\/)/).test(path))
+ // Yuck.
+ if (!relative && RegExp("~(?:$|[/" + util.escapeRegex(IO.PATH_SEP) + "])").test(path))
{
// Try $HOME first, on all systems
let home = services.get("environment").get("HOME");
@@ -1157,11 +1155,7 @@ IO.expandPath = function (path, relative)
// TODO: Vim expands paths twice, once before checking for ~, once
// after, but doesn't document it. Is this just a bug? --Kris
path = expand(path);
-
- if (WINDOWS)
- path = path.replace("/", "\\", "g");
-
- return path;
+ return path.replace("/", IO.PATH_SEP, "g");
};
// vim: set fdm=marker sw=4 ts=4 et:
diff --git a/common/content/liberator.js b/common/content/liberator.js
index ec08975d..4631ce82 100644
--- a/common/content/liberator.js
+++ b/common/content/liberator.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -1295,11 +1295,12 @@ const liberator = (function () //{{{
// TODO: we should have some class where all this guioptions stuff fits well
hideGUI();
- // finally, read a ~/.vimperatorrc and plugin/**.{vimp,js}
+ // finally, read the RC file and source plugins
// make sourcing asynchronous, otherwise commands that open new tabs won't work
setTimeout(function () {
- let init = services.get("environment").get(config.name.toUpperCase() + "_INIT");
+ let extensionName = config.name.toUpperCase();
+ let init = services.get("environment").get(extensionName + "_INIT");
let rcFile = io.getRCFile("~");
if (init)
@@ -1307,7 +1308,10 @@ const liberator = (function () //{{{
else
{
if (rcFile)
+ {
io.source(rcFile.path, true);
+ services.get("environment").set("MY_" + extensionName + "RC", rcFile.path);
+ }
else
liberator.log("No user RC file found", 3);
}
@@ -1324,7 +1328,7 @@ const liberator = (function () //{{{
// after sourcing the initialization files, this function will set
// all gui options to their default values, if they have not been
- // set before by any rc file
+ // set before by any RC file
for (let option in options)
{
if (option.setter)
diff --git a/common/content/liberator.xul b/common/content/liberator.xul
index e7609f52..d26700a7 100644
--- a/common/content/liberator.xul
+++ b/common/content/liberator.xul
@@ -13,7 +13,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/mappings.js b/common/content/mappings.js
index 697396bb..c72f40c5 100644
--- a/common/content/mappings.js
+++ b/common/content/mappings.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/modes.js b/common/content/modes.js
index 0ae21289..25b65b6b 100644
--- a/common/content/modes.js
+++ b/common/content/modes.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/options.js b/common/content/options.js
index 1442ce23..fb9bbeae 100644
--- a/common/content/options.js
+++ b/common/content/options.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/tabs.js b/common/content/tabs.js
index 0b19514f..81d71fff 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/template.js b/common/content/template.js
index ea6cf3a1..9f4df824 100644
--- a/common/content/template.js
+++ b/common/content/template.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/content/ui.js b/common/content/ui.js
index 56abd03b..fc55d93a 100644
--- a/common/content/ui.js
+++ b/common/content/ui.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -58,6 +58,11 @@ function CommandLine() //{{{
get length() this._messages.length,
+ clear: function clear()
+ {
+ this._messages = [];
+ },
+
add: function add(message)
{
if (!message)
@@ -975,6 +980,22 @@ function CommandLine() //{{{
},
{ argCount: "0" });
+ commands.add(["messc[lear]"],
+ "Clear the message history",
+ function () { messageHistory.clear(); },
+ { argCount: "0" });
+
+ commands.add(["sil[ent]"],
+ "Run a command silently",
+ function (args)
+ {
+ commandline.runSilently(function () liberator.execute(args[0]));
+ },
+ {
+ completer: function (context) completion.ex(context),
+ literal: 0
+ });
+
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
diff --git a/common/content/util.js b/common/content/util.js
index 24a167e2..ce1705d4 100644
--- a/common/content/util.js
+++ b/common/content/util.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/common/skin/liberator.css b/common/skin/liberator.css
index a5857cd5..62b386b4 100644
--- a/common/skin/liberator.css
+++ b/common/skin/liberator.css
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/muttator/AUTHORS b/muttator/AUTHORS
index cdad350d..763ced8e 100644
--- a/muttator/AUTHORS
+++ b/muttator/AUTHORS
@@ -1,5 +1,5 @@
Main developer/Project founder:
- * Martin Stubenschrott (stubenschrott@gmx.net)
+ * Martin Stubenschrott (stubenschrott@vimperator.org)
Developers:
* Daniel Bainton (dpb .AT. driftaway .DOT. org)
diff --git a/muttator/License.txt b/muttator/License.txt
index 7efdb050..39f969f2 100644
--- a/muttator/License.txt
+++ b/muttator/License.txt
@@ -10,7 +10,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/muttator/content/compose/compose.xul b/muttator/content/compose/compose.xul
index f7466a7a..a0db3f57 100644
--- a/muttator/content/compose/compose.xul
+++ b/muttator/content/compose/compose.xul
@@ -13,7 +13,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/muttator/content/compose/liberator.xul b/muttator/content/compose/liberator.xul
deleted file mode 120000
index e6fca064..00000000
--- a/muttator/content/compose/liberator.xul
+++ /dev/null
@@ -1 +0,0 @@
-../../../common/content/liberator.xul
\ No newline at end of file
diff --git a/muttator/content/compose/liberator.xul b/muttator/content/compose/liberator.xul
new file mode 100644
index 00000000..d26700a7
--- /dev/null
+++ b/muttator/content/compose/liberator.xul
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/muttator/content/config.js b/muttator/content/config.js
index 6b1979bb..3b6ee2a2 100644
--- a/muttator/content/config.js
+++ b/muttator/content/config.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/muttator/content/mail.js b/muttator/content/mail.js
index 1e523167..cb720a15 100644
--- a/muttator/content/mail.js
+++ b/muttator/content/mail.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/muttator/content/muttator.xul b/muttator/content/muttator.xul
index 88816d94..1ecc3bbe 100644
--- a/muttator/content/muttator.xul
+++ b/muttator/content/muttator.xul
@@ -13,7 +13,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/muttator/locale/en-US/asciidoc.conf b/muttator/locale/en-US/asciidoc.conf
index 3e4cbefd..8d4fc5ff 100644
--- a/muttator/locale/en-US/asciidoc.conf
+++ b/muttator/locale/en-US/asciidoc.conf
@@ -2,7 +2,7 @@
[glossary]
author=Martin Stubenschrott
-email=stubenschrott@gmx.net
+email=stubenschrott@vimperator.org
# [header]
# to prevent a mapping from being echoed
+ * add :map to prevent a mapping from being echoed (might be slow currently, however)
* add guioptions=nN to number tabs
* add :loadplugins command
* add . mapping
diff --git a/vimperator/content/bookmarks.js b/vimperator/content/bookmarks.js
index 3a9ad0ec..7e91eacd 100644
--- a/vimperator/content/bookmarks.js
+++ b/vimperator/content/bookmarks.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/vimperator/content/config.js b/vimperator/content/config.js
index ab6b0193..a8ecce18 100644
--- a/vimperator/content/config.js
+++ b/vimperator/content/config.js
@@ -11,7 +11,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -210,6 +210,14 @@ const config = { //{{{
"Open one or more URLs in a new tab, based on current location",
function () { commandline.open(":", "tabopen " + buffer.URL, modes.EX); });
+ mappings.add([modes.NORMAL], ["w"],
+ "Open one or more URLs in a new window",
+ function () { commandline.open(":", "winopen ", modes.EX); });
+
+ mappings.add([modes.NORMAL], ["W"],
+ "Open one or more URLs in a new window, based on current location",
+ function () { commandline.open(":", "winopen " + buffer.URL, modes.EX); });
+
mappings.add([modes.NORMAL],
[""], "Increment last number in URL",
function (count) { incrementURL(count > 1 ? count : 1); },
diff --git a/vimperator/content/vimperator.xul b/vimperator/content/vimperator.xul
index 75cc8b5c..4350de7f 100644
--- a/vimperator/content/vimperator.xul
+++ b/vimperator/content/vimperator.xul
@@ -13,7 +13,7 @@ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
-Copyright (c) 2006-2009 by Martin Stubenschrott
+Copyright (c) 2006-2009 by Martin Stubenschrott
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/vimperator/locale/en-US/asciidoc.conf b/vimperator/locale/en-US/asciidoc.conf
index 4bcc4288..48ffb933 100644
--- a/vimperator/locale/en-US/asciidoc.conf
+++ b/vimperator/locale/en-US/asciidoc.conf
@@ -2,7 +2,7 @@
[glossary]
author=Martin Stubenschrott
-email=stubenschrott@gmx.net
+email=stubenschrott@vimperator.org
[header]
diff --git a/vimperator/locale/en-US/browsing.txt b/vimperator/locale/en-US/browsing.txt
index 95a4cbe4..7c45404e 100644
--- a/vimperator/locale/en-US/browsing.txt
+++ b/vimperator/locale/en-US/browsing.txt
@@ -102,11 +102,20 @@ ________________________________________________________________________________
|:winopen| |:wopen| |:winedit|
||:wino[pen][!] [a][arg1][a], [a][arg2][a], ...|| +
+||w||
________________________________________________________________________________
Just like [c]:tabopen[c] but opens the resulting web page(s) in a new window.
________________________________________________________________________________
+|W| +
+||W||
+________________________________________________________________________________
+Open one or more URLs in a new window based on current location. Works like
+[m]w[m] but preselects current URL in the [c]:winopen[c] query.
+________________________________________________________________________________
+
+
|| |p| +
||p||
________________________________________________________________________________
diff --git a/vimperator/locale/en-US/index.txt b/vimperator/locale/en-US/index.txt
index 085792e3..1d2759a0 100644
--- a/vimperator/locale/en-US/index.txt
+++ b/vimperator/locale/en-US/index.txt
@@ -203,6 +203,7 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
||[c]:mark[c]|| Mark current location within the web page +
||[c]:marks[c]|| Show all location marks of current web page +
||[c]:messages[c]|| Display previously given messages +
+||[c]:messclear[c]|| Clear the message history +
||[c]:mkvimperatorrc[c]|| Write current key mappings and changed options to the config file +
||[c]:nohlsearch[c]|| Remove the search highlighting +
||[c]:noremap[c]|| Map a key sequence without remapping keys +
diff --git a/vimperator/locale/en-US/intro.txt b/vimperator/locale/en-US/intro.txt
index ec5156fb..cad25d70 100644
--- a/vimperator/locale/en-US/intro.txt
+++ b/vimperator/locale/en-US/intro.txt
@@ -24,7 +24,7 @@ If you like it but can't remember the shortcuts, then press [m][m] or
[c]:help[c] to get this help window back.
|author| |donation| +
-Vimperator was initially written by mailto:stubenschrott@gmx.net[Martin
+Vimperator was initially written by mailto:stubenschrott@vimperator.org[Martin
Stubenschrott] but has found many other
http://vimperator.org/trac/wiki/Vimperator/Authors[contributors] in the
meanwhile. If you appreciate the work on Vimperator and want to encourage us
diff --git a/vimperator/locale/en-US/message.txt b/vimperator/locale/en-US/message.txt
index 99c1d723..f7c18f9b 100644
--- a/vimperator/locale/en-US/message.txt
+++ b/vimperator/locale/en-US/message.txt
@@ -12,6 +12,13 @@ Display previously given messages.
________________________________________________________________________________
+|:messc| |:messclear| +
+||:messc[lear]||
+________________________________________________________________________________
+Clear the message history.
+________________________________________________________________________________
+
+
|g<| +
||g<||
________________________________________________________________________________
diff --git a/vimperator/locale/en-US/starting.txt b/vimperator/locale/en-US/starting.txt
index df384fd0..81b1870f 100644
--- a/vimperator/locale/en-US/starting.txt
+++ b/vimperator/locale/en-US/starting.txt
@@ -15,17 +15,17 @@ further locations are tried.
_$VIMPERATOR_INIT_ -- May contain a single Ex command (e.g.,
"[c]:source {file}[c]").
b. [a]\~/_vimperatorrc[a] -- Windows only. If this file exists, its contents
- are executed.
+ are executed and _$MY_VIMPERATORRC_ set to its path.
c. [a]\~/.vimperatorrc[a] -- If this file exists, its contents are executed.
2. If 'exrc' is set, then any RC file in the current directory is also sourced.
3. All directories in 'runtimepath' are searched for a "plugin"
-subdirectory and all yet unloaded plugins are loaded. For each plugin
-directory, all *.\{js,vimp} files (including those in further
+subdirectory and all yet unloaded plugins are loaded. For each
+plugin directory, all *.\{js,vimp} files (including those in further
subdirectories) are sourced alphabetically. No plugins will be sourced
-if 'noloadplugins' is set. Any particular plugin will not be loaded if
-it has already been loaded (e.g., by an earlier [c]:loadplugins[c]
+if 'noloadplugins' is set. Any particular plugin will not be loaded
+if it has already been loaded (e.g., by an earlier [c]:loadplugins[c]
command).
The user's ~ (i.e., "home") directory is determined as follows: