From 488e55390c50594fd07adf3aa73f2eb677ff7c91 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Thu, 3 Jan 2008 11:43:28 +0000 Subject: [PATCH] swapped meaning of gf and gF --- content/commands.js | 12 ++++++------ content/mappings.js | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/content/commands.js b/content/commands.js index d4337119..bb2ccf8d 100644 --- a/content/commands.js +++ b/content/commands.js @@ -2521,11 +2521,7 @@ vimperator.Commands = function () //{{{ function (args, special) { var url = args || vimperator.buffer.URL; - if (special) // internal editor - { - vimperator.open("view-source:" + url) - } - else + if (special) // external editor { // TODO: make that a helper function // TODO: save return value in v:shell_error @@ -2543,11 +2539,15 @@ vimperator.Commands = function () //{{{ args.push(url) vimperator.callFunctionInThread(newThread, vimperator.run, [prog, args, true]); } + else + { + vimperator.open("view-source:" + url) + } }, { usage: ["vie[wsource][!] [url]"], shortHelp: "View source code of current document", - help: "When ! is given, it is opened with the internal editor, otherwise with the external." + help: "When ! is given, it is opened with the external editor." } )); commandManager.add(new vimperator.Command(["viu[sage]"], diff --git a/content/mappings.js b/content/mappings.js index 00f2b99c..a21f0fe8 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -571,16 +571,16 @@ vimperator.Mappings = function () //{{{ function () { vimperator.commands.viewsource(); }, { shortHelp: "View source", - help: "Opens the source code of the current website with the external editor specified " + - "by the 'editor' option. For now the external editor " + - "must be able to download and open files from a remote URL." + help: "Opens the source code of the current website with the internal editor in the current tab." } )); addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["gF"], function () { vimperator.commands.viewsource(null, true); }, { - shortHelp: "View source in current tab", - help: "Opens the source code of the current website with the internal editor." + shortHelp: "View source with an external editor", + help: "Opens the source code of the current website with the external editor specified " + + "by the 'editor' option. For now the external editor " + + "must be able to download and open files from a remote URL." } )); addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["gh"],