1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 06:38:12 +01:00

show info about tabs loaded in background; also allow ctrl- prefixed keys again

This commit is contained in:
Martin Stubenschrott
2008-06-24 20:36:06 +00:00
parent 89bbff60fd
commit 7aa055d9d3
7 changed files with 30 additions and 26 deletions

View File

@@ -2,6 +2,10 @@
<b>Note:</b> If you don't wish to appear on this list when making a donation, please tell me. <b>Note:</b> If you don't wish to appear on this list when making a donation, please tell me.
2008: 2008:
* Brian Clark
* Gavin Gilmour
* Sivaraj Doddannan
* Michael Hrabanek
* Nigel McNie * Nigel McNie
* Ben Damm * Ben Damm
* Anton Kovalenko * Anton Kovalenko

4
NEWS
View File

@@ -8,6 +8,8 @@
generous donation which made this behavior possible) generous donation which made this behavior possible)
* IMPORTANT: ctrl-x/a never take possible negative URLs into account, it was just * IMPORTANT: ctrl-x/a never take possible negative URLs into account, it was just
too unpredictable 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 * new "l" flag for 'complete' to reuse the Firefox awesome bar for getting better
completions for :open. Works only when 'wildoptions' contains "auto" completions for :open. Works only when 'wildoptions' contains "auto"
* new wildoptions=auto option (default off for now), to automatically list * 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=<tab> * some option values can be tab-completed now; e.g., :set wim=<tab>
* :bdelete accepts an optional argument now * :bdelete accepts an optional argument now
* renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit * 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 <arg> have higher priority than local files now * keywords in :open <arg> have higher priority than local files now
* add :set online to control the "work offline" menu item * add :set online to control the "work offline" menu item
* many small bug fixes * many small bug fixes

6
TODO
View File

@@ -14,13 +14,12 @@ BUGS:
- http://www.maximonline.com/jokes/ - the prev and next buttons on the image map are not hinted - http://www.maximonline.com/jokes/ - the prev and next buttons on the image map are not hinted
- ;f seems broken after a page load - ;f seems broken after a page load
- ;s saves the page rather than the image - ;s saves the page rather than the image
- :set! browser.urlbar.clickSelectsAll=true -> clicking in the location bar unfocuses it immediately
FEATURES: FEATURES:
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer 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 ;?<hint> should show more information 8 ;?<hint> should show more information
8 all search commands should start searching from the top of the visible viewport 8 all search commands should start searching from the top of the visible viewport
8 :bdelete full_url<cr> and :bdelete! filter<cr> should delete all tabs matching filter or full_url
7 adaptive learning for tab-completions 7 adaptive learning for tab-completions
(https://bugzilla.mozilla.org/show_bug.cgi?id=395739 could help) (https://bugzilla.mozilla.org/show_bug.cgi?id=395739 could help)
7 use ctrl-n/p in insert mode for word completion 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 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 opera's fast forward does something like this
7 make an option to disable session saving by default when you close Firefox 7 make an option to disable session saving by default when you close Firefox
6 :set [no]focuscontent 6 add more autocommands (TabClose, TabOpen, TabChanged, any more?)
6 :set! browser.zoom.siteSpecific by default?
6 jump to the next heading with ]h, next image ]i, previous textbox [t and so on 6 jump to the next heading with ]h, next image ]i, previous textbox [t and so on
6 :grep support (needs location list) 6 :grep support (needs location list)
6 use '' to jump between marks like vim 6 use '' to jump between marks like vim

View File

@@ -226,11 +226,10 @@ liberator.Editor = function () //{{{
addMotionMap("y"); // yank addMotionMap("y"); // yank
// insert mode mappings // insert mode mappings
liberator.mappings.add([liberator.modes.INSERT], liberator.mappings.add(modes,
["<C-Left>", "<C-Right>", "<C-Home>", "<C-End>", "<C-S-Home>", "<C-S-End>", "<C-BS"], ["<C-o>", "<C-i>", "<C-f>", "<C-g>", "<C-n>"],
"Keys are passed to " + liberator.config.hostApplication, "Ignore certain " + liberator.config.hostApplication + " key bindings",
function () { return true; }, function () { /*liberator.beep();*/ });
{ flags: liberator.Mappings.flags.ALLOW_EVENT_ROUTING });
liberator.mappings.add(modes, liberator.mappings.add(modes,
["<C-w>"], "Delete previous word", ["<C-w>"], "Delete previous word",

View File

@@ -475,6 +475,10 @@ liberator.Events = function () //{{{
}, 100); }, 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(); event.stopPropagation();
return false; 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) if (liberator.mode == liberator.modes.HINTS)
{ {
liberator.hints.onEvent(event); liberator.hints.onEvent(event);
@@ -1236,7 +1240,6 @@ liberator.Events = function () //{{{
else else
map = liberator.mappings.get(liberator.mode, candidateCommand); map = liberator.mappings.get(liberator.mode, candidateCommand);
// counts must be at the start of a complete mapping (10j -> go 10 lines down) // 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)) 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 // allow key to be passed to firefox if we can't handle it
stop = false; stop = false;
// allow ctrl- or alt- prefixed keys only in NORMAL mode, as it is annoying if (liberator.mode == liberator.modes.COMMAND_LINE)
// 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.modes.extended & liberator.modes.INPUT_MULTILINE)) if (!(liberator.modes.extended & liberator.modes.INPUT_MULTILINE))
liberator.commandline.onEvent(event); // reroute event in command line mode liberator.commandline.onEvent(event); // reroute event in command line mode

View File

@@ -406,6 +406,7 @@ liberator.CommandLine = function () //{{{
HL_MODEMSG : "hl-ModeMsg", HL_MODEMSG : "hl-ModeMsg",
HL_MOREMSG : "hl-MoreMsg", HL_MOREMSG : "hl-MoreMsg",
HL_QUESTION : "hl-Question", HL_QUESTION : "hl-Question",
HL_INFOMSG : "hl-InfoMsg",
HL_WARNING : "hl-Warning", HL_WARNING : "hl-Warning",
// not yet used // not yet used

View File

@@ -109,6 +109,10 @@ the terms of any one of the MPL, the GPL or the LGPL.
color: white; color: white;
font-weight: bold; font-weight: bold;
} }
.hl-InfoMsg {
background-color: white;
color: magenta;
}
.hl-ModeMsg { .hl-ModeMsg {
background-color: white; background-color: white;
color: black; color: black;