[Vimperator] :undo not working AND hintmatching=wordstartswith not matching some words as expected

Daniel Trstenjak Daniel.Trstenjak at online.de
Sat Jun 28 01:35:45 PDT 2008


Hi Harish,

> a) (Need gvimail plugin) "comma" does not match "Compose
>    Mail" in gmail.  It should have matched "COMpose MAil"

I have no idea why this shouldn't work.

> b) "roro" does not match "Review: Robot romance `Wall-e'
>    has heart of gold" in Google News.  It should have matched "RObot
>    ROmance"

The problem here is, that the first 'r' is consumed by 'Review'. There's
done some rematching of already matched characters 
(have a look at the function 'charsAtBeginningOfWords' in 'vimperator/src/content/hints.js'),
but it's not done for the first character. It's just a heurestic to catch some cases.

But it wouldn't be enough to do the rematching also for the first
character to get your desired behaviour, you would have to do a complete
rematch over all words in the link after each typed character, and this
for all character combinations.

Currently you can do the following:
To select the link with 'hintMatching=wordstartswith' you could type 'ro ro' or 'rrr'.
With a space you tell the algorithm which characters are at the beginning of a word.

Personally I prefer 'hintMatching=firstletters', because I think it's
behaviour is more predictable, and in a lot of cases you have to type
less characters than in the other 'hintMatching' ways.


Greetings,
Daniel


More information about the Vimperator mailing list