summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2009-05-13 02:14:04 +1000
committerDoug Kearns <dougkearns@gmail.com>2009-05-13 02:14:04 +1000
commit18def4a7ae00a5d4ec59a38af62de89fff01bb30 (patch)
treef1bdc6c0fd5d1b82664df1985da8f0a5d1d86b1c
parent895e40a8032a017ae1a72daf7d68d45d63306d3e (diff)
downloadpentadactyl-18def4a7ae00a5d4ec59a38af62de89fff01bb30.tar.gz
Add :frameonly.
-rw-r--r--common/content/buffer.js8
-rw-r--r--vimperator/NEWS1
-rw-r--r--vimperator/locale/en-US/buffer.txt8
-rw-r--r--vimperator/locale/en-US/index.txt1
4 files changed, 18 insertions, 0 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js
index 0bda7658..00c06c3d 100644
--- a/common/content/buffer.js
+++ b/common/content/buffer.js
@@ -509,6 +509,14 @@ function Buffer() //{{{
////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
+ commands.add(["frameo[nly]"],
+ "Show only the current frame's page",
+ function (args)
+ {
+ liberator.open(tabs.localStore.focusedFrame.document.documentURI);
+ },
+ { argCount: "0" });
+
commands.add(["ha[rdcopy]"],
"Print current document",
function (args)
diff --git a/vimperator/NEWS b/vimperator/NEWS
index d9ebe362..a30cf99e 100644
--- a/vimperator/NEWS
+++ b/vimperator/NEWS
@@ -4,6 +4,7 @@
* TabMixPlus (and other tab extensions) should work much better now
together with Vimperator unless you :set guioptions+=[nN]
* remove 'preload' option. You can fake it by some custom javascript in your init file
+ * add :frameonly
* add :stopall
* add :tabdo
* add 'encoding'
diff --git a/vimperator/locale/en-US/buffer.txt b/vimperator/locale/en-US/buffer.txt
index 680a360f..4a6975e0 100644
--- a/vimperator/locale/en-US/buffer.txt
+++ b/vimperator/locale/en-US/buffer.txt
@@ -327,6 +327,14 @@ Normally this command operates on the text zoom; if used with [!], it
operates on full zoom.
________________________________________________________________________________
+section:Working{nbsp}with{nbsp}frames[frames]
+
+|:frameo| |:frameonly|
+||:frameo[nly]|| +
+________________________________________________________________________________
+Show only the current frame's page.
+________________________________________________________________________________
+
section:Copying{nbsp}text[copying,yanking]
When running in X11, the text of the following commands is not only
diff --git a/vimperator/locale/en-US/index.txt b/vimperator/locale/en-US/index.txt
index cd9aa2d4..3da260a3 100644
--- a/vimperator/locale/en-US/index.txt
+++ b/vimperator/locale/en-US/index.txt
@@ -183,6 +183,7 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
||[c]:execute[c]|| Execute the argument as an Ex command +
||[c]:exusage[c]|| List all Ex commands with a short description +
||[c]:finish[c]|| Stop sourcing a script file +
+||[c]:frameonly[c]|| Show only the current frame's page +
||[c]:forward[c]|| Go forward in the browser history +
||[c]:hardcopy[c]|| Print current document +
||[c]:help[c]|| Display help +