From f6e6ade181af85d85068f51deee455caf2cc5b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Wed, 1 Feb 2012 18:50:54 +0100 Subject: [PATCH] Fix some :h news issues, document ;A. --- common/locale/en-US/hints.xml | 1 + common/modules/help.jsm | 2 +- common/modules/template.jsm | 2 +- pentadactyl/NEWS | 14 +++++++------- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/common/locale/en-US/hints.xml b/common/locale/en-US/hints.xml index 571afab7..ab5dc32a 100644 --- a/common/locale/en-US/hints.xml +++ b/common/locale/en-US/hints.xml @@ -109,6 +109,7 @@
  • V to view its destination source in the external editor
  • y to yank its destination location
  • Y to yank its text description
  • +
  • A to yank its anchor URL
  • c to open its context menu
  • i to open an image
  • I to open an image in a new tab.
  • diff --git a/common/modules/help.jsm b/common/modules/help.jsm index 475b0dd4..dadadfcd 100644 --- a/common/modules/help.jsm +++ b/common/modules/help.jsm @@ -126,7 +126,7 @@ var Help = Module("Help", { | (?: ^ [^\S\n]* \n) + ]]>), "gmxy"); - let betas = util.regexp(/\[(b\d)\]/, "gx"); + let betas = util.regexp(/\[((?:b|rc)\d)\]/, "gx"); let beta = array(betas.iterate(NEWS)) .map(function (m) m[1]).uniq().slice(-1)[0]; diff --git a/common/modules/template.jsm b/common/modules/template.jsm index 18e9435e..82acb635 100644 --- a/common/modules/template.jsm +++ b/common/modules/template.jsm @@ -258,7 +258,7 @@ var Template = Module("Template", { linkifyHelp: function linkifyHelp(str, help) { let re = util.regexp( [/\s]|^) - (?P '[\w-]+' | :(?:[\w-]+!?|!) | (?:._)?<[\w-]+>\w* | \b[a-zA-Z]_(?:\w+|.) | \[[\w-]+\] | E\d{3} ) + (?P '[\w-]+' | :(?:[\w-]+!?|!) | (?:._)?<[\w-]+>\w* | \b[a-zA-Z]_(?:[\w[\]]+|.) | \[[\w-;]+\] | E\d{3} ) (?= [[\)!,:;./\s]|$) ]]>, "gx"); return this.highlightSubstrings(str, (function () { diff --git a/pentadactyl/NEWS b/pentadactyl/NEWS index 4d3ba41c..95e5f201 100644 --- a/pentadactyl/NEWS +++ b/pentadactyl/NEWS @@ -85,12 +85,12 @@ 'guioptions'. [b4] • Hints mode improvements, including: - Added [;A] extended hint mode. [rc2] - - Added g; continued extended hints mode, which allows + - Added [g;] continued extended hints mode, which allows selecting multiple hints. Removed ;F. [b1] - Hints are now updated after scrolling and window resizing. [b3] - - ;s now prompts for a filename on the command-line rather + - [;s] now prompts for a filename on the command-line rather than in a dialog. [b5] - - Added ;a and ;S modes for creating bookmarks and search keywords. [b4][b3] + - Added [;a] and [;S] modes for creating bookmarks and search keywords. [b4][b3] - Added 'hintkeys' option. [b2] - Added "transliterated" option to 'hintmatching'. [b1] • The external editor can now be configured to open to a given @@ -108,7 +108,7 @@ Hint, Multi-line Output, and Menu. [b4] - and now behave more like Vim. [b8] - n_G now uses 'linenumbers' to determine destination if possible. [b8] - - Add n_s and n_S. [b8] + - Added n_s and n_S. [b8] - Added Operator mode for motion maps, per Vim. [b8] - Added site-specific mapping groups and related command changes. [b6] @@ -217,8 +217,8 @@ still be used for this purpose. [b4] - 'loadplugins' is now a [regexplist] option rather than a boolean. [b2] - - 'mapleader' is no longer an option rather or a :let - variable. [b4][rc2] + - Made 'mapleader' an option rather than a :let variable. [b4] + - Removed the 'mapleader' option. [rc2] - 'passkeys' is now a [sitemap] with key chain support rather than a [regexpmap]. [b6] - The precise format of 'sanitizeitems' has changed slightly. [b8] @@ -256,7 +256,7 @@ • Added BookmarkChange, BookmarkRemove autocommands. [b2] • Removed the :source line at the end of files generated by :mkpentadactylrc. [b2] - • gf now toggles between source and content view. + • n_gf now toggles between source and content view. The | key binding has been removed. [b1] • Page zoom information is now shown in the status bar, and change in zoom status no longer appears in :messages. [b1]