diff --git a/TODO b/TODO index 9fef73a5..c84479b8 100644 --- a/TODO +++ b/TODO @@ -11,6 +11,7 @@ BUGS: same for http://forum.mootools.net/topic.php?id=3458 - insert abbreviations broken on - :sidebar improvements (:sidebar! Downloads while downloads is open should refocus the sidebar) +- http://www.maximonline.com/jokes/ - the prev and next buttons on the image map are not hinted FEATURES: 8 middleclick in content == p, and if command line is open, paste there the clipboard buffer @@ -20,6 +21,7 @@ FEATURES: 8 y and Y should be changed to: Y, yy and yl=yank location, ys=yank selection, yd=yank domain name, yt=yank title, yw=yank current word, yf=yank filename, (other things to yank?) 8 all search commands should start searching from the top of the visible viewport +8 :bdelete full_url and :bdelete! filter should delete all tabs matching filter or full_url 7 use ctrl-n/p in insert mode for word completion 7 implement LocationList window, and get rid off/change PreviewWindow to be a real preview window being able to display html pages diff --git a/content/events.js b/content/events.js index 2b3316ba..e769d568 100644 --- a/content/events.js +++ b/content/events.js @@ -755,9 +755,8 @@ vimperator.Events = function () //{{{ if (elem && elem.readOnly) return; - //dump("=+++++++++=\n" + vimperator.util.objectToString(event.target) + "\n") - //dump (elem + "\n"); - //dump (win + "\n---\n"); + // dump("=+++++++++=\n" + vimperator.util.objectToString(event.target) + "\n") + // dump (elem + ": " + win + "\n");//" - target: " + event.target + " - origtarget: " + event.originalTarget + " - expltarget: " + event.explicitOriginalTarget + "\n"); if (elem && elem instanceof HTMLInputElement && (elem.type.toLowerCase() == "text" || elem.type.toLowerCase() == "password")) @@ -786,9 +785,10 @@ vimperator.Events = function () //{{{ { // we switch to -- MESSAGE -- mode for muttator, when an HTML document // is selected but not when we just click a link - if (win && win.document && win.document instanceof HTMLDocument && !elem)// || !(elem instanceof HTMLAnchorElement)) + if (win && win.document && win.document instanceof HTMLDocument && (!elem || vimperator.mode == vimperator.modes.MESSAGE)) { - vimperator.mode = vimperator.modes.MESSAGE; + if (vimperator.mode != vimperator.modes.MESSAGE) + vimperator.mode = vimperator.modes.MESSAGE; return; } if (elem instanceof HTMLAnchorElement && vimperator.mode != vimperator.modes.MESSAGE) @@ -796,6 +796,8 @@ vimperator.Events = function () //{{{ vimperator.focusContent(); return; } + else + ;//dump("hu\n") } if (vimperator.mode == vimperator.modes.INSERT || @@ -967,7 +969,8 @@ vimperator.Events = function () //{{{ // XXX: ugly hack for now pass certain keys to firefox as they are without beeping // also fixes key navigation in combo boxes, submitting forms, etc. // FIXME: breaks iabbr for now --mst - if (vimperator.mode == vimperator.modes.NORMAL || vimperator.mode == vimperator.modes.INSERT) + if ((vimperator.config.name == "Vimperator" && vimperator.mode == vimperator.modes.NORMAL) + || vimperator.mode == vimperator.modes.INSERT) { if (key == "") { diff --git a/content/mail.js b/content/mail.js new file mode 100644 index 00000000..4b2a1e20 --- /dev/null +++ b/content/mail.js @@ -0,0 +1,65 @@ +/***** BEGIN LICENSE BLOCK ***** {{{ +Version: MPL 1.1/GPL 2.0/LGPL 2.1 + +The contents of this file are subject to the Mozilla Public License Version +1.1 (the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at +http://www.mozilla.org/MPL/ + +Software distributed under the License is distributed on an "AS IS" basis, +WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +for the specific language governing rights and limitations under the +License. + +(c) 2006-2008: 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 +the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), +in which case the provisions of the GPL or the LGPL are applicable instead +of those above. If you wish to allow use of your version of this file only +under the terms of either the GPL or the LGPL, and not to allow others to +use your version of this file under the terms of the MPL, indicate your +decision by deleting the provisions above and replace them with the notice +and other provisions required by the GPL or the LGPL. If you do not delete +the provisions above, a recipient may use your version of this file under +the terms of any one of the MPL, the GPL or the LGPL. +}}} ***** END LICENSE BLOCK *****/ + +vimperator.Mail = function () +{ + //////////////////////////////////////////////////////////////////////////////// + ////////////////////// PRIVATE SECTION ///////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////////{{{ + + + /////////////////////////////////////////////////////////////////////////////}}} + ////////////////////// OPTIONS ///////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////////{{{ + +// vimperator.options.add(["editor"], +// "Set the external text editor", +// "string", "gvim -f"); +// vimperator.options.add(["insertmode", "im"], +// "Use Insert mode as the default for text areas", +// "boolean", true); + + /////////////////////////////////////////////////////////////////////////////}}} + ////////////////////// MAPPINGS //////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////////{{{ + + vimperator.mappings.addDefault([vimperator.modes.NORMAL], ["", ""], "Focus message", + function () { content.focus(); } + ); + + /////////////////////////////////////////////////////////////////////////////}}} + ////////////////////// PUBLIC SECTION ////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////////{{{ + + return { + + }; + //}}} +}; + +// vim: set fdm=marker sw=4 ts=4 et: diff --git a/content/muttator.xul b/content/muttator.xul index 516a4d7e..103b705a 100644 --- a/content/muttator.xul +++ b/content/muttator.xul @@ -40,7 +40,6 @@ the terms of any one of the MPL, the GPL or the LGPL.