From cdced340787f3c42fecad1a53e18925a068d2596 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 18 Oct 2007 03:53:43 +0000 Subject: [PATCH] merge new :winclose command --- NEWS | 1 + TODO | 9 ++++----- content/commands.js | 12 +++++++++++- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index 47897e26..be012fd9 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@
 2007-XX-XX:
 	* version 0.5.3
+	* new :winclose command
 	* b calls :buffer! now instead of :buffer
 	* [+], [-] and [+-] in the statusline, whether we can go back, forward, or both
 	* :set showtabline now finally works as expected for all values
diff --git a/TODO b/TODO
index 30e9643b..fbe31823 100644
--- a/TODO
+++ b/TODO
@@ -3,7 +3,6 @@ Priority list:
 1-9 as in vim (9=required for next release, 5=would be nice, 1=probably not)
 
 BUGS:
-- multiple windows do not work at all, so :q will close the whole browser session, even when there are other windows which has tabs
 - http://en.wikipedia.org/wiki/Portal:Current_events - 'f' shows more hints than 'F' (on left side of nav bar)
 - dpb| 09:09:56  dpb :: when I save a page with vimperator, it adds  near the end of it.. kinda annoying
@@ -24,6 +23,9 @@ FEATURES:
 7 use ctrl-n/p in insert mode for word completion
 7 [ctrl-o/i] to Go back to a Previous Position (done partly, however currenty does not use a per tab jumplist)
 7 whereever possible: get rid of dialogs and ask console-like dialog questions or write error prompts directly on the webpage or with :echo()
+7 :set! should also set about:config options (with autocomplete)
+7 edit textareas with an external editor (https://addons.mozilla.org/en-US/firefox/addon/4125)
+6 use '' to jump between marks like vim
 6 downloading of links to filesystem (:save )
 6 autocommands (BrowserStart, BrowserQuit, TabClose, TabOpen, TabChanged, PageLoaded, any more?)
 6 vim like mappings for caret mode and textboxes (i to start caret mode?)
@@ -33,18 +35,15 @@ FEATURES:
 6 gf = view source?
 6 page info support (ctrl-g, g)
 5 Use arrow keys in preview window, and ctrl-w+j/k to switch to from preview window
-5 Sort :open completion by date? (use 'wildsort')
+5 Favicons in completion windows and some other places?
 5 make use of the ] and [ keys to e.g. jump to the next heading ]], next image ]i, previous textbox [t and so on
 5 add tag and keyword support to adding/deleting bookmarks
-4 Support multiple top-level windows?
 3 Splitting Windows with [:sp :vsp ctrl-w,s ctrl-w,v] and closing with [ctrl-w,q], moving with [ctrl-w,w or tab]
   have a look into the split browser extension
-3 :set! should also set about:config options (with autocomplete)
 - many other ideas are listed in the wiki
 
 RANDOM IDEAS:
 * numbered tabs
-* https://addons.mozilla.org/en-US/firefox/addon/4125 - use vim to edit text fields
 * Would it be possible to add a setting "maxcompletionsshown" and 
   "maxpreviewwindowheight" or something like this?
 * 16:06:04       bartman| maxauthority: feature idea: what if :n and :N searched the 
diff --git a/content/commands.js b/content/commands.js
index 9178fd59..260aed67 100644
--- a/content/commands.js
+++ b/content/commands.js
@@ -1714,6 +1714,16 @@ function Commands() //{{{
             short_help: "Show help for normal mode commands"
         }
     ));
+    addDefaultCommand(new Command(["winc[lose]", "wc[lose]"],
+        function(args)
+        {
+            window.close();
+        },
+        {
+            usage: ["winc[ose] [url] [, url]"],
+            short_help: "Close window",
+        }
+    ));
     addDefaultCommand(new Command(["wino[pen]", "wo[pen]", "wine[dit]"],
         function(args)
         {
@@ -1725,7 +1735,7 @@ function Commands() //{{{
         {
             usage: ["wino[pen] [url] [, url]"],
             short_help: "Open one or more URLs in a new window",
-            help: "NOTE: Multiple windows are not really supported by Vimperator, use at your own risk!"
+            help: "Like :open but open URLs in a new window.
" } )); addDefaultCommand(new Command(["wqa[ll]", "wq", "xa[ll]"],