diff --git a/Donators b/Donators index 9161970f..c41720dd 100644 --- a/Donators +++ b/Donators @@ -2,6 +2,10 @@ Note: If you don't wish to appear on this list when making a donation, please tell me. 2008: +* Brian Clark +* Gavin Gilmour +* Sivaraj Doddannan +* Michael Hrabanek * Nigel McNie * Ben Damm * Anton Kovalenko diff --git a/NEWS b/NEWS index a540bdcb..65f4efeb 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ generous donation which made this behavior possible) * IMPORTANT: ctrl-x/a never take possible negative URLs into account, it was just too unpredictable + * show informative message when a background tab was loaded, especially useful + with a hidden tab bar. * new "l" flag for 'complete' to reuse the Firefox awesome bar for getting better completions for :open. Works only when 'wildoptions' contains "auto" * new wildoptions=auto option (default off for now), to automatically list @@ -17,7 +19,7 @@ * some option values can be tab-completed now; e.g., :set wim= * :bdelete accepts an optional argument now * renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit - * don't pass any ctrl- or alt- prefixed keys to firefox in insert mode + * don't pass certain keys like ctrl-o or ctrl-n to firefox in insert mode * keywords in :open have higher priority than local files now * add :set online to control the "work offline" menu item * many small bug fixes diff --git a/TODO b/TODO index 68a39733..c68af0a8 100644 --- a/TODO +++ b/TODO @@ -14,13 +14,12 @@ BUGS: - http://www.maximonline.com/jokes/ - the prev and next buttons on the image map are not hinted - ;f seems broken after a page load - ;s saves the page rather than the image +- :set! browser.urlbar.clickSelectsAll=true -> clicking in the location bar unfocuses it immediately FEATURES: 8 middleclick in content == p, and if command line is open, paste there the clipboard buffer -8 add more autocommands (BrowserStart, TabClose, TabOpen, TabChanged, LocationChanged, any more?) 8 ;? should show more information 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 adaptive learning for tab-completions (https://bugzilla.mozilla.org/show_bug.cgi?id=395739 could help) 7 use ctrl-n/p in insert mode for word completion @@ -33,8 +32,7 @@ FEATURES: google to another page and click 10 links there, [d would take me back to the google page opera's fast forward does something like this 7 make an option to disable session saving by default when you close Firefox -6 :set [no]focuscontent -6 :set! browser.zoom.siteSpecific by default? +6 add more autocommands (TabClose, TabOpen, TabChanged, any more?) 6 jump to the next heading with ]h, next image ]i, previous textbox [t and so on 6 :grep support (needs location list) 6 use '' to jump between marks like vim diff --git a/content/editor.js b/content/editor.js index ef03f135..776ff94c 100644 --- a/content/editor.js +++ b/content/editor.js @@ -226,11 +226,10 @@ liberator.Editor = function () //{{{ addMotionMap("y"); // yank // insert mode mappings - liberator.mappings.add([liberator.modes.INSERT], - ["", "", "", "", "", "", "", "", "", "", ""], + "Ignore certain " + liberator.config.hostApplication + " key bindings", + function () { /*liberator.beep();*/ }); liberator.mappings.add(modes, [""], "Delete previous word", diff --git a/content/events.js b/content/events.js index 7057292d..a46041bf 100644 --- a/content/events.js +++ b/content/events.js @@ -475,6 +475,10 @@ liberator.Events = function () //{{{ }, 100); } } + else // background tab + { + liberator.commandline.echo("Background tab loaded: " + doc.title || doc.location.href, liberator.commandline.HL_INFOMSG); + } } } @@ -1208,7 +1212,7 @@ liberator.Events = function () //{{{ event.stopPropagation(); return false; } - // if Hit-a-hint mode is on, special handling of keys is required + // if Hint mode is on, special handling of keys is required if (liberator.mode == liberator.modes.HINTS) { liberator.hints.onEvent(event); @@ -1236,7 +1240,6 @@ liberator.Events = function () //{{{ else map = liberator.mappings.get(liberator.mode, candidateCommand); - // counts must be at the start of a complete mapping (10j -> go 10 lines down) if (/^[1-9][0-9]*$/.test(liberator.input.buffer + key)) { @@ -1338,14 +1341,7 @@ liberator.Events = function () //{{{ // allow key to be passed to firefox if we can't handle it stop = false; - // allow ctrl- or alt- prefixed keys only in NORMAL mode, as it is annoying - // if you press ctrl-o in a textarea and the file->open dialog pops up - if (liberator.mode != liberator.modes.NORMAL && (event.ctrlKey || event.metaKey || event.altKey)) - { - stop = true; - liberator.beep(); - } - else if (liberator.mode == liberator.modes.COMMAND_LINE) + if (liberator.mode == liberator.modes.COMMAND_LINE) { if (!(liberator.modes.extended & liberator.modes.INPUT_MULTILINE)) liberator.commandline.onEvent(event); // reroute event in command line mode diff --git a/content/ui.js b/content/ui.js index bf65b841..d576d99a 100644 --- a/content/ui.js +++ b/content/ui.js @@ -401,12 +401,13 @@ liberator.CommandLine = function () //{{{ return { - HL_NORMAL : "hl-Normal", - HL_ERRORMSG: "hl-ErrorMsg", - HL_MODEMSG : "hl-ModeMsg", - HL_MOREMSG : "hl-MoreMsg", - HL_QUESTION: "hl-Question", - HL_WARNING : "hl-Warning", + HL_NORMAL : "hl-Normal", + HL_ERRORMSG : "hl-ErrorMsg", + HL_MODEMSG : "hl-ModeMsg", + HL_MOREMSG : "hl-MoreMsg", + HL_QUESTION : "hl-Question", + HL_INFOMSG : "hl-InfoMsg", + HL_WARNING : "hl-Warning", // not yet used FORCE_MULTILINE : 1 << 0, diff --git a/skin/vimperator.css b/skin/vimperator.css index 7468d2f7..3a1a8846 100644 --- a/skin/vimperator.css +++ b/skin/vimperator.css @@ -109,6 +109,10 @@ the terms of any one of the MPL, the GPL or the LGPL. color: white; font-weight: bold; } +.hl-InfoMsg { + background-color: white; + color: magenta; +} .hl-ModeMsg { background-color: white; color: black;