mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 04:07:58 +01:00
show info about tabs loaded in background; also allow ctrl- prefixed keys again
This commit is contained in:
4
Donators
4
Donators
@@ -2,6 +2,10 @@
|
||||
<b>Note:</b> 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
|
||||
|
||||
4
NEWS
4
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=<tab>
|
||||
* :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 <arg> have higher priority than local files now
|
||||
* add :set online to control the "work offline" menu item
|
||||
* many small bug fixes
|
||||
|
||||
6
TODO
6
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 ;?<hint> should show more information
|
||||
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
|
||||
(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
|
||||
|
||||
@@ -226,11 +226,10 @@ liberator.Editor = function () //{{{
|
||||
addMotionMap("y"); // yank
|
||||
|
||||
// insert mode mappings
|
||||
liberator.mappings.add([liberator.modes.INSERT],
|
||||
["<C-Left>", "<C-Right>", "<C-Home>", "<C-End>", "<C-S-Home>", "<C-S-End>", "<C-BS"],
|
||||
"Keys are passed to " + liberator.config.hostApplication,
|
||||
function () { return true; },
|
||||
{ flags: liberator.Mappings.flags.ALLOW_EVENT_ROUTING });
|
||||
liberator.mappings.add(modes,
|
||||
["<C-o>", "<C-i>", "<C-f>", "<C-g>", "<C-n>"],
|
||||
"Ignore certain " + liberator.config.hostApplication + " key bindings",
|
||||
function () { /*liberator.beep();*/ });
|
||||
|
||||
liberator.mappings.add(modes,
|
||||
["<C-w>"], "Delete previous word",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user