1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 20:07:59 +01:00

esc -> C-c to stop page

:stop command added
This commit is contained in:
Martin Stubenschrott
2007-04-24 21:06:57 +00:00
parent a98f9fd379
commit dc0af86c32
4 changed files with 24 additions and 6 deletions

View File

@@ -1,12 +1,15 @@
<pre> <pre>
date: date:
* version 0.4 * version 0.4
* Esc now doesn't stop loading the webpage, use Ctrl-c instead, :stop command added
* changed hinttags to work with dict.leo.org and hintstyle to work with digg.com
* :back! goes to beginning of history now * :back! goes to beginning of history now
* diabled firefox 3.0 support for now, as there are just too many small * diabled firefox 3.0 support for now, as there are just too many small
bugs bugs
* :help <section> supported, :help set will show help for the :set command * :help section supported, :help set will show help for the :set command
(patch from Viktor Kojouharov) (patch from Viktor Kojouharov)
* :source support, and auto-sourcing ~/.vimperatorrc on startup * :source support, and auto-sourcing ~/.vimperatorrc on startup
* :javascript <<EOF support to execute multiline javascript code
* fixed saving of session * fixed saving of session
* fixed hints display when zooming in/out of a web page * fixed hints display when zooming in/out of a web page
* added 'B' command for continous buffer display * added 'B' command for continous buffer display

4
TODO
View File

@@ -11,9 +11,9 @@ BUGS:
- reload/stop buttons don't update enabled state - reload/stop buttons don't update enabled state
FEATURES: FEATURES:
9 marks of a Location (also should work with directories), [m a-zA-Z] to set it, [' a-zA-Z] to go there 9 marks of a Location, [m a-zA-Z] to set it, [` a-zA-Z] to go there
[m 0-9] marks a buffer instead [' 0-9] goes there [m 0-9] marks a buffer instead [' 0-9] goes there
also mark bookmarks (with mA-Z maybe and use only lowercase marks for inbuffer marks?) also mark bookmarks (with M[a-zA-Z] maybe and use only lowercase marks for inbuffer marks?)
also support :mark and :marks also support :mark and :marks
8 :open .. -> Up one directory, :cd goes to top location, [Backspace] command shortcut, use count (:3cd goes 3 levels up) 8 :open .. -> Up one directory, :cd goes to top location, [Backspace] command shortcut, use count (:3cd goes 3 levels up)
8 downloading of links to filesystem (:save <filename>) 8 downloading of links to filesystem (:save <filename>)

View File

@@ -326,6 +326,14 @@ var g_commands = [/*{{{*/
source, source,
function (filter) { return get_file_completions(filter); } function (filter) { return get_file_completions(filter); }
], ],
[
["stop", "st"],
["st[op]"],
"Stop loading<br/>" +
"Stop loading current web page.",
BrowserStop,
null
],
[ [
["tab"], ["tab"],
["tab {cmd}"], ["tab {cmd}"],
@@ -830,12 +838,19 @@ var g_mappings = [/*{{{*/
"When in 'ignorekeys' mode (activated by <code class=mapping>&lt;I&gt;</code>), <code class=mapping>&lt;C-v&gt;</code> will pass the next key to Vimperator instead of the webpage.", "When in 'ignorekeys' mode (activated by <code class=mapping>&lt;I&gt;</code>), <code class=mapping>&lt;C-v&gt;</code> will pass the next key to Vimperator instead of the webpage.",
function(count) { addMode(MODE_ESCAPE_ONE_KEY); } function(count) { addMode(MODE_ESCAPE_ONE_KEY); }
], ],
[
["<C-c>"],
["<C-c>"],
"Stop loading<br/>" +
"Stops loading the current webpage.",
BrowserStop,
],
[ [
["<Esc>", "<C-[>"], // if you ever add/remove keys here, also check them in the onVimperatorKeypress() function ["<Esc>", "<C-[>"], // if you ever add/remove keys here, also check them in the onVimperatorKeypress() function
["<Esc>", "<C-[>"], ["<Esc>", "<C-[>"],
"Cancel any operation<br/>" + "Cancel any operation<br/>" +
"Stops loading the current webpage and exits any command line or hint mode.<br/>"+ "Exits any command line or hint mode and returns to browser mode.<br/>"+
"Also focuses the web page, in case a form field has focus, and eats our key presses.", "Also focuses the web page, in case a form field has focus and eats our key presses.",
onEscape onEscape
], ],

View File

@@ -733,7 +733,7 @@ function onEscape()
if (!hasMode(MODE_ESCAPE_ONE_KEY)) if (!hasMode(MODE_ESCAPE_ONE_KEY))
{ {
setCurrentMode(MODE_NORMAL); setCurrentMode(MODE_NORMAL);
BrowserStop(); // BrowserStop(); -> moved to <C-c>
hah.disableHahMode(); hah.disableHahMode();
focusContent(true, true); focusContent(true, true);
} }