From teramako at gmail.com Thu May 1 05:39:38 2008 From: teramako at gmail.com (M.Terada) Date: Thu, 1 May 2008 21:39:38 +0900 Subject: [Vimperator] PATCH: allow open help in new tab (:tab help) In-Reply-To: <4817B7FF.8020508@gmx.net> References: <6eebba490804280902v65cf49f2gd84e0e04a73d95e6@mail.gmail.com> <6eebba490804281222o3c1ad4cbm570e1afa076450c1@mail.gmail.com> <4817B7FF.8020508@gmx.net> Message-ID: <6eebba490805010539s17b4ab65jd5c6f53a70157940@mail.gmail.com> I'm sorry for re-sending over and over Additionally: * :addons, :downloads, :prefs!, :js!, :help open in the current tab in normally * new "newtab" option Thank you for a lot of help in IRC :) Best regards. -- teramako -------------- next part -------------- A non-text attachment was scrubbed... Name: tabCommand_and_newtabOption.patch Type: text/x-diff Size: 11435 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080501/16174e6b/attachment.bin From Daniel.Trstenjak at online.de Thu May 1 07:40:16 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Thu, 1 May 2008 16:40:16 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <4818CA42.8000501@gmx.net> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> Message-ID: <20080501144016.GA9135@linux.ver> Hi all, Hi Martin, On Wed, Apr 30, 2008 at 09:36:34PM +0200, Martin Stubenschrott wrote: > Actually very nice idea to make the hint matcher configurable. I think heuristics are nice for choosing the active link. It's nice if the right link is choosen, but even nicer if the right link is directly executed. If you could achieve such a smart scoring, that you could already execute a link by it's scoring, that would be nice. I like the idea of the wordboundary matching. I'm thinking of an other wordboundary matching strategy. That each typed character has to match with the first character of a word. The typed characters and words have to be in the same order. I tried this approach (see the patch ;)), and it works pretty good. I tested it on some news pages, and almost never needed to type more than two characters. Some optimizations could be done, like filtering certain characters like ':' or '"'. > thanks again for the patch, really well written. Looking forward for > more of such great patches :) Thanks! It's nice if someone likes the things you do :). Greetings, Daniel -------------- next part -------------- ? downloads ? vimperator-0.6-20080501.patch ? src/build.0.6pre.Linux ? src/chrome/vimperator.jar ? src/locale/en-US/autocommands.html ? src/locale/en-US/browsing.html ? src/locale/en-US/buffer.html ? src/locale/en-US/developer.html ? src/locale/en-US/intro.html ? src/locale/en-US/marks.html ? src/locale/en-US/options.html ? src/locale/en-US/repeat.html ? src/locale/en-US/starting.html ? src/locale/en-US/tabs.html ? src/locale/en-US/various.html Index: src/content/hints.js =================================================================== RCS file: /cvs/vimperator/src/content/hints.js,v retrieving revision 1.56 diff -u -r1.56 hints.js --- src/content/hints.js 30 Apr 2008 21:45:36 -0000 1.56 +++ src/content/hints.js 1 May 2008 14:37:11 -0000 @@ -193,6 +193,47 @@ return wordBoundary; } + function wordStartsWithCharMatcher(hintString) + { + var hintChars = hintString; + + function wordStartsWithChar(textOfLink) + { + if (hintChars.length == 0) + return true; + + var charIdx = 0; + var textIdx = 0; + for (; charIdx < hintChars.length; charIdx++) + { + // goto first non whitespace character (start of word) + for (; textIdx < textOfLink.length; textIdx++) + { + if (textOfLink[textIdx] != ' ' && textOfLink[textIdx] != '\n') + break; + } + + if (textIdx == textOfLink.length) + return false; + + if (hintChars[charIdx] != textOfLink[textIdx]) + return false; + + // goto first whitespace character (end of word) + for (; textIdx < textOfLink.length; textIdx++) + { + var textChar = textOfLink[textIdx]; + if (textChar == ' ' || textChar == '\n') + break; + } + } + + return (charIdx == hintChars.length); + } + + return wordStartsWithChar; + } + function startsWithMatcher(hintString) { var regex = new RegExp((hintString == "" ? ".*" : ("^\\s*" + hintString + ".*"))); @@ -210,11 +251,11 @@ var hintMatching = liberator.options["hintmatching"]; switch (hintMatching) { - case "contains": return containsTokensMatcher(hintString); - case "startswith": return startsWithMatcher(hintString); - case "wordboundary": return wordBoundaryMatcher(hintString); - default: - liberator.echoerr("Invalid hintmatching type: " + hintMatching); + case "contains" : return containsTokensMatcher(hintString); + case "startswith" : return startsWithMatcher(hintString); + case "wordboundary" : return wordBoundaryMatcher(hintString); + case "wordstartswithchar": return wordStartsWithCharMatcher(hintString); + default : liberator.echoerr("Invalid hintmatching type: " + hintMatching); } return null; } @@ -499,7 +540,7 @@ "How links are matched", "string", "contains", { - validator: function (value) { return /^startswith|contains|wordboundary$/.test(value); } + validator: function (value) { return /^startswith|contains|wordboundary|wordstartswithchar$/.test(value); } }); /////////////////////////////////////////////////////////////////////////// Index: src/locale/en-US/options.txt =================================================================== RCS file: /cvs/vimperator/src/locale/en-US/options.txt,v retrieving revision 1.10 diff -u -r1.10 options.txt --- src/locale/en-US/options.txt 30 Apr 2008 21:45:37 -0000 1.10 +++ src/locale/en-US/options.txt 1 May 2008 14:37:12 -0000 @@ -214,11 +214,12 @@ Change the hint matching algorithm during hint mode. Possible values: -`--------------`------------------------------------------------------------------------------------------------------------------------ -*contains* The typed characters are splitted by spaces, and these character groups have to be anywhere inside the text of the link. -*wordboundary* The typed characters are splitted by spaces, and these character groups must each match the start of a word of the link. -*startswith* The typed characters have to be in the typed order at the beginning of the text of the link. ----------------------------------------------------------------------------------------------------------------------------------------- +`--------------------`------------------------------------------------------------------------------------------------------------------------------- +*contains* The typed characters are splitted by spaces, and these character groups have to be anywhere inside the text of the link. +*wordboundary* The typed characters are splitted by spaces, and these character groups must each match the start of a word of the link. +*wordstartswithchar* Each typed character has to match with the first character of a word. The words have to be in the same order than the characters. +*startswith* The typed characters have to be in the typed order at the beginning of the text of the link. +----------------------------------------------------------------------------------------------------------------------------------------------------- ____ From Daniel.Trstenjak at online.de Thu May 1 08:50:35 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Thu, 1 May 2008 17:50:35 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080501144016.GA9135@linux.ver> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> Message-ID: <20080501155035.GB9135@linux.ver> On Thu, May 01, 2008 at 04:40:16PM +0200, Daniel Trstenjak wrote: > I tried this approach (see the patch ;)), and it works pretty good. > I tested it on some news pages, and almost never needed to type more > than two characters. > > Some optimizations could be done, like filtering certain characters like > ':' or '"'. This patch is a slightly modified version of the previous one. Now every non letter is considered as a word boundary. Works quite nice for me. Greetings, Daniel -------------- next part -------------- ? downloads ? vimperator-0.6-20080501-2.patch ? vimperator-0.6-20080501.patch ? src/build.0.6pre.Linux ? src/chrome/vimperator.jar ? src/locale/en-US/autocommands.html ? src/locale/en-US/browsing.html ? src/locale/en-US/buffer.html ? src/locale/en-US/developer.html ? src/locale/en-US/intro.html ? src/locale/en-US/marks.html ? src/locale/en-US/options.html ? src/locale/en-US/repeat.html ? src/locale/en-US/starting.html ? src/locale/en-US/tabs.html ? src/locale/en-US/various.html Index: src/content/hints.js =================================================================== RCS file: /cvs/vimperator/src/content/hints.js,v retrieving revision 1.56 diff -u -r1.56 hints.js --- src/content/hints.js 30 Apr 2008 21:45:36 -0000 1.56 +++ src/content/hints.js 1 May 2008 15:46:07 -0000 @@ -193,6 +193,54 @@ return wordBoundary; } + function wordStartsWithCharMatcher(hintString) + { + var hintChars = hintString; + + function isLetter(character) + { + return ((character >= 'a' && character <= 'z') + || character == '?' + || character == '?' + || character == '?'); + } + + function wordStartsWithChar(textOfLink) + { + if (hintChars.length == 0) + return true; + + var charIdx = 0; + var textIdx = 0; + for (; charIdx < hintChars.length; charIdx++) + { + // goto first letter (start of word) + for (; textIdx < textOfLink.length; textIdx++) + { + if (isLetter(textOfLink[textIdx])) + break; + } + + if (textIdx == textOfLink.length) + return false; + + if (hintChars[charIdx] != textOfLink[textIdx]) + return false; + + // goto first non letter (end of word) + for (; textIdx < textOfLink.length; textIdx++) + { + if (! isLetter(textOfLink[textIdx])) + break; + } + } + + return (charIdx == hintChars.length); + } + + return wordStartsWithChar; + } + function startsWithMatcher(hintString) { var regex = new RegExp((hintString == "" ? ".*" : ("^\\s*" + hintString + ".*"))); @@ -210,11 +258,11 @@ var hintMatching = liberator.options["hintmatching"]; switch (hintMatching) { - case "contains": return containsTokensMatcher(hintString); - case "startswith": return startsWithMatcher(hintString); - case "wordboundary": return wordBoundaryMatcher(hintString); - default: - liberator.echoerr("Invalid hintmatching type: " + hintMatching); + case "contains" : return containsTokensMatcher(hintString); + case "startswith" : return startsWithMatcher(hintString); + case "wordboundary" : return wordBoundaryMatcher(hintString); + case "wordstartswithchar": return wordStartsWithCharMatcher(hintString); + default : liberator.echoerr("Invalid hintmatching type: " + hintMatching); } return null; } @@ -499,7 +547,7 @@ "How links are matched", "string", "contains", { - validator: function (value) { return /^startswith|contains|wordboundary$/.test(value); } + validator: function (value) { return /^startswith|contains|wordboundary|wordstartswithchar$/.test(value); } }); /////////////////////////////////////////////////////////////////////////// Index: src/locale/en-US/options.txt =================================================================== RCS file: /cvs/vimperator/src/locale/en-US/options.txt,v retrieving revision 1.10 diff -u -r1.10 options.txt --- src/locale/en-US/options.txt 30 Apr 2008 21:45:37 -0000 1.10 +++ src/locale/en-US/options.txt 1 May 2008 15:46:07 -0000 @@ -214,11 +214,12 @@ Change the hint matching algorithm during hint mode. Possible values: -`--------------`------------------------------------------------------------------------------------------------------------------------ -*contains* The typed characters are splitted by spaces, and these character groups have to be anywhere inside the text of the link. -*wordboundary* The typed characters are splitted by spaces, and these character groups must each match the start of a word of the link. -*startswith* The typed characters have to be in the typed order at the beginning of the text of the link. ----------------------------------------------------------------------------------------------------------------------------------------- +`--------------------`------------------------------------------------------------------------------------------------------------------------------- +*contains* The typed characters are splitted by spaces, and these character groups have to be anywhere inside the text of the link. +*wordboundary* The typed characters are splitted by spaces, and these character groups must each match the start of a word of the link. +*wordstartswithchar* Each typed character has to match with the first character of a word (every non letter is a word boundary). The words have to be in the same order than the characters. +*startswith* The typed characters have to be in the typed order at the beginning of the text of the link. +----------------------------------------------------------------------------------------------------------------------------------------------------- ____ From stubenschrott at gmx.net Fri May 2 01:20:48 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Fri, 02 May 2008 10:20:48 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080501155035.GB9135@linux.ver> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> Message-ID: <481ACEE0.6010808@gmx.net> Daniel Trstenjak wrote: > On Thu, May 01, 2008 at 04:40:16PM +0200, Daniel Trstenjak wrote: >> I tried this approach (see the patch ;)), and it works pretty good. >> I tested it on some news pages, and almost never needed to type more >> than two characters. the problem of this patch is that it is virtually useless if you want to follow a link with just one word when the page has lots of links. Therefore I am not too happy with applying that patch. I would suggest one of two possibilities however: 1.) Maybe make "hintmatching" a stringlist, then :set hintmatching=wordstartswithchar,contains would first try to match results with wordstartswithchar. Only if it did not find any results, it would try the 2nd hintmatcher. I am, however, also not too much a fan of that idea, as it could be highly unpredictable, and you could follow the wrong hints. What I do propose however is that: 2.) I think I got that idea from the emacs IDO completion mode: Type any characters of the link, but in the order they appear. Let me give you some examples, link text is "emacs email encryption" and i will write matched chars in UPPERCASE): For following that link you could write: *) EMACS email encryption -> emacs (only if there is only 1 emacs link) *) Emacs Email Encryption -> eee (basically what you want) *) Emacs email enCRYption -> ecry (also write part of the link, if e.g. the first letter is a ? or other special letter you don't want to type) The letters must be in order however to minimize possible results, so writing "crye" in the example above would not work. What do you think about that? That would actually be your suggestion, but with some fallback to also handle one-word links well. -- Martin From stubenschrott at gmx.net Fri May 2 01:56:12 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Fri, 02 May 2008 10:56:12 +0200 Subject: [Vimperator] PATCH: allow open help in new tab (:tab help) In-Reply-To: <6eebba490805010539s17b4ab65jd5c6f53a70157940@mail.gmail.com> References: <6eebba490804280902v65cf49f2gd84e0e04a73d95e6@mail.gmail.com> <6eebba490804281222o3c1ad4cbm570e1afa076450c1@mail.gmail.com> <4817B7FF.8020508@gmx.net> <6eebba490805010539s17b4ab65jd5c6f53a70157940@mail.gmail.com> Message-ID: <481AD72C.6030703@gmx.net> M.Terada wrote: > I'm sorry for re-sending over and over > > Additionally: > * :addons, :downloads, :prefs!, :js!, :help > open in the current tab in normally > * new "newtab" option > > Thank you for a lot of help in IRC :) Thanks for the patch :) Looked very good, I only had to change very few things, and applied it! The main thing was to change "newtab=" (empty) as default. I might change that to newtab=all by popular demand, but I don't think it should just have some commands there by default. Vimperator 1.0 is really coming along nicely with patches like this, I am so eager for Firefox RC1 to come out and release vimperator 1.0 :) -- Martin From Daniel.Trstenjak at online.de Fri May 2 04:04:32 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Fri, 2 May 2008 13:04:32 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481ACEE0.6010808@gmx.net> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> Message-ID: <20080502110432.GA6091@desktop> Hi Martin, On Fri, May 02, 2008 at 10:20:48AM +0200, Martin Stubenschrott wrote: > the problem of this patch is that it is virtually useless if you want to > follow a link with just one word when the page has lots of links. > Therefore I am not too happy with applying that patch. That's ok. This patch was written in a hurry. I was surprised that it works that well on the tested websides, and just wanted to get some feedback. Yes, the issue with one word links has to be solved. > 1.) Maybe make "hintmatching" a stringlist, then :set > hintmatching=wordstartswithchar,contains would first try to match > results with wordstartswithchar. Only if it did not find any results, it > would try the 2nd hintmatcher. I am, however, also not too much a fan of > that idea, as it could be highly unpredictable, and you could follow the > wrong hints. I also don't like this solution. > 2.) I think I got that idea from the emacs IDO completion mode: > Type any characters of the link, but in the order they appear. Let me > give you some examples, link text is "emacs email encryption" and i will > write matched chars in UPPERCASE): > > For following that link you could write: > *) EMACS email encryption -> emacs (only if there is only 1 emacs link) > *) Emacs Email Encryption -> eee (basically what you want) > *) Emacs email enCRYption -> ecry (also write part of the link, if > e.g. the first letter is a ? or > other special letter you don't want > to type) I thought in a similar direction. I came up with the following: 1) emacs 2) emacs email encryption 3) emacs email endeavour 4) emacs email endeavour ends Typing 'emacs' -> 1 Typing 'eeenc' -> 2 Typing 'eeend' -> 3 Typing 'eeee' -> 4 The idea is to match each typed letter with the first letter of a word, and if there are no more words, the remaining letters are machted on the last word. I think you are getting less matches if you consider each word in a link in the occuring sequence. I like a more strict and less fuzzy approach. It's for me easier to comprehend. But that's a personal preference. Greetins, Daniel From stubenschrott at gmx.net Fri May 2 04:32:45 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Fri, 02 May 2008 13:32:45 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080502110432.GA6091@desktop> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> Message-ID: <481AFBDD.8060207@gmx.net> Daniel Trstenjak wrote: > I thought in a similar direction. I came up with the following: > > 1) emacs > 2) emacs email encryption > 3) emacs email endeavour > 4) emacs email endeavour ends > > Typing 'emacs' -> 1 I don't like that. In that case there just is no way around pressing . > Typing 'eeenc' -> 2 > Typing 'eeend' -> 3 > Typing 'eeee' -> 4 > > The idea is to match each typed letter with the first letter of a word, > and if there are no more words, the remaining letters are machted on > the last word. I don't like that either. Then you really have to watch for the last word which might not contain "easy" letters. > I think you are getting less matches if you consider each word in a link > in the occuring sequence. Maybe "my" solution would be a good approach, but slightly modified: Just like before, but this time, with "word boundary matching", so for link 2) you could write: Emacs email ENcryption -> een but not: Emacs email enCRYption For most other cases with more dissimilar links, just writing the first letter of each word would still work fine i guess. > I like a more strict and less fuzzy approach. It's for me easier to > comprehend. But that's a personal preference. Sure, but the problem is, that a "strict" approach might work for some test cases, but fail miserably on real-world web pages. -- Martin From stubenschrott at gmx.net Fri May 2 04:35:45 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Fri, 02 May 2008 13:35:45 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481AFBDD.8060207@gmx.net> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> Message-ID: <481AFC91.5080001@gmx.net> Martin Stubenschrott wrote: >> 1) emacs >> 2) emacs email encryption >> 3) emacs email endeavour >> 4) emacs email endeavour ends >> >> Typing 'emacs' -> 1 > > > I don't like that. In that case there just is no way around pressing > . that's why i actually wanted a heuristics, so shorter words are prefered, then you could write em to select "emacs". From Daniel.Trstenjak at online.de Fri May 2 04:46:22 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Fri, 2 May 2008 13:46:22 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481AFBDD.8060207@gmx.net> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> Message-ID: <20080502114622.GB6091@desktop> On Fri, May 02, 2008 at 01:32:45PM +0200, Martin Stubenschrott wrote: > I don't like that. In that case there just is no way around pressing > . In this case you would only have to type 'em' witout an additional . Have a look at the added patch. I have renamed 'wordstartswithchar' in 'wordstartswith'. > I don't like that either. Then you really have to watch for the last > word which might not contain "easy" letters. Normaly you don't have to look at the last word. It's just a heuristic for one word links. Greetings, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: vimperator-0.6-20080502.patch Type: text/x-diff Size: 6468 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080502/8a6d5ec6/attachment.bin From Daniel.Trstenjak at online.de Fri May 2 04:53:08 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Fri, 2 May 2008 13:53:08 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481AFBDD.8060207@gmx.net> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> Message-ID: <20080502115308.GC6091@desktop> On Fri, May 02, 2008 at 01:32:45PM +0200, Martin Stubenschrott wrote: > Maybe "my" solution would be a good approach, but slightly modified: > > Just like before, but this time, with "word boundary matching", so for > link 2) you could write: > Emacs email ENcryption -> een > but not: Emacs email enCRYption > > For most other cases with more dissimilar links, just writing the first > letter of each word would still work fine i guess. Yes, that would be nice :). From stubenschrott at gmx.net Fri May 2 11:35:08 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Fri, 02 May 2008 20:35:08 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080502114622.GB6091@desktop> References: <20080426204457.GA7333@linux.ver> <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> Message-ID: <481B5EDC.6090903@gmx.net> Daniel Trstenjak wrote: > On Fri, May 02, 2008 at 01:32:45PM +0200, Martin Stubenschrott wrote: >> I don't like that. In that case there just is no way around pressing >> . > > In this case you would only have to type 'em' witout an additional > . > > Have a look at the added patch. I have renamed 'wordstartswithchar' in > 'wordstartswith'. Still two things I do not like: 1.) the isLetter() function. Even though I am Austrian, hardcoding ?? etc. looks bad. Why is that needed at all? 2.) I still can't just write "Rossi" in a "Rossi morning time untouched in second Shanghai session" link. My intuitive way to follow such a link would be to type "ros", if that doesn't succeed, I'd just write "mor", making it "rosmor". Of course "rmt" should also work. I am not sure, we'll agree on how a 4th hint-matcher would look like, but I really don't want to add too many of them. (4-5 might be ok, but I certainly won't have 10 hint matchers in vimperator). -- Martin From Daniel.Trstenjak at online.de Sat May 3 03:45:05 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sat, 3 May 2008 12:45:05 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481B5EDC.6090903@gmx.net> References: <4817BE55.8020502@gmx.net> <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> Message-ID: <20080503104505.GA5694@desktop> Hi Martin, On Fri, May 02, 2008 at 08:35:08PM +0200, Martin Stubenschrott wrote: > Still two things I do not like: > > 1.) the isLetter() function. Even though I am Austrian, hardcoding ?? > etc. looks bad. Why is that needed at all? Hey, you caught me ;). It's just hacked in. Is there a more language independet way of determining a letter? Or can we seperate this checking in a language dependent way? Beside letters there should also be some other characters considered as word elements. Like the apostrophe or the hyphen. Perhaps the characters which can be contained in a word should be configurable. Like: wordchars=a-z,?,?,?,',- In vim there are the filetypes, which do meaningful stuff for each programming language. In vimperator there could be natural language types, which could set the option 'wordchars'. Just some thoughts. > 2.) I still can't just write "Rossi" in a "Rossi morning time untouched > in second Shanghai session" link. My intuitive way to follow such a link > would be to type "ros", if that doesn't succeed, I'd just write "mor", > making it "rosmor". Of course "rmt" should also work. I think the consenus we have is, that the typed characters should be matched against the words in the order they appear in the link. Now the question is, which way of matching gets the highest score. We have three ways of matching. 1) first character of each word 2) beginning characters of each word 3) beginning characters of first word Perhaps a very simple algorithm would cover sufficiently all three cases. Start matching the typed characters at the beginning of the first word, if theres no more match, go to the beginning to the next word ... I will try this. > I am not sure, we'll agree on how a 4th hint-matcher would look like, > but I really don't want to add too many of them. (4-5 might be ok, but I > certainly won't have 10 hint matchers in vimperator). I'm absolutely on your side. I'm currently more in experimeting what works best. I'm really not propsing to add all the stuff I'm coming up. I'm just gaming. :) Greetings, Daniel From Daniel.Trstenjak at online.de Sat May 3 05:55:45 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sat, 3 May 2008 14:55:45 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080503104505.GA5694@desktop> References: <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> Message-ID: <20080503125545.GB5694@desktop> Hi Martin, > > On Fri, May 02, 2008 at 08:35:08PM +0200, Martin Stubenschrott wrote: > > Still two things I do not like: > > > > 1.) the isLetter() function. Even though I am Austrian, hardcoding ?? > > etc. looks bad. Why is that needed at all? > > On Sat, May 03, 2008 at 12:45:05PM +0200, Daniel Trstenjak wrote: > Hey, you caught me ;). It's just hacked in. I have now added the option 'wordseparators' to be able to define word separating characters. The default is ' ":'. This option is now used during the hintmatching with 'wordstartswith'. Perhaps this option should also be used during hintmatching with 'wordboundary'. > Perhaps a very simple algorithm would cover sufficiently all three > cases. Start matching the typed characters at the beginning of the first > word, if theres no more match, go to the beginning to the next word ... I have know implemented it in exactly this way. And it works pretty well, and it covers all three cases. I have removed the hintmatching type 'startswith'. Because 'wordstartswith' can be used to achieve the same. I think, now I'm really done with hintmatching. So Martin, you haven't to fear new patches. If someone really, really wants the old system back, by only setting an option like 'hintsystem=char-hints', here are some thoughts how it could be achieved. I'm now very pleased with the new system, so I don't have the drive to do it myself. - Move the 'char-hints.js' script into 'vimperator/src/content' - Add 'char-hints.js' to 'vimperator.xul' - In 'char-hints.js': Rename 'liberator.plugins.charhints' into 'liberator.CharHints' - In 'liberator.js': Make the hint system creation dependend on the option 'hintsystem'. Instead of: if (liberator.has("hints")) { log("hints"); liberator.hints = liberator.Hints(); } this: if (liberator.has("hints")) { log("hints"); if (liberator.option["hintsystem"] == "numeric-hints") liberator.hints = liberator.Hints(); else if (liberator.option["hintsystem"] == "char-hints") liberator.hints = liberator.CharHints(); - Remove the mappings from 'char-hints.js' and 'hints.js' and add them to 'liberator.js' by using the variable 'liberator.hints' Greetings, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: vimperator-0.6-20080503.patch Type: text/x-diff Size: 9547 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080503/377ab3eb/attachment.bin From stubenschrott at gmx.net Sat May 3 09:07:03 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Sat, 03 May 2008 18:07:03 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080503125545.GB5694@desktop> References: <20080430190946.GA7179@linux.ver> <4818CA42.8000501@gmx.net> <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> Message-ID: <481C8DA7.6030007@gmx.net> Daniel Trstenjak wrote: > I have now added the option 'wordseparators' to be able to define word > separating characters. The default is ' ":'. This option is now > used during the hintmatching with 'wordstartswith'. Perhaps this option > should also be used during hintmatching with 'wordboundary'. I will only have time on monday for a better review of the patch, but why don't you just use \b in the regexp for seperating words? I guess that's the way to go. -- Martin From Daniel.Trstenjak at online.de Sat May 3 11:42:57 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sat, 3 May 2008 20:42:57 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481C8DA7.6030007@gmx.net> References: <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> Message-ID: <20080503184257.GA5824@desktop> On Sat, May 03, 2008 at 06:07:03PM +0200, Martin Stubenschrott wrote: > I will only have time on monday for a better review of the patch, but > why don't you just use \b in the regexp for seperating words? I guess > that's the way to go. Yes you are right. I removed the option 'wordseparators' and split now the words by using \W. What is a bit annoying by doing it that way is, that -, ?, ?, ? and ? are considered as word boundaries. Hey I'm german ;). Sorry for the somewhat unmotivated and thrown together patches. I'm currently not in the right mood to do something nice. Greetings, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: vimperator-0.6-20080503-2.patch Type: text/x-diff Size: 5487 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080503/937d045d/attachment-0001.bin From Daniel.Trstenjak at online.de Sun May 4 01:09:29 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sun, 4 May 2008 10:09:29 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080503184257.GA5824@desktop> References: <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> Message-ID: <20080504080929.GA5682@desktop> > > On Sat, May 03, 2008 at 06:07:03PM +0200, Martin Stubenschrott wrote: > > I will only have time on monday for a better review of the patch, but > > why don't you just use \b in the regexp for seperating words? I guess > > that's the way to go. > > On Sat, May 03, 2008 at 08:42:57PM +0200, Daniel Trstenjak wrote: > Yes you are right. I removed the option 'wordseparators' and split now > the words by using \W. > > What is a bit annoying by doing it that way is, that -, ?, ?, ? and ? > are considered as word boundaries. Hey I'm german ;). I'm not satisfied with the current solution. I think the way to go is to define a 'wordseparator' regex, which is used by the hintmatching algorithms to split the words in the link. Otherwise you have to bank on the word splitting of javascript, which seems to produce only something meaningful for the english language. Beside german there are other language for which this just doesn't work well. Greetings, Daniel From stubenschrott at gmx.net Sun May 4 03:24:52 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Sun, 04 May 2008 12:24:52 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080504080929.GA5682@desktop> References: <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <20080504080929.GA5682@desktop> Message-ID: <481D8EF4.9010504@gmx.net> Daniel Trstenjak wrote: > I'm not satisfied with the current solution. I think the way to go is to > define a 'wordseparator' regex, which is used by the hintmatching > algorithms to split the words in the link. What's wrong with \b in the regexp to use for word boundary matching? From Daniel.Trstenjak at online.de Sun May 4 05:38:33 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sun, 4 May 2008 14:38:33 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481D8EF4.9010504@gmx.net> References: <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <20080504080929.GA5682@desktop> <481D8EF4.9010504@gmx.net> Message-ID: <20080504123833.GA5674@desktop> On Sun, May 04, 2008 at 12:24:52PM +0200, Martin Stubenschrott wrote: > What's wrong with \b in the regexp to use for word boundary matching? Like I already said: > On Sat, May 03, 2008 at 08:42:57PM +0200, Daniel Trstenjak wrote: > What is a bit annoying by doing it that way is, that -, ?, ?, ? > are considered as word boundaries. Hey I'm german ;). From tocer.deng at gmail.com Sun May 4 06:32:48 2008 From: tocer.deng at gmail.com (tocer) Date: Sun, 04 May 2008 21:32:48 +0800 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481D8EF4.9010504@gmx.net> References: <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <20080504080929.GA5682@desktop> <481D8EF4.9010504@gmx.net> Message-ID: <481DBB00.4010503@gmail.com> Martin Stubenschrott wrote:: > Daniel Trstenjak wrote: > >> I'm not satisfied with the current solution. I think the way to go is to >> define a 'wordseparator' regex, which is used by the hintmatching >> algorithms to split the words in the link. > > What's wrong with \b in the regexp to use for word boundary matching? Let me get word in. as Daniel said, \b will not work well in other non-engligh language. Now, I ran into the problem about 'nextpattern' option in Vimperator when I want to insert Chinese word into it. --Tocer From stubenschrott at gmx.net Sun May 4 07:01:27 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Sun, 04 May 2008 16:01:27 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481DBB00.4010503@gmail.com> References: <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <20080504080929.GA5682@desktop> <481D8EF4.9010504@gmx.net> <481DBB00.4010503@gmail.com> Message-ID: <481DC1B7.1080406@gmx.net> tocer wrote: > Martin Stubenschrott wrote:: >> Daniel Trstenjak wrote: >> >>> I'm not satisfied with the current solution. I think the way to go is to >>> define a 'wordseparator' regex, which is used by the hintmatching >>> algorithms to split the words in the link. >> >> What's wrong with \b in the regexp to use for word boundary matching? > > Let me get word in. as Daniel said, \b will not work well in other non-engligh > language. Now, I ran into the problem about 'nextpattern' option in Vimperator > when I want to insert Chinese word into it. Maybe we should find a better default pattern than \b. Problem is, a custom "wordseparators" option couldn't be used in a "nextpattern" option. From tocer.deng at gmail.com Sun May 4 08:54:30 2008 From: tocer.deng at gmail.com (tocer) Date: Sun, 04 May 2008 23:54:30 +0800 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481DC1B7.1080406@gmx.net> References: <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <20080504080929.GA5682@desktop> <481D8EF4.9010504@gmx.net> <481DBB00.4010503@gmail.com> <481DC1B7.1080406@gmx.net> Message-ID: <481DDC36.60505@gmail.com> Martin Stubenschrott wrote:: > Maybe we should find a better default pattern than \b. Problem is, a > custom "wordseparators" option couldn't be used in a "nextpattern" option. Sorry, I found the answer of the problem in 'nextpattern' option I meet. It's my fault:(. But as I known, in some East Asian language, such as Chinese, Japanese, Korea, there is no space or hyphen between words and words can't be seperated by regex, so they cound't set "wordseparator" option. My suggest is that beside the custom "wordseparator' option, providing a interface for hintmatching maybe a good idea, and user could implement the interface by himself. I just know a little about firefox programing and javascript. If my opinion is foolish, ignore it please. --Tocer From dpb at driftaway.org Sun May 4 12:15:36 2008 From: dpb at driftaway.org (Daniel Bainton) Date: Sun, 4 May 2008 22:15:36 +0300 Subject: [Vimperator] External editor disables Firefox windows In-Reply-To: <2e24e5b90804300738l2eaf2b7fn8dab08fdf257da75@mail.gmail.com> References: <481670D4.8040804@gmail.com> <2e24e5b90804300738l2eaf2b7fn8dab08fdf257da75@mail.gmail.com> Message-ID: On 30/04/2008, Sitaram Chamarty wrote: > On Tue, Apr 29, 2008 at 3:26 PM, Daniel Bainton wrote: > > ViewSourceWith seems to work somehow. Should check what kind of a hack > > they've done and copy it for us if it's good... > > > I don't know what is ViewSourceWith but I would guess it is "one-way". > Meaning FF does not expect it to return from the external > application. Sort of "fire and forget". > > I may be wrong... Yeah, you are partly wrong. :) The main feature for it is "fire and forget", but it does also do the same thing ctrl-i should do. -- Daniel From garza.m at gmail.com Sun May 4 19:21:54 2008 From: garza.m at gmail.com (Miguel Garza) Date: Sun, 4 May 2008 19:21:54 -0700 Subject: [Vimperator] Hello + mapping my own key commands + opening links w/o using Quickhint + freeze-up Message-ID: <742cc2af0805041921v3a68db96k7214f3fde845da72@mail.gmail.com> Hello; Is this the appropriate place to ask questions about Vimperator that I couldn't figure the answers to from the Help page? One thing in particular I was wondering about is the :map command; I was able to "use" the command (i.e. I could say that I had done it correctly by typing ":map" alone) but it didn't work the way I expected. In fact, I can't see what the :map command does at all. I thought it was just mapping one series of key outputs to a different series...but it doesn't seem to do that. Am I missing something? I was also wondering if it's possible to use the find command ("/") to quickly open a link. Say I see a link on a page that says "About". So I type "/abo " and the link I want begins to be highlighted. Is there something I can enter next to open that link? I know I can use "f" to enter Quickhint mode, but sometimes I just want to do it this other way...it feels more natural in those instances. But is it possible? And finally, I have just come across an instance where Vimperator stopped responding to key presses. I could click in the command-line and do things there, but that was all. I could open a new Firefox window and everything was fine there. I had been using Shift-I and Esc to escape keys or not because I was writing this email in Gmail, a key-intensive site. Is there any way I could get Vimperator responding again in the unresponsive window? Thank you! Miguel On Sun, May 4, 2008 at 12:00 PM, wrote: > Send Vimperator mailing list submissions to > vimperator at mozdev.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://www.mozdev.org/mailman/listinfo/vimperator > or, via email, send a message with subject or body 'help' to > vimperator-request at mozdev.org > > You can reach the person managing the list at > vimperator-owner at mozdev.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Vimperator digest..." > > > Today's Topics: > > 1. Re: Configurable hints for vimperator 0.6 (Daniel Trstenjak) > 2. Re: Configurable hints for vimperator 0.6 (Martin Stubenschrott) > 3. Re: Configurable hints for vimperator 0.6 (Daniel Trstenjak) > 4. Re: Configurable hints for vimperator 0.6 (tocer) > 5. Re: Configurable hints for vimperator 0.6 (Martin Stubenschrott) > 6. Re: Configurable hints for vimperator 0.6 (tocer) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 4 May 2008 10:09:29 +0200 > From: Daniel Trstenjak > Subject: Re: [Vimperator] Configurable hints for vimperator 0.6 > To: vimperator at mozdev.org > Message-ID: <20080504080929.GA5682 at desktop> > Content-Type: text/plain; charset=iso-8859-1 > > > > > On Sat, May 03, 2008 at 06:07:03PM +0200, Martin Stubenschrott wrote: > > > I will only have time on monday for a better review of the patch, but > > > why don't you just use \b in the regexp for seperating words? I guess > > > that's the way to go. > > > > On Sat, May 03, 2008 at 08:42:57PM +0200, Daniel Trstenjak wrote: > > Yes you are right. I removed the option 'wordseparators' and split now > > the words by using \W. > > > > What is a bit annoying by doing it that way is, that -, ?, ?, ? and ? > > are considered as word boundaries. Hey I'm german ;). > > I'm not satisfied with the current solution. I think the way to go is to > define a 'wordseparator' regex, which is used by the hintmatching > algorithms to split the words in the link. > > Otherwise you have to bank on the word splitting of javascript, which > seems to produce only something meaningful for the english language. > > Beside german there are other language for which this just doesn't work > well. > > > Greetings, > Daniel > > > ------------------------------ > > Message: 2 > Date: Sun, 04 May 2008 12:24:52 +0200 > From: Martin Stubenschrott > Subject: Re: [Vimperator] Configurable hints for vimperator 0.6 > To: vimperator at mozdev.org > Message-ID: <481D8EF4.9010504 at gmx.net> > Content-Type: text/plain; charset=ISO-8859-1 > > Daniel Trstenjak wrote: > > > I'm not satisfied with the current solution. I think the way to go is to > > define a 'wordseparator' regex, which is used by the hintmatching > > algorithms to split the words in the link. > > What's wrong with \b in the regexp to use for word boundary matching? > > > ------------------------------ > > Message: 3 > Date: Sun, 4 May 2008 14:38:33 +0200 > From: Daniel Trstenjak > Subject: Re: [Vimperator] Configurable hints for vimperator 0.6 > To: vimperator at mozdev.org > Message-ID: <20080504123833.GA5674 at desktop> > Content-Type: text/plain; charset=iso-8859-1 > > On Sun, May 04, 2008 at 12:24:52PM +0200, Martin Stubenschrott wrote: > > What's wrong with \b in the regexp to use for word boundary matching? > > Like I already said: > > On Sat, May 03, 2008 at 08:42:57PM +0200, Daniel Trstenjak wrote: > > What is a bit annoying by doing it that way is, that -, ?, ?, ? > > are considered as word boundaries. Hey I'm german ;). > > > ------------------------------ > > Message: 4 > Date: Sun, 04 May 2008 21:32:48 +0800 > From: tocer > Subject: Re: [Vimperator] Configurable hints for vimperator 0.6 > To: vimperator at mozdev.org > Message-ID: <481DBB00.4010503 at gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Martin Stubenschrott wrote:: > > Daniel Trstenjak wrote: > > > >> I'm not satisfied with the current solution. I think the way to go is > to > >> define a 'wordseparator' regex, which is used by the hintmatching > >> algorithms to split the words in the link. > > > > What's wrong with \b in the regexp to use for word boundary matching? > > Let me get word in. as Daniel said, \b will not work well in other > non-engligh > language. Now, I ran into the problem about 'nextpattern' option in > Vimperator > when I want to insert Chinese word into it. > > --Tocer > > > ------------------------------ > > Message: 5 > Date: Sun, 04 May 2008 16:01:27 +0200 > From: Martin Stubenschrott > Subject: Re: [Vimperator] Configurable hints for vimperator 0.6 > To: vimperator at mozdev.org > Message-ID: <481DC1B7.1080406 at gmx.net> > Content-Type: text/plain; charset=ISO-8859-1 > > tocer wrote: > > > Martin Stubenschrott wrote:: > >> Daniel Trstenjak wrote: > >> > >>> I'm not satisfied with the current solution. I think the way to go is > to > >>> define a 'wordseparator' regex, which is used by the hintmatching > >>> algorithms to split the words in the link. > >> > >> What's wrong with \b in the regexp to use for word boundary matching? > > > > Let me get word in. as Daniel said, \b will not work well in other > non-engligh > > language. Now, I ran into the problem about 'nextpattern' option in > Vimperator > > when I want to insert Chinese word into it. > > Maybe we should find a better default pattern than \b. Problem is, a > custom "wordseparators" option couldn't be used in a "nextpattern" option. > > > ------------------------------ > > Message: 6 > Date: Sun, 04 May 2008 23:54:30 +0800 > From: tocer > Subject: Re: [Vimperator] Configurable hints for vimperator 0.6 > To: vimperator at mozdev.org > Message-ID: <481DDC36.60505 at gmail.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Martin Stubenschrott wrote:: > > Maybe we should find a better default pattern than \b. Problem is, a > > custom "wordseparators" option couldn't be used in a "nextpattern" > option. > > Sorry, I found the answer of the problem in 'nextpattern' option I meet. > It's my > fault:(. > > But as I known, in some East Asian language, such as Chinese, Japanese, > Korea, > there is no space or hyphen between words and words can't be seperated by > regex, > so they cound't set "wordseparator" option. My suggest is that beside the > custom > "wordseparator' option, providing a interface for hintmatching maybe a > good > idea, and user could implement the interface by himself. > > I just know a little about firefox programing and javascript. If my > opinion is > foolish, ignore it please. > > --Tocer > > > ------------------------------ > > _______________________________________________ > Vimperator mailing list > Vimperator at mozdev.org > https://www.mozdev.org/mailman/listinfo/vimperator > > > End of Vimperator Digest, Vol 14, Issue 5 > ***************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.mozdev.org/pipermail/vimperator/attachments/20080504/76d45789/attachment.html From stubenschrott at gmx.net Mon May 5 02:41:36 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Mon, 05 May 2008 11:41:36 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080503184257.GA5824@desktop> References: <20080501144016.GA9135@linux.ver> <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> Message-ID: <481ED650.2030401@gmx.net> Daniel Trstenjak wrote: > On Sat, May 03, 2008 at 06:07:03PM +0200, Martin Stubenschrott wrote: >> I will only have time on monday for a better review of the patch, but >> why don't you just use \b in the regexp for seperating words? I guess >> that's the way to go. > > Yes you are right. I removed the option 'wordseparators' and split now > the words by using \W. I finally tested the patch, and it seems to work quite fine and you are right, a "wordseperators" option would probably a good idea, since \W really is not perfect for non-english languages. However, a last thing we probably disagree: I thought that "in order" just means, that all typed letters must be in order but NOT that you need to type letters of each word. So: link "No wall-clock numbers for Thunderbird" -> *) "numthu" should match *) "thunum" should not match The reason is that it's not always that good to type part of the first word, e.g. in link: "2008-05-03 Thunderbird Trunk builds" you would need to escape the "2" to write the first word. Just writing "ttb" or "trbui" would be better. Of course this might lead to more possible matches, but I guess it would be worth a try. What do you think? -- Martin From stubenschrott at gmx.net Mon May 5 02:44:03 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Mon, 05 May 2008 11:44:03 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080504080929.GA5682@desktop> References: <20080501155035.GB9135@linux.ver> <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <20080504080929.GA5682@desktop> Message-ID: <481ED6E3.8040007@gmx.net> Ah, another bug: http://www.javascriptkit.com/javatutors/redev2.shtml# Try to follow link "Free Java applets", -> fjap -> not found. I guess the problem is, that "ja" is matches with "Java" instead of J for Java and a for applets. That might be a little difficult to tackle, but would be good to make the algorithm more robust (what you want :)). From Daniel.Trstenjak at online.de Mon May 5 09:46:38 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Mon, 5 May 2008 18:46:38 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481ED650.2030401@gmx.net> References: <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> Message-ID: <20080505164638.GA5706@desktop> On Mon, May 05, 2008 at 11:41:36AM +0200, Martin Stubenschrott wrote: > What do you think? One way would be to go to the next word if no character matches in the current one. I tested this on some websites, and you're getting more matches. I don't like, that the behaviour is less comprehensible. Would it be an option, to ignore numerics in words? Or are you disliking the ordered matching in general? Greetings, Daniel From Daniel.Trstenjak at online.de Mon May 5 10:08:54 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Mon, 5 May 2008 19:08:54 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481ED650.2030401@gmx.net> References: <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> Message-ID: <20080505170854.GA6318@desktop> On Mon, May 05, 2008 at 11:41:36AM +0200, Martin Stubenschrott wrote: > What do you think? The question is: How much of an issue it really is. If it's only an issue for a minor number of links, I would just ignore it. You always have the numeric hints to cover these cases. I wouldn't sacrifice the 'wordstartswith' hintmatching for these cases. I think it works really nice, because all words are matched in an ordered way. Greetings, Daniel From stubenschrott at gmx.net Mon May 5 10:17:46 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Mon, 05 May 2008 19:17:46 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080505164638.GA5706@desktop> References: <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505164638.GA5706@desktop> Message-ID: <481F413A.308@gmx.net> Daniel Trstenjak wrote: > I tested this on some websites, and you're getting more matches. I don't > like, that the behaviour is less comprehensible. While I agree that you might get more results, is it really slowing down hint selection? Especially when using the first-letter of words mode i guess you would still be able to select links with 2-3 keys maximum. Could you post a (even incomplete) patch for me to test out? > Would it be an option, to ignore numerics in words? Or are you > disliking the ordered matching in general? The problem is not only numerics, but also other special characters like & or # or even umlauts (i don't have them on my (US-)keyboard). Also the a big reason is that you usually like to write longer words: "F-16 R/C Scale Model with Afterburner!" I wouldn't like to write-> frc to follow the hint (with ignoring numbers) because, but rather scaafter or something like that. Actually you try to avoid "visual noise" and go for longer words where there are hardly any special characters next to them. -- Martin From stubenschrott at gmx.net Mon May 5 10:27:35 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Mon, 05 May 2008 19:27:35 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080505170854.GA6318@desktop> References: <481ACEE0.6010808@gmx.net> <20080502110432.GA6091@desktop> <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> Message-ID: <481F4387.6090701@gmx.net> Daniel Trstenjak wrote: > On Mon, May 05, 2008 at 11:41:36AM +0200, Martin Stubenschrott wrote: >> What do you think? > > The question is: How much of an issue it really is. If it's only an > issue for a minor number of links, I would just ignore it. You always > have the numeric hints to cover these cases. I wouldn't sacrifice the > 'wordstartswith' hintmatching for these cases. I think it works really > nice, because all words are matched in an ordered way. That's a good point. I'd still like to test the other approach, if you already have done it. Especially because for some cases writing the first letters might be good, but there are certainly links where you really prefer to just write ANY word in the middle of a link. From Daniel.Trstenjak at online.de Mon May 5 10:37:16 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Mon, 5 May 2008 19:37:16 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481F4387.6090701@gmx.net> References: <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> Message-ID: <20080505173716.GB6318@desktop> On Mon, May 05, 2008 at 07:27:35PM +0200, Martin Stubenschrott wrote: > That's a good point. I'd still like to test the other approach, if you > already have done it. Just remove from the function 'wordStartsWith' in 'hints.js' these lines: if (prevCharIdx == charIdx) return false; Greetings, Daniel From stubenschrott at gmx.net Mon May 5 13:22:08 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Mon, 05 May 2008 22:22:08 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080505173716.GB6318@desktop> References: <481AFBDD.8060207@gmx.net> <20080502114622.GB6091@desktop> <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> Message-ID: <481F6C70.3080903@gmx.net> Daniel Trstenjak wrote: > On Mon, May 05, 2008 at 07:27:35PM +0200, Martin Stubenschrott wrote: >> That's a good point. I'd still like to test the other approach, if you >> already have done it. > > Just remove from the function 'wordStartsWith' in 'hints.js' these lines: > > if (prevCharIdx == charIdx) > return false; Thanks, I tried that now, and came to the following conclusion: *) There are use cases where the former thing works better, and ones where the modified function works better. E.g. there is no way to select a link on this page without numbers: http://www.krone-blog.at/ where many links start with "Krone-Blog: " *) Overall i prefer the modified version because it rather works like a hybrid version and i can select what part of a link i write, depending on the situation. Therefore, I would apply that (modified) patch unless you find time and motivation to hack the "wordseperators" option in in the next days. Of course you are free to come up with an even better hint-matcher in future or provide sequential patches for existing hint matchers :) -- Martin From dteslenko at gmail.com Tue May 6 10:52:00 2008 From: dteslenko at gmail.com (Dmitry Teslenko) Date: Tue, 6 May 2008 21:52:00 +0400 Subject: [Vimperator] comma and quotes Message-ID: <91325fec0805061052n73c41a13qc803995f0642d30b@mail.gmail.com> Hello! Invoking following command: :o g "one, two" results in two tabs displaying search results for '"one' and 'two"' From stubenschrott at gmx.net Tue May 6 10:59:33 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Tue, 06 May 2008 19:59:33 +0200 Subject: [Vimperator] comma and quotes In-Reply-To: <91325fec0805061052n73c41a13qc803995f0642d30b@mail.gmail.com> References: <91325fec0805061052n73c41a13qc803995f0642d30b@mail.gmail.com> Message-ID: <48209C85.4050309@gmx.net> Dmitry Teslenko wrote: > Hello! > Invoking following command: > :o g "one, two" > results in two tabs displaying search results for '"one' and 'two"' Right, just like expected and documented. Right now there isn't a way to escape a , however. From dteslenko at gmail.com Tue May 6 11:10:41 2008 From: dteslenko at gmail.com (Dmitry Teslenko) Date: Tue, 6 May 2008 22:10:41 +0400 Subject: [Vimperator] comma and quotes In-Reply-To: <48209C85.4050309@gmx.net> References: <91325fec0805061052n73c41a13qc803995f0642d30b@mail.gmail.com> <48209C85.4050309@gmx.net> Message-ID: <91325fec0805061110g6d0ad19dod9d3d98766b12896@mail.gmail.com> On Tue, May 6, 2008 at 9:59 PM, Martin Stubenschrott wrote: > Right, just like expected and documented. Right now there isn't a way to > escape a , however. I have no doubt it's documented this way but I have serious doubts it's a "expected" behavior also. Expected by whom, by the way? :) From Daniel.Trstenjak at online.de Tue May 6 11:29:56 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Tue, 6 May 2008 20:29:56 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <481F6C70.3080903@gmx.net> References: <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> Message-ID: <20080506182956.GA5742@desktop> On Mon, May 05, 2008 at 10:22:08PM +0200, Martin Stubenschrott wrote: > E.g. there is no way to select a link on this page without numbers: > http://www.krone-blog.at/ where many links start with "Krone-Blog: " I think the confusing thing in this case is, that '-' is considered as a word separator. 1) 'Krone-Blog: Blah' 2) 'Krone-Blog: Foo' Typed -> executed: ------------------ kbb -> 1) kbf -> 2) This case should be solved by the option 'wordseperators'. > *) Overall i prefer the modified version because it rather works like a > hybrid version and i can select what part of a link i write, depending > on the situation. That's right. But the difference to the hintmaching way 'wordboudary' is than minimal. > Therefore, I would apply that (modified) patch unless you find time and > motivation to hack the "wordseperators" option in in the next days. Yes, commit this stuff now. Have we consensus, that the 'wordseperators' option should be a regex, which is used to split words for the hintmatching algorithms 'wordboudary' and 'wordstartswith'? If I'm implementing the option 'wordseperators', can I than switch back the behaviour of 'wordstartswith'? Greetings, Daniel From stubenschrott at gmx.net Tue May 6 15:46:48 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 07 May 2008 00:46:48 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080506182956.GA5742@desktop> References: <481B5EDC.6090903@gmx.net> <20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> Message-ID: <4820DFD8.1080301@gmx.net> > I think the confusing thing in this case is, that '-' is considered as a > word separator. > > 1) 'Krone-Blog: Blah' > 2) 'Krone-Blog: Foo' > > Typed -> executed: > ------------------ > kbb -> 1) > kbf -> 2) > > This case should be solved by the option 'wordseperators'. Well - isn't the problem, i expect that to be a word seperator, but in that case just writing "foo" is IMHO faster/easier than "kbf". >> *) Overall i prefer the modified version because it rather works like a >> hybrid version and i can select what part of a link i write, depending >> on the situation. > > That's right. But the difference to the hintmaching way 'wordboudary' is > than minimal. Right, the main difference is that the matches must be in order and that you don't need spaces between characters. It might be ok for me to merge those two however. >> Therefore, I would apply that (modified) patch unless you find time and >> motivation to hack the "wordseperators" option in in the next days. > > Yes, commit this stuff now. Too late :) I am right now in the process of integrating external editor support in muttator, so my working copy is a mess, which I can't apply/commit patches currently. With git it would be so much easier than with CVS... So commiting this patch is postponed unfortunatley until i can commit my other patch first :( > Have we consensus, that the 'wordseperators' option should be a regex, > which is used to split words for the hintmatching algorithms > 'wordboudary' and 'wordstartswith'? Yes, default probably [^a-zA-Z0-9????????...] or similar. > If I'm implementing the option 'wordseperators', can I than switch back > the behaviour of 'wordstartswith'? Yes, but only if you also merge "wordboundary" with "wordstartswith". Then we would have 3 quite different matchers: 1.) contains 2.) wordboundary (without the need to seperate words with spaces, but if it's easy it should optionally be allowed). 3.) wordstartswith which is your prefered way. Hope this compromise is suitable for you. -- Martin PS: The first mail written with (g)vim again for some months. What a pleasure :) From tocer.deng at gmail.com Tue May 6 18:31:00 2008 From: tocer.deng at gmail.com (tocer) Date: Wed, 07 May 2008 09:31:00 +0800 Subject: [Vimperator] comma and quotes In-Reply-To: <91325fec0805061052n73c41a13qc803995f0642d30b@mail.gmail.com> References: <91325fec0805061052n73c41a13qc803995f0642d30b@mail.gmail.com> Message-ID: <48210654.4030301@gmail.com> Dmitry Teslenko wrote:: > Hello! > Invoking following command: > :o g "one, two" > results in two tabs displaying search results for '"one' and 'two"' You could type the following command in this case: :o g "one,two" Note that there is no space after comma, and the result is the same in search engine. --Tocer From Thomas.Svensen at fast.no Wed May 7 02:04:11 2008 From: Thomas.Svensen at fast.no (Thomas Svensen) Date: Wed, 7 May 2008 11:04:11 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <4820DFD8.1080301@gmx.net> References: <481B5EDC.6090903@gmx.net><20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop><481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop><481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop><481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop><481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> Message-ID: Hi, It has been interested to follow the discussion on matching algorithms for hints. I thought I would just toss in some comments from the sideline: > Yes, default probably [^a-zA-Z0-9????????...] or similar. Please remember to add ?????? for us Scandinavian users :-) > Then we would have 3 quite different matchers: > 1.) contains > 2.) wordboundary (without the need to seperate words with spaces, but if > it's easy it should optionally be allowed). > 3.) wordstartswith which is your prefered way. > > Hope this compromise is suitable for you. I am currently a fan of the "startswith" matching. Does the above mean that "startswith" will disappear? Please, keep up the great work! If you ever come by Oslo, I'll buy you a beer :-) Thomas Svensen Senior Solutions Architect FAST From stubenschrott at gmx.net Wed May 7 02:11:19 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 07 May 2008 11:11:19 +0200 Subject: [Vimperator] comma and quotes In-Reply-To: <91325fec0805061110g6d0ad19dod9d3d98766b12896@mail.gmail.com> References: <91325fec0805061052n73c41a13qc803995f0642d30b@mail.gmail.com> <48209C85.4050309@gmx.net> <91325fec0805061110g6d0ad19dod9d3d98766b12896@mail.gmail.com> Message-ID: <48217237.9010308@gmx.net> Dmitry Teslenko wrote: > On Tue, May 6, 2008 at 9:59 PM, Martin Stubenschrott > I have no doubt it's documented this way but I have serious doubts > it's a "expected" behavior also. Expected by whom, by the way? :) Expected by me, the main author ;) So you can do e.g. :open osnews, slashdot to open a series of bookmarks quickly. From stubenschrott at gmx.net Wed May 7 02:17:13 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 07 May 2008 11:17:13 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: References: <481B5EDC.6090903@gmx.net><20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop><481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop><481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop><481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop><481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> Message-ID: <48217399.1030307@gmx.net> Thomas Svensen wrote: >> Yes, default probably [^a-zA-Z0-9????????...] or similar. > > Please remember to add ?????? for us Scandinavian users :-) Maybe the other way round would be better, just [\s-_(;:...] or use of character ranges; \u00xx-\u00xx. I am sure Daniel comes up with a good default pattern. >> Then we would have 3 quite different matchers: >> 1.) contains >> 2.) wordboundary (without the need to seperate words with spaces, but if >> it's easy it should optionally be allowed). >> 3.) wordstartswith which is your prefered way. >> >> Hope this compromise is suitable for you. > > I am currently a fan of the "startswith" matching. Does the above mean that > "startswith" will disappear? What do you mean "startswith"? Writing "abw" for "a boring word" will still work with wordstartswith, but I propose to rename the matcher to "firstletter". -- Martin From Thomas.Svensen at fast.no Wed May 7 03:31:40 2008 From: Thomas.Svensen at fast.no (Thomas Svensen) Date: Wed, 7 May 2008 12:31:40 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <48217399.1030307@gmx.net> References: <481B5EDC.6090903@gmx.net><20080503104505.GA5694@desktop> <20080503125545.GB5694@desktop><481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop><481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop><481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop><481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop><4820DFD8.1080301@gmx.net> <48217399.1030307@gmx.net> Message-ID: >>> Then we would have 3 quite different matchers: >>> 1.) contains >>> 2.) wordboundary (without the need to seperate words with spaces, but if >>> it's easy it should optionally be allowed). >>> 3.) wordstartswith which is your prefered way. >>> >>> Hope this compromise is suitable for you. >> >> I am currently a fan of the "startswith" matching. Does the above mean >that >> "startswith" will disappear? > >What do you mean "startswith"? Writing "abw" for "a boring word" will still >work with wordstartswith, but I propose to rename the matcher to >"firstletter". Ahh, OK. So "wordstartswith"/"firstletter" is really a tweak on the original "startswith". But if I have two links: - "are we equal, so to speak" - "awesome stories" I will have to type "aweso" to select the second link, while with a strict "startswith", it would suffice with "aw"? OK, the example is a bit contrived, but you see my point? If it's not a big thing for you, I think keeping "startswith" as it is in my "May 1st" XPI, as a 4th option, could be a good idea :-) Just my 5 cents. Thomas Svensen Senior Solutions Architect FAST From Daniel.Trstenjak at online.de Wed May 7 11:09:20 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Wed, 7 May 2008 20:09:20 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <4820DFD8.1080301@gmx.net> References: <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> Message-ID: <20080507180919.GA5712@desktop> On Wed, May 07, 2008 at 12:46:48AM +0200, Martin Stubenschrott wrote: > Yes, but only if you also merge "wordboundary" with "wordstartswith". By merging you mean, that both are using the 'wordseparators' regex, right? > 1.) contains > 2.) wordboundary (without the need to seperate words with spaces, but if > it's easy it should optionally be allowed). > 3.) wordstartswith which is your prefered way. > > Hope this compromise is suitable for you. That's fine for me. Greetings, Daniel From Daniel.Trstenjak at online.de Wed May 7 11:12:36 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Wed, 7 May 2008 20:12:36 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <48217399.1030307@gmx.net> References: <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <48217399.1030307@gmx.net> Message-ID: <20080507181236.GB5712@desktop> On Wed, May 07, 2008 at 11:17:13AM +0200, Martin Stubenschrott wrote: > Maybe the other way round would be better, just [\s-_(;:...] or use of > character ranges; > \u00xx-\u00xx. Yes, I would also prefer a language independent regex for 'wordseparators'. > I am sure Daniel comes up with a good default pattern. Sure :). Greetings, Daniel From stubenschrott at gmx.net Wed May 7 11:25:01 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 07 May 2008 20:25:01 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080507180919.GA5712@desktop> References: <20080503125545.GB5694@desktop> <481C8DA7.6030007@gmx.net> <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> Message-ID: <4821F3FD.60303@gmx.net> Daniel Trstenjak wrote: > On Wed, May 07, 2008 at 12:46:48AM +0200, Martin Stubenschrott wrote: >> Yes, but only if you also merge "wordboundary" with "wordstartswith". > > By merging you mean, that both are using the 'wordseparators' regex, > right? Well, also that, yes. But I meant that the _current_ wordboundary matcher is so similar to the one proposed by me, that we could merge them to one matcher. Then we could have your additional as a third matcher, which requires to start with the first character of the first word (that's why i proposed that matcher to be named "firstletter" in another mail). Hope it is clearer now, Martin From Daniel.Trstenjak at online.de Wed May 7 11:29:23 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Wed, 7 May 2008 20:29:23 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: References: <48217399.1030307@gmx.net> Message-ID: <20080507182923.GC5712@desktop> On Wed, May 07, 2008 at 12:31:40PM +0200, Thomas Svensen wrote: > But if I have two links: > - "are we equal, so to speak" > - "awesome stories" > > I will have to type "aweso" to select the second link, while with a > strict "startswith", > it would suffice with "aw"? OK, the example is a bit contrived, but you > see my point? To select the second link with 'wordstartswith' you could type 'awes' or just 'as'. 'awes' -> "[awes]ome stories" 'as' -> "[a]wesome [s]tories" 'awe' matches in both links: "[awe]some stories" "[a]re [we] equal, so to speak" 'startswith' behaves like a subset of 'wordstartswith', and 'wordstartswith' gives additional possibilities to resolve ambiguities. Greetings, Daniel From Daniel.Trstenjak at online.de Wed May 7 11:52:52 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Wed, 7 May 2008 20:52:52 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <4821F3FD.60303@gmx.net> References: <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> Message-ID: <20080507185252.GD5712@desktop> On Wed, May 07, 2008 at 08:25:01PM +0200, Martin Stubenschrott wrote: > Well, also that, yes. But I meant that the _current_ wordboundary matcher > is so similar to the one proposed by me, that we could merge them to one > matcher. Ok, the new hintmatcher are: ============================ contains: --------- As supplied before. wordstartswith: --------------- The typed characters have to match with the beginnings of words, in the order they appear in the link. (like the previous wordboundary, but the words are matched ordered) firstletters: ------------- The typed characters have to match with the beginnings of words, in the order they appear in the link. Starting at the first word all successive words have to match. Greetings, Daniel From Daniel.Trstenjak at online.de Wed May 7 11:58:04 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Wed, 7 May 2008 20:58:04 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080507182923.GC5712@desktop> References: <48217399.1030307@gmx.net> <20080507182923.GC5712@desktop> Message-ID: <20080507185804.GE5712@desktop> On Wed, May 07, 2008 at 08:29:23PM +0200, Daniel Trstenjak wrote: > To select the second link with 'wordstartswith' you could type 'awes' or > just 'as'. > > 'awes' -> "[awes]ome stories" > 'as' -> "[a]wesome [s]tories" > > > 'awe' matches in both links: "[awe]some stories" > "[a]re [we] equal, so to speak" > > > 'startswith' behaves like a subset of 'wordstartswith', and > 'wordstartswith' gives additional possibilities to resolve ambiguities. :%s/wordstartswith/firstletters Greetings, Daniel From stubenschrott at gmx.net Wed May 7 13:59:26 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 07 May 2008 22:59:26 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080507185252.GD5712@desktop> References: <20080503184257.GA5824@desktop> <481ED650.2030401@gmx.net> <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> Message-ID: <4822182E.7060803@gmx.net> Daniel Trstenjak wrote: > On Wed, May 07, 2008 at 08:25:01PM +0200, Martin Stubenschrott wrote: >> Well, also that, yes. But I meant that the _current_ wordboundary matcher >> is so similar to the one proposed by me, that we could merge them to one >> matcher. > > Ok, the new hintmatcher are: > ============================ > > contains: > --------- > As supplied before. > > wordstartswith: > --------------- > The typed characters have to match with the beginnings of words, > in the order they appear in the link. > (like the previous wordboundary, but the words are matched ordered) > > > firstletters: > ------------- > The typed characters have to match with the beginnings of words, > in the order they appear in the link. Starting at the first > word all successive words have to match. Yeah, we agree, cool :) "wordstartswith" has however another difference to wordboundary, writing spaces to separate words are optional now (if possible). I think all three matches make sense and server their purpose for different kind of people. -- Martin From Daniel.Trstenjak at online.de Tue May 13 11:01:15 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Tue, 13 May 2008 20:01:15 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <4822182E.7060803@gmx.net> References: <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> Message-ID: <20080513180115.GA5669@desktop> Hi Martin, On Wed, May 07, 2008 at 10:59:26PM +0200, Martin Stubenschrott wrote: > Yeah, we agree, cool :) > > "wordstartswith" has however another difference to wordboundary, writing spaces to > separate words are optional now (if possible). > > I think all three matches make sense and server their purpose for different kind of people. Done. See the patch. Have fun. Greetings, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: vimperator-0.6-20080513.patch Type: text/x-diff Size: 16189 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080513/522d9644/attachment.bin From 404notfound at gmail.com Mon May 12 11:11:48 2008 From: 404notfound at gmail.com (Norman Lee) Date: Mon, 12 May 2008 11:11:48 -0700 Subject: [Vimperator] Separate hint extension? Message-ID: <59cf2af80805121111gefd8649x6fd3a9ee57e5b425@mail.gmail.com> I use Vim a fair bit for my CS classes, so I thought I'd try out the Vimperator extension. However, it's just too extreme a change from my usual web browsing habits. I love the way the hinting works, though, particularly with the ability to easily target multiple links simultaneously. It reminds me of how fond I was of Hit-a-Hint before the limitations and bugginess started to bother me. I guess it's a bit of a long shot, since the hints are just one component of the whole Vimperator package, but would it be possible to see an extension with just the hints? I would wait for HaH to be updated instead, but after a year and a half of silence, I've all but given up on the hope of an update. Cheers, Norman From stubenschrott at gmx.net Tue May 13 12:40:39 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Tue, 13 May 2008 21:40:39 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080513180115.GA5669@desktop> References: <20080505170854.GA6318@desktop> <481F4387.6090701@gmx.net> <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> Message-ID: <4829EEB7.8080008@gmx.net> Daniel Trstenjak wrote: >> I think all three matches make sense and server their purpose for different kind of people. > > Done. See the patch. Have fun. Great. Haven't had time to test it yet. I am not too fond, however, of the HintMatcher class. Why not just put the functions in liberator.Hints as before? Or if you really want a class, then it should be "inside" (and only visible) of liberator.Hints. Reason: Both are so much connected, and liberator.Hints without a HintMatcher just wouldn't work, so I think they should be together. Would that be too much work? Apart from that, the patch seems mergable for me. -- Martin From vogt.adam at gmail.com Tue May 13 15:54:57 2008 From: vogt.adam at gmail.com (Adam Vogt) Date: Tue, 13 May 2008 18:54:57 -0400 Subject: [Vimperator] Separate hint extension? In-Reply-To: <59cf2af80805121111gefd8649x6fd3a9ee57e5b425@mail.gmail.com> References: <59cf2af80805121111gefd8649x6fd3a9ee57e5b425@mail.gmail.com> Message-ID: <20080513225457.GA3393@dell> It seem a bit odd, to not want vim keymappings :) Can't you just: - unmap the keys that conflict in vimperator - :set guioptions=mT (in ~/.vimperatorrc) without the separate extension business. Just wondering, exactly where does it get in the way? * On Monday, May 12 2008, Norman Lee wrote: >I use Vim a fair bit for my CS classes, so I thought I'd try out the >Vimperator extension. However, it's just too extreme a change from my >usual web browsing habits. I love the way the hinting works, though, >particularly with the ability to easily target multiple links >simultaneously. It reminds me of how fond I was of Hit-a-Hint before >the limitations and bugginess started to bother me. > >I guess it's a bit of a long shot, since the hints are just one >component of the whole Vimperator package, but would it be possible to >see an extension with just the hints? I would wait for HaH to be >updated instead, but after a year and a half of silence, I've all but >given up on the hope of an update. > >Cheers, >Norman >_______________________________________________ >Vimperator mailing list >Vimperator at mozdev.org >https://www.mozdev.org/mailman/listinfo/vimperator From dpb at driftaway.org Tue May 13 21:50:41 2008 From: dpb at driftaway.org (Daniel Bainton) Date: Wed, 14 May 2008 07:50:41 +0300 Subject: [Vimperator] Separate hint extension? In-Reply-To: <59cf2af80805121111gefd8649x6fd3a9ee57e5b425@mail.gmail.com> References: <59cf2af80805121111gefd8649x6fd3a9ee57e5b425@mail.gmail.com> Message-ID: 2008/5/12 Norman Lee <404notfound at gmail.com>: > I use Vim a fair bit for my CS classes, so I thought I'd try out the > Vimperator extension. However, it's just too extreme a change from my > usual web browsing habits. I love the way the hinting works, though, > particularly with the ability to easily target multiple links > simultaneously. It reminds me of how fond I was of Hit-a-Hint before > the limitations and bugginess started to bother me. > > I guess it's a bit of a long shot, since the hints are just one > component of the whole Vimperator package, but would it be possible to > see an extension with just the hints? I would wait for HaH to be > updated instead, but after a year and a half of silence, I've all but > given up on the hope of an update. Well, nothing stops you from taking the code from Vimperator and making your own extension. But we surely wont do it. -- Daniel From Daniel.Trstenjak at online.de Wed May 14 10:26:48 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Wed, 14 May 2008 19:26:48 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <4829EEB7.8080008@gmx.net> References: <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> Message-ID: <20080514172648.GA5715@desktop> On Tue, May 13, 2008 at 09:40:39PM +0200, Martin Stubenschrott wrote: > Would that be too much work? I changed it. See the patch. Greetings, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: vimperator-0.6-20080514.patch Type: text/x-diff Size: 12589 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080514/ca2bce0b/attachment.bin From stubenschrott at gmx.net Wed May 14 11:00:05 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 14 May 2008 20:00:05 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080514172648.GA5715@desktop> References: <20080505173716.GB6318@desktop> <481F6C70.3080903@gmx.net> <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> Message-ID: <482B28A5.5010503@gmx.net> Daniel Trstenjak wrote: > On Tue, May 13, 2008 at 09:40:39PM +0200, Martin Stubenschrott wrote: >> Would that be too much work? > > I changed it. See the patch. Great! Sorry for the additional work :( I applied it now, and it works awesome! I just noticed with "firstletters" I cannot seem to open "Press releases" on the left of: http://trolltech.com/company/newsroom/announcements/press.2008-05-14.1108908046 I tried with "prel", but well, it's ok for me, if you see a bug somewhere, feel free to provide an update. Thanks a lot for the patch, I just added "-" to wordseperators by default, but i think you default value was chosen very well otherwise. Also some typos fixed and converted the options.txt to utf-8 from latin1, but all minor things. best regards, Martin From Daniel.Trstenjak at online.de Wed May 14 11:14:34 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Wed, 14 May 2008 20:14:34 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <482B28A5.5010503@gmx.net> References: <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> Message-ID: <20080514181434.GB5715@desktop> On Wed, May 14, 2008 at 08:00:05PM +0200, Martin Stubenschrott wrote: > I just noticed with "firstletters" I cannot seem to open "Press > releases" on the left of: > > http://trolltech.com/company/newsroom/announcements/press.2008-05-14.1108908046 > > I tried with "prel", but well, it's ok for me, if you see a bug > somewhere, feel free to provide an update. The problem in this case is, that the "pre" of "prel" matches with "[Pre]ss", and the next word doesnt's start with a "l". In this case you can give the algortihm a hint by adding a space: "p rel". Or just "p r". Greetings, Daniel From stubenschrott at gmx.net Wed May 14 11:27:00 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 14 May 2008 20:27:00 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080514181434.GB5715@desktop> References: <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net> <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> Message-ID: <482B2EF4.7050803@gmx.net> Daniel Trstenjak wrote: > On Wed, May 14, 2008 at 08:00:05PM +0200, Martin Stubenschrott wrote: >> I just noticed with "firstletters" I cannot seem to open "Press >> releases" on the left of: >> >> http://trolltech.com/company/newsroom/announcements/press.2008-05-14.1108908046 >> >> I tried with "prel", but well, it's ok for me, if you see a bug >> somewhere, feel free to provide an update. > > The problem in this case is, that the "pre" of "prel" matches with > "[Pre]ss", and the next word doesnt's start with a "l". I think that's the problem of the algorithm, "pre" should either match with "[pre]ss" or "[p]ress [re]lease" - of course it's much harder to do, but also much less annoying :) As an end user you don't care about how the algorithm works, it just doesn't work like you would expect. Anyway, if you don't have a quick idea how this could be changed, it's no problem, if people become too much annoyed, i am sure they'll come up with patches :) -- Martin From draifen at gmail.com Wed May 14 11:40:54 2008 From: draifen at gmail.com (Matthew Gardner) Date: Wed, 14 May 2008 12:40:54 -0600 Subject: [Vimperator] Quick mapping question Message-ID: <482B3236.4000003@gmail.com> I'm on a mac, and would like to map the delete key to the same function as H (the default behavior in firefox). I've tried using map H, and many variants (, , , others), but I can't get anything to work. I have a feeling I just don't know what vimperator calls the delete key on a mac. Anyone know how to do this the right way? Thanks, Matt From stubenschrott at gmx.net Wed May 14 11:54:13 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 14 May 2008 20:54:13 +0200 Subject: [Vimperator] Quick mapping question In-Reply-To: <482B3236.4000003@gmail.com> References: <482B3236.4000003@gmail.com> Message-ID: <482B3555.8080503@gmx.net> Matthew Gardner wrote: > I'm on a mac, and would like to map the delete key to the same function > as H (the default behavior in firefox). I've tried using map > H, and many variants (, , , > others), but I can't get anything to work. I have a feeling I just > don't know what vimperator calls the delete key on a mac. Anyone know > how to do this the right way? On Linux this works: :map H From stubenschrott at gmx.net Wed May 14 12:06:55 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Wed, 14 May 2008 21:06:55 +0200 Subject: [Vimperator] [ANNOUNCEMENT] Vimperator 1.0 released! Message-ID: <482B384F.9040909@gmx.net> Hello all 212 members of this list! Today is a big announcement, as I finally released Vimperator 1.0 to the public! It has tremendously many new features and bug fixes. Also it should be quite stable. You will need Firefox3 however, a first release candidate should be out soon. (Incomplete) list of changes: 2008-05-14: * version 1.0 * THIS VERSION ONLY WORKS WITH FIREFOX 3.0 beta3 or newer * IMPORTANT: Major hints rewrite read up the new help for the f, F and ; commands for details removed the following hint options: 'hintchars' 'maxhints' added the following hint options: 'hinttimeout', 'hintmatching', 'wordseperators' * IMPORTANT: changed 'I' key to Ctrl-Q to also work in textboxes * IMPORTANT: :bmarks! and :history! open the matching items now in a tab, instead of bringing up the bookmarks/history window * IMPORTANT: "B" mapping now works just like :buffers, old bufferwindow will be removed at some time. Use B5gt to jump to the 5th tab. * also go to INSERT mode for HTMLSelectElements, so you can type text to go to element in drop down boxes * new "S" flag for "complete" to list google suggestions in :open vimp and pressing tab (disabled by default). Also added new 'suggestengines' option. * gi accepts now a count to jump to the nth input field * ctrl-t on input fields starts a very basic vi-mode * :play for playing a recorded macro * :[del]macros [regex] for listing/deleting recorded macros * :set! now lets you change about:config prefs similar to :set * new :command to add user defined commands * new setCustomMode for plugin writers * :au[tocmd] executes commands on events (only 'PageLoad' actually) on websites * @@ to repeat last macro * new macro commands q[a-z0-9] and @[a-z0-9] to replay them (thanks Marco!) * scroll commands like j/k/gg/etc. have a much better heuristic to find a scrollable frame * imap, inoremap, iunmap and imapclear added * new g0 and g$ mappings to go to the first/last tab * new gf and gF mappings and ;v and ;V hints mode to view the source code * new 'history' option for specifying the number of Ex commands and search patterns to store in the commandline history * new ctrl-x and ctrl-a mappings to increment the last number in the URL * new ~ mapping to open the home directory * :open tries to open a relative filename now, if you do a :open foo.html or :open ../hello.txt; * new :cd and :pwd commands * new :dialog command to open various firefox dialogs * new a and A mappings to deal with bookmarks * added ]] and [[ to navigate to the next/previous document based on the regexp specified in 'nextpattern' and 'previouspattern' (thanks kidd) * abbreviations for text fields (:abbr etc.) (thanks calmar) * you can edit textfields with Ctrl-i now using an external editor (thanks to Joseph Xu) * :open, :bmarks, etc. filter on space separated tokens now, so you can search with :open linux windows all your bookmarks/history which contain linux AND windows in the url or title * tags and keyword support for :bmark * added full zoom, and changed keybindings slightly for text zoom * improvements for scrollable -- more -- prompt * sites like msn.com or yahoo.com don't focus search field anymore on keydown * new gi browser command to focus last used (or the first as a fallback) input box * edit TEXTAREAs with many vim commands in a vim and even visual mode if you :set noinsertmode * support for emacs/bash-like ctrl-e/a/u/k/h keys in single line text fields * support for * and # mappings to search for the text selection or the text under the cursor * Escape finally clears any selection made in the document * initial start of caret mode. Start with 'i', stop with Escape; * new "newtab" option for opening the command output in a new tab and better :tab support * many small bug fixes and enhancements I would also like to say thank you to all donators who supported this project, without them I surely wouldn't have been so motivated. Alone in 2008 I received 15 donations from the following people: * Daniel Schaffrath * Sam Griffin * Ivan Pantuyev * Spike Spiegal * Mark Hashimoto * Anirudh Sanjeev * Ted Pavlic * Jacqueline Wegscheid * Kashyap Paidimarri * Gabriel Gellner * Marco Candrian * Ovidiu Curcan * Ivo-Jose Jimenez-Ramos * Andrew Pantyukhin * Kurtis Rader Thanks a lot to all of you (and the 23 more donators in 2007) this way! However, Vimperator development will be a little slower in future, because: 1.) It actually has all important features, so mostly bug fixes are needed. 2.) Muttator (http://muttator.mozdev.org) is going to need a lot of love as well to become that what vimperator is for browsing. 3.) I have finished my studies and am looking for a full-time job, time is of course less then, but donations will still keep me motivated more. Therefore, I would be glad if more people would start to send patches again or become full vimperator developers. To all of you who followed this long mail up to this point: I hope you are satisfied with Vimperator 1.0, and it would be great if anybody could spread the word about it in various forums and news sites! Have a nice day, Martin From draifen at gmail.com Wed May 14 13:08:34 2008 From: draifen at gmail.com (Matthew Gardner) Date: Wed, 14 May 2008 14:08:34 -0600 Subject: [Vimperator] Quick mapping question In-Reply-To: <482B3555.8080503@gmx.net> References: <482B3236.4000003@gmail.com> <482B3555.8080503@gmx.net> Message-ID: <482B46C2.3020600@gmail.com> An HTML attachment was scrubbed... URL: http://www.mozdev.org/pipermail/vimperator/attachments/20080514/762f55f7/attachment.html From jenfr03 at student.vxu.se Thu May 15 10:51:55 2008 From: jenfr03 at student.vxu.se (mandolin) Date: Thu, 15 May 2008 19:51:55 +0200 Subject: [Vimperator] Find char in caret/visual mode In-Reply-To: <482B384F.9040909@gmx.net> References: <482B384F.9040909@gmx.net> Message-ID: <20080515175155.GA28487@secondcastle.se> Finding a character (using f, t, F, T) works well in textarea mode, but it doesn't seem to work in caret mode and visual mode. Is this behaviour intended or is it a bug? -- mandolin From stubenschrott at gmx.net Thu May 15 11:02:59 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Thu, 15 May 2008 20:02:59 +0200 Subject: [Vimperator] Find char in caret/visual mode In-Reply-To: <20080515175155.GA28487@secondcastle.se> References: <482B384F.9040909@gmx.net> <20080515175155.GA28487@secondcastle.se> Message-ID: <482C7AD3.8030706@gmx.net> mandolin wrote: > Finding a character (using f, t, F, T) works well in textarea mode, but it > doesn't seem to work in caret mode and visual mode. Is this behaviour intended > or is it a bug? Well, caret mode is just a quick hack, and Firefox doesn't provide me helper functions for finding characters, and it would be A LOT of work, therfore it's not a bug but rather a missing feature. If it doesn't work in the visual textarea mode, then it's a bug. (But with low priority). -- Martin From jenfr03 at student.vxu.se Thu May 15 11:06:45 2008 From: jenfr03 at student.vxu.se (mandolin) Date: Thu, 15 May 2008 20:06:45 +0200 Subject: [Vimperator] Textarea mode in input fields In-Reply-To: <482B384F.9040909@gmx.net> References: <482B384F.9040909@gmx.net> Message-ID: <20080515180645.GB28487@secondcastle.se> Currently one uses Ctrl-T to enter textarea mode when in an input field. Can this be changed so that escape enters textarea mode just like it does in text areas (when noinsertmode is set)? -- mandolin From jenfr03 at student.vxu.se Thu May 15 11:12:24 2008 From: jenfr03 at student.vxu.se (mandolin) Date: Thu, 15 May 2008 20:12:24 +0200 Subject: [Vimperator] Find char in caret/visual mode In-Reply-To: <482C7AD3.8030706@gmx.net> References: <482B384F.9040909@gmx.net> <20080515175155.GA28487@secondcastle.se> <482C7AD3.8030706@gmx.net> Message-ID: <20080515181224.GC28487@secondcastle.se> Martin Stubenschrott, Thu, May 15, 2008 at 08:02:59PM +0200: > mandolin wrote: > > > Finding a character (using f, t, F, T) works well in textarea mode, but it > > doesn't seem to work in caret mode and visual mode. Is this behaviour intended > > or is it a bug? > > Well, caret mode is just a quick hack, and Firefox doesn't provide me > helper functions for finding characters, and it would be A LOT of work, > therfore it's not a bug but rather a missing feature. > > If it doesn't work in the visual textarea mode, then it's a bug. (But > with low priority). Oh, there's a visual text area mode! Now I get it. My bad. Great work on 1.0 btw :-) -- mandolin From stubenschrott at gmx.net Thu May 15 11:12:13 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Thu, 15 May 2008 20:12:13 +0200 Subject: [Vimperator] Textarea mode in input fields In-Reply-To: <20080515180645.GB28487@secondcastle.se> References: <482B384F.9040909@gmx.net> <20080515180645.GB28487@secondcastle.se> Message-ID: <482C7CFD.5000807@gmx.net> mandolin wrote: > Currently one uses Ctrl-T to enter textarea mode when in an input field. Can > this be changed so that escape enters textarea mode just like it does in text > areas (when noinsertmode is set)? > Actually, pressing esc should go back to insert mode then, but it doesn't. That's a bug and should be fixed. -- Martin From dotancohen at gmail.com Thu May 15 12:02:42 2008 From: dotancohen at gmail.com (Dotan Cohen) Date: Thu, 15 May 2008 22:02:42 +0300 Subject: [Vimperator] [ANNOUNCEMENT] Vimperator 1.0 released! In-Reply-To: <482B384F.9040909@gmx.net> References: <482B384F.9040909@gmx.net> Message-ID: <880dece00805151202v167f90fbi2d09da058a68ec33@mail.gmail.com> 2008/5/14 Martin Stubenschrott : > Hello all 212 members of this list! > > Today is a big announcement, as I finally released Vimperator 1.0 to the > public! It has tremendously many new features and bug fixes. Also it > should be quite stable. You will need Firefox3 however, a first release > candidate should be out soon. > Thanks for the great work, Martin. I will be installing and testing soon. Dotan Cohen http://what-is-what.com http://gibberish.co.il ?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? From dotancohen at gmail.com Thu May 15 12:27:12 2008 From: dotancohen at gmail.com (Dotan Cohen) Date: Thu, 15 May 2008 22:27:12 +0300 Subject: [Vimperator] Gmail in vimperator Message-ID: <880dece00805151227k207bfaddr1e5a8031f262bc55@mail.gmail.com> I just installed vimperator on Fx3b5. I notice that Gmail messages cannot be opened with the keyboard, so Gmail still requires use of the mouse. Is this a bug in Vimperator or a pecularity of Gmail? Will this issue be addressed? Should I file a bug? If Martin or another dev needs access to a Gmail account I will save his some time and create one and send to him the username:password. Dotan Cohen http://what-is-what.com http://gibberish.co.il ?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? From stubenschrott at gmx.net Thu May 15 12:28:39 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Thu, 15 May 2008 21:28:39 +0200 Subject: [Vimperator] Gmail in vimperator In-Reply-To: <880dece00805151227k207bfaddr1e5a8031f262bc55@mail.gmail.com> References: <880dece00805151227k207bfaddr1e5a8031f262bc55@mail.gmail.com> Message-ID: <482C8EE7.5030000@gmx.net> Dotan Cohen wrote: > I just installed vimperator on Fx3b5. I notice that Gmail messages > cannot be opened with the keyboard, so Gmail still requires use of the > mouse. Is this a bug in Vimperator or a pecularity of Gmail? Will this > issue be addressed? Should I file a bug? > > If Martin or another dev needs access to a Gmail account I will save > his some time and create one and send to him the username:password. Look at the wiki, some people there have advanced settings to make use of gmail in vimperator better. Hope that helps a little, -- Martin From Thomas.Svensen at fast.no Thu May 15 12:39:05 2008 From: Thomas.Svensen at fast.no (Thomas Svensen) Date: Thu, 15 May 2008 21:39:05 +0200 Subject: [Vimperator] Gmail in vimperator References: <880dece00805151227k207bfaddr1e5a8031f262bc55@mail.gmail.com> <482C8EE7.5030000@gmx.net> Message-ID: > > >Dotan Cohen wrote: > >> I just installed vimperator on Fx3b5. I notice that Gmail messages >> cannot be opened with the keyboard, so Gmail still requires use of the >> mouse. Is this a bug in Vimperator or a pecularity of Gmail? Will this >> issue be addressed? Should I file a bug? >> > >Look at the wiki, some people there have advanced settings to make use of gmail >in vimperator better. > >Hope that helps a little, > >-- >Martin This issues with Gmail+Vimperator comes up every month or so on this mailing list. I have seen some suggestions, but I don't think anyone has suggested my personal "solution" to the problem: On the very bottom of your Gmail page, there is a link named "basic html". That will give you a no-javascript version of Gmail. I think that the latter works just brilliantly with Vimperator, and I don't really miss all the fancy javascript stuff when I have got Vimperator to help me :-) Installed 1.0 today, and it works very well. Thank you very much to all developers, and Martin in particular. Good luck with finding a job! - Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.mozdev.org/pipermail/vimperator/attachments/20080515/6938deb0/attachment.html From dpb at driftaway.org Thu May 15 12:55:07 2008 From: dpb at driftaway.org (Daniel Bainton) Date: Thu, 15 May 2008 22:55:07 +0300 Subject: [Vimperator] Gmail in vimperator In-Reply-To: <880dece00805151227k207bfaddr1e5a8031f262bc55@mail.gmail.com> References: <880dece00805151227k207bfaddr1e5a8031f262bc55@mail.gmail.com> Message-ID: 2008/5/15 Dotan Cohen : > I just installed vimperator on Fx3b5. I notice that Gmail messages > cannot be opened with the keyboard, so Gmail still requires use of the > mouse. Is this a bug in Vimperator or a pecularity of Gmail? Will this > issue be addressed? Should I file a bug? There's a Vimperator plugin to make it work. http://code.google.com/p/gvimail/ It seems to work great. And it's a pecularity of Gmail, not a Vimperator bug. There's probably a lot of other AJAX websites out there too where Vimperator wont work. -- Daniel From dotancohen at gmail.com Thu May 15 12:58:53 2008 From: dotancohen at gmail.com (Dotan Cohen) Date: Thu, 15 May 2008 22:58:53 +0300 Subject: [Vimperator] Gmail in vimperator In-Reply-To: References: <880dece00805151227k207bfaddr1e5a8031f262bc55@mail.gmail.com> <482C8EE7.5030000@gmx.net> Message-ID: <880dece00805151258g33b06252s6f3650bcd092c3f6@mail.gmail.com> On 15/05/2008, Thomas Svensen wrote: > This issues with Gmail+Vimperator comes up every month or so > on this mailing list. I have seen some suggestions, but I don't > think anyone has suggested my personal "solution" to the problem: > > On the very bottom of your Gmail page, there is a link named > "basic html". That will give you a no-javascript version of > Gmail. I think that the latter works just brilliantly with > Vimperator, and I don't really miss all the fancy javascript > stuff when I have got Vimperator to help me :-) That's what I'm using now. I know of it because I use Konqueror as well, which also has issues with Gmail. > Installed 1.0 today, and it works very well. Thank you very > much to all developers, and Martin in particular. Good luck > with finding a job! 1.0 is much more usable than the prereleases were. I will soon be thanking Martin via Paypal. Dotan Cohen http://what-is-what.com http://gibberish.co.il ?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? From Thomas.Svensen at fast.no Fri May 16 04:50:51 2008 From: Thomas.Svensen at fast.no (Thomas Svensen) Date: Fri, 16 May 2008 13:50:51 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080514181434.GB5715@desktop> References: <20080506182956.GA5742@desktop> <4820DFD8.1080301@gmx.net><20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net><20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net><20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net><20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> Message-ID: Hi, I have encountered a problem with "firstletters". It doesn't work with the gmail "basic html version" links. The subjects of emails are written like this: RE: FIESTA!!! The original "startswith" version matching handles this without problems, but with "firstletters" it is impossible to select any of the links. So I resort to "wordstartswith", and can match on "FIESTA", but for "single word"-links that will not work, either. "contains" works, but that feels a little out-dated... I assume the problem is the leading space. I know you have put a lot of effort into this already, but a fix would be greatly appreciated! :-) Thomas Svensen -----Original Message----- From: vimperator-bounces at mozdev.org [mailto:vimperator-bounces at mozdev.org] On Behalf Of Daniel Trstenjak Sent: 14. mai 2008 20:15 To: vimperator at mozdev.org Subject: Re: [Vimperator] Configurable hints for vimperator 0.6 On Wed, May 14, 2008 at 08:00:05PM +0200, Martin Stubenschrott wrote: > I just noticed with "firstletters" I cannot seem to open "Press > releases" on the left of: > > http://trolltech.com/company/newsroom/announcements/press.2008-05-14.110 8908046 > > I tried with "prel", but well, it's ok for me, if you see a bug > somewhere, feel free to provide an update. The problem in this case is, that the "pre" of "prel" matches with "[Pre]ss", and the next word doesnt's start with a "l". In this case you can give the algortihm a hint by adding a space: "p rel". Or just "p r". Greetings, Daniel _______________________________________________ Vimperator mailing list Vimperator at mozdev.org https://www.mozdev.org/mailman/listinfo/vimperator From chris at lightningseed.org Fri May 16 06:44:09 2008 From: chris at lightningseed.org (Chris Mueller) Date: Fri, 16 May 2008 09:44:09 -0400 Subject: [Vimperator] Gestures? Message-ID: <940dc7890805160644k4ae1c845ydf6697f62f0fed81@mail.gmail.com> Hello all. With the "official" launch of Vimperator 1.0; I finally made the switch to ff3. My other "must have" extension has been "AllInOneGestures", as it does for mouse what vim does for keyboard (while browsing at least). Now, as there is no ff3 version of AllInOneGestures, I installed the highly recommended "FireGestures", but this plugin breaks the QuickHints functionality in the new vimperator. Does anyone have any suggestions? I can always change the version on AllInOneGestures to 3.0, as I have heard it still works; but I prefer to stay with stable if I can. Thanks, -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.mozdev.org/pipermail/vimperator/attachments/20080516/80d98bda/attachment.html From dougkearns at gmail.com Fri May 16 06:53:15 2008 From: dougkearns at gmail.com (Doug Kearns) Date: Fri, 16 May 2008 23:53:15 +1000 Subject: [Vimperator] Gestures? In-Reply-To: <940dc7890805160644k4ae1c845ydf6697f62f0fed81@mail.gmail.com> References: <940dc7890805160644k4ae1c845ydf6697f62f0fed81@mail.gmail.com> Message-ID: <644fc65e0805160653i57e069f4nde1b29dd065cc90@mail.gmail.com> On Fri, May 16, 2008 at 11:44 PM, Chris Mueller wrote: > > I installed the highly recommended > "FireGestures", but this plugin breaks the QuickHints functionality in the > new vimperator. > > Does anyone have any suggestions? I can always change the version on > AllInOneGestures to 3.0, as I have heard it still works; but I prefer to > stay with stable if I can. Add it to the list of incompatible extensions on the wiki and I, or someone else, will take a look at it when we get a chance. Regards, Doug From dpb at driftaway.org Fri May 16 07:42:19 2008 From: dpb at driftaway.org (Daniel Bainton) Date: Fri, 16 May 2008 17:42:19 +0300 Subject: [Vimperator] Gestures? In-Reply-To: <644fc65e0805160653i57e069f4nde1b29dd065cc90@mail.gmail.com> References: <940dc7890805160644k4ae1c845ydf6697f62f0fed81@mail.gmail.com> <644fc65e0805160653i57e069f4nde1b29dd065cc90@mail.gmail.com> Message-ID: 2008/5/16 Doug Kearns : > On Fri, May 16, 2008 at 11:44 PM, Chris Mueller wrote: >> >> I installed the highly recommended >> "FireGestures", but this plugin breaks the QuickHints functionality in the >> new vimperator. >> >> Does anyone have any suggestions? I can always change the version on >> AllInOneGestures to 3.0, as I have heard it still works; but I prefer to >> stay with stable if I can. > > Add it to the list of incompatible extensions on the wiki and I, or > someone else, will take a look at it when we get a chance. My suggestion would be, contact the AllInOneGestures developers and ask them to release a 3.0 compatible version. -- Daniel From teramako at gmail.com Fri May 16 08:12:09 2008 From: teramako at gmail.com (Makoto Terada) Date: Sat, 17 May 2008 00:12:09 +0900 Subject: [Vimperator] PATCH: allow open help in new tab (:tab help) In-Reply-To: <481AD72C.6030703@gmx.net> References: <6eebba490804280902v65cf49f2gd84e0e04a73d95e6@mail.gmail.com> <6eebba490804281222o3c1ad4cbm570e1afa076450c1@mail.gmail.com> <4817B7FF.8020508@gmx.net> <6eebba490805010539s17b4ab65jd5c6f53a70157940@mail.gmail.com> <481AD72C.6030703@gmx.net> Message-ID: <482DA449.5020906@gmail.com> Hi Martin. Now I'm trying Muttator on Thunderbird 3pre2. but I found that it could not open a help page and JavaScript Console, addons ... :help and :js! and so on occurs an Error because Muttator does'nt have "newtab" option. This patch applys a condition either has "newtab" option or not. -------------- next part -------------- A non-text attachment was scrubbed... Name: forMuttator.patch Type: text/x-diff Size: 4147 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080517/81417e5e/attachment.bin From Daniel.Trstenjak at online.de Sat May 17 03:14:33 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sat, 17 May 2008 12:14:33 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: References: <20080506182956.GA5742@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> Message-ID: <20080517101431.GA5770@desktop> Hi Thomas, On Fri, May 16, 2008 at 01:50:51PM +0200, Thomas Svensen wrote: > > > > > RE: FIESTA!!! > > > The original "startswith" version matching handles this without > problems, but with "firstletters" it is impossible to select any of the > links. So I resort to "wordstartswith", and can match on "FIESTA", but > for "single word"-links that will not work, either. "contains" works, > but that feels a little out-dated... The text of the link seems to be '\nRE: FIESTA!!!\n'. I don't know how you could select this link with 'startswith' by just typing 'FIESTA', because in front of the typed characters only whitespaces have been ignored. I don't know how the 'RE' could have been ignored. If it worked that way, than it wasn't intended. You could try to select this link with 'firstletters' by typing 'rf' or 'rfiesta'. Greetings, Daniel From Daniel.Trstenjak at online.de Sat May 17 07:21:49 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sat, 17 May 2008 16:21:49 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <482B2EF4.7050803@gmx.net> References: <20080507180919.GA5712@desktop> <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> <482B2EF4.7050803@gmx.net> Message-ID: <20080517142149.GE5770@desktop> Hi Martin, On Wed, May 14, 2008 at 08:27:00PM +0200, Martin Stubenschrott wrote: > I think that's the problem of the algorithm, "pre" should either match > with "[pre]ss" or "[p]ress [re]lease" - of course it's much harder to > do, but also much less annoying :) As an end user you don't care about > how the algorithm works, it just doesn't work like you would expect. Hints seem to be a never ending story ... ;) I added some heuristics to catch these cases. Seems to work. But hey, it's a heuristic. I also removed the 'NOTE:' from 'options.txt' for the option 'wordseparators'. Because the described issue isn't one, if 'wordseparators' is set in vimperatorrc. Greetings, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: vimperator-1.0-20080517.patch Type: text/x-diff Size: 6081 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080517/6d9432a2/attachment.bin From Daniel.Trstenjak at online.de Sat May 17 07:25:21 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sat, 17 May 2008 16:25:21 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080517142149.GE5770@desktop> References: <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> <482B2EF4.7050803@gmx.net> <20080517142149.GE5770@desktop> Message-ID: <20080517142521.GF5770@desktop> On Sat, May 17, 2008 at 04:21:49PM +0200, Daniel Trstenjak wrote: > Hints seem to be a never ending story ... ;) > > I added some heuristics to catch these cases. Seems to work. > But hey, it's a heuristic. > > I also removed the 'NOTE:' from 'options.txt' for the option > 'wordseparators'. Because the described issue isn't one, if > 'wordseparators' is set in vimperatorrc. I forgot to remove some debug output. -------------- next part -------------- A non-text attachment was scrubbed... Name: vimperator-1.0-20080517-2.patch Type: text/x-diff Size: 5514 bytes Desc: not available Url : http://www.mozdev.org/pipermail/vimperator/attachments/20080517/5cf4b253/attachment.bin From dteslenko at gmail.com Sat May 17 07:31:33 2008 From: dteslenko at gmail.com (Dmitry Teslenko) Date: Sat, 17 May 2008 18:31:33 +0400 Subject: [Vimperator] how-to make a plugin Message-ID: <91325fec0805170731s2461627agab5de283320c5507@mail.gmail.com> Hello! I have interest in making vimperator plugin. I pick some plugin from vimperator repository and tried to make a function template from it to start work. Here's what I got: /** * @name Test * @author someone * @version 0.0.1 * @date 2008-2-1 * */ (function(){ vimperator.commands.add(new vimperator.Command(['qwe[rty]'], function(args){ if(args) { vimperator.echo('some args'); } else { vimperator.echo('no args'); } }, { usage: ['qwe[rty] {arg}'], shortHelp: 'test!', help: 'Some help.' } )); })(); Sadly it doesn't register qwerty command and some warning/error flicks during browser loading. Is there simple way to debug these plugins or view error messages at lest (for a time period > 0/1000 sec :) ) From stubenschrott at gmx.net Sat May 17 07:54:14 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Sat, 17 May 2008 16:54:14 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080517142521.GF5770@desktop> References: <4821F3FD.60303@gmx.net> <20080507185252.GD5712@desktop> <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> <482B2EF4.7050803@gmx.net> <20080517142149.GE5770@desktop> <20080517142521.GF5770@desktop> Message-ID: <482EF196.30802@gmx.net> Daniel Trstenjak wrote: > On Sat, May 17, 2008 at 04:21:49PM +0200, Daniel Trstenjak wrote: >> Hints seem to be a never ending story ... ;) >> >> I added some heuristics to catch these cases. Seems to work. >> But hey, it's a heuristic. >> >> I also removed the 'NOTE:' from 'options.txt' for the option >> 'wordseparators'. Because the described issue isn't one, if >> 'wordseparators' is set in vimperatorrc. > > I forgot to remove some debug output. Thanks, better now. Applied (blindly). If you plan to do some more (non-hints) related patches as well, I might give you cvs write access if you want. best regards, Martin From stubenschrott at gmx.net Sat May 17 07:59:26 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Sat, 17 May 2008 16:59:26 +0200 Subject: [Vimperator] how-to make a plugin In-Reply-To: <91325fec0805170731s2461627agab5de283320c5507@mail.gmail.com> References: <91325fec0805170731s2461627agab5de283320c5507@mail.gmail.com> Message-ID: <482EF2CE.9070104@gmx.net> Dmitry Teslenko wrote: > Hello! > I have interest in making vimperator plugin. I pick some plugin from > vimperator repository and > tried to make a function template from it to start work. Here's what I got: > /** > * @name Test > * @author someone > * @version 0.0.1 > * @date 2008-2-1 > * > */ > > (function(){ > > vimperator.commands.add(new vimperator.Command(['qwe[rty]'], > function(args){ > if(args) > { > vimperator.echo('some args'); > } > else > { > vimperator.echo('no args'); > } > }, { > usage: ['qwe[rty] {arg}'], > shortHelp: 'test!', > help: 'Some help.' > } > )); > > })(); that looks actually ok (for the 0.5.3 vimperator version, the recently released 1.0 has a different API. > Sadly it doesn't register qwerty command and some warning/error flicks during > browser loading. > Is there simple way to debug these plugins or view error messages at > lest (for a time period > 0/1000 sec :) ) It usually helps to start up with no saved windows, because then only extension related things will be shown in the log. -- Martin From dteslenko at gmail.com Sat May 17 09:56:59 2008 From: dteslenko at gmail.com (Dmitry Teslenko) Date: Sat, 17 May 2008 20:56:59 +0400 Subject: [Vimperator] how-to make a plugin In-Reply-To: <482EF2CE.9070104@gmx.net> References: <91325fec0805170731s2461627agab5de283320c5507@mail.gmail.com> <482EF2CE.9070104@gmx.net> Message-ID: <91325fec0805170956s792bfa72if8bc73d1db79d21a@mail.gmail.com> On Sat, May 17, 2008 at 6:59 PM, Martin Stubenschrott wrote: > that looks actually ok (for the 0.5.3 vimperator version, the recently released 1.0 has > a different API. Ok, thanks. > It usually helps to start up with no saved windows, because then only > extension related things will be shown in the log. What if there's more than one message? Is there way to see them? From dougkearns at gmail.com Sat May 17 19:15:19 2008 From: dougkearns at gmail.com (Doug Kearns) Date: Sun, 18 May 2008 12:15:19 +1000 Subject: [Vimperator] how-to make a plugin In-Reply-To: <91325fec0805170956s792bfa72if8bc73d1db79d21a@mail.gmail.com> References: <91325fec0805170731s2461627agab5de283320c5507@mail.gmail.com> <482EF2CE.9070104@gmx.net> <91325fec0805170956s792bfa72if8bc73d1db79d21a@mail.gmail.com> Message-ID: <644fc65e0805171915h490acb2el4c2e158b899f9c46@mail.gmail.com> On Sun, May 18, 2008 at 2:56 AM, Dmitry Teslenko wrote: > On Sat, May 17, 2008 at 6:59 PM, Martin Stubenschrott >> It usually helps to start up with no saved windows, because then only >> extension related things will be shown in the log. > What if there's more than one message? Is there way to see them? :dialog console Doug From Daniel.Trstenjak at online.de Sun May 18 03:58:48 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Sun, 18 May 2008 12:58:48 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <482EF196.30802@gmx.net> References: <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> <482B2EF4.7050803@gmx.net> <20080517142149.GE5770@desktop> <20080517142521.GF5770@desktop> <482EF196.30802@gmx.net> Message-ID: <20080518105848.GA5670@desktop> Hi Martin, On Sat, May 17, 2008 at 04:54:14PM +0200, Martin Stubenschrott wrote: > > I forgot to remove some debug output. How do you catch syntactical errors in the vimperator code? The error console doesn't tell me anything. Is there a way to see the messages of the javascript compiler? > If you plan to do some more (non-hints) related patches as well, I > might give you cvs write access if you want. Currently I'm just procrastinating an other project ;). But I never seem to do sometinhg else ... Perhaps I would like to add some autocompletions for commands. I would like to be able to do ':open -T ' or ':open -T linux,'. Greetings, Daniel From stubenschrott at gmx.net Sun May 18 06:17:06 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Sun, 18 May 2008 15:17:06 +0200 Subject: [Vimperator] No statusbar in Vimperator 1.0? In-Reply-To: <20080517183022.GA19450@komuso> References: <20080517183022.GA19450@komuso> Message-ID: <48302C52.30706@gmx.net> ?ric Oliver Paquette wrote: > Hi there! > > First, thanks a lot for Vimperator; I really like it! I have a bug -- I > think --. I just dowloaded Firefox 3 RC 1 and Vimperator 1.0 for it and > just don't have any statusbar anymore... Any errors in the JavaScript console? And which OS? Also please post such messages to the mailing list in future rather than to me personally, so also others can comment on it. -- Martin From brickviking at gmail.com Mon May 19 21:27:32 2008 From: brickviking at gmail.com (viking) Date: Tue, 20 May 2008 16:27:32 +1200 Subject: [Vimperator] [ANNOUNCEMENT] Vimperator 1.0 released! References: <482B384F.9040909@gmx.net> Message-ID: Martin Stubenschrott writes: > Hello all 212 members of this list! > ... snip ... < > You will need Firefox3 however, a first release > candidate should be out soon. Is there any chance of one being "tweaked" for 2.x firefox? I'm not exactly confident of a firefox3 changeover for my machine, as I've only just got used to vimperatoring my firefox with 0.54 (I think). But anyhow, cheers for your great work. And yes, put lotsa luv into muttator. I won't use it, but I'm sure others will. I use cone instead, can't figure out why I don't like mutt, but I don't. Now, if only I could vimperate links2... Cheers, The Viking -- /| _,.:*^*:., |\ Cheers from the Viking family, including Pippin, our cat | |_/' viking@ `\_| | | flying-brick | $FunnyMail : What do you mean, I've lost the plot? \_.caverock.net.nz_/ 5.40 : I planted them carrots right here!! From jfs.world at gmail.com Mon May 19 21:35:29 2008 From: jfs.world at gmail.com (Jeffrey 'jf' Lim) Date: Tue, 20 May 2008 12:35:29 +0800 Subject: [Vimperator] [ANNOUNCEMENT] Vimperator 1.0 released! In-Reply-To: References: <482B384F.9040909@gmx.net> Message-ID: <4b3125cc0805192135p42739befmce26530d4572421f@mail.gmail.com> On Tue, May 20, 2008 at 12:27 PM, viking wrote: > Martin Stubenschrott writes: > > > Hello all 212 members of this list! > > ... snip ... < > > You will need Firefox3 however, a first release > > candidate should be out soon. > > Is there any chance of one being "tweaked" for 2.x firefox? I'm not exactly > confident of a firefox3 changeover for my machine, as I've only just got > used to vimperatoring my firefox with 0.54 (I think). > ditto. But I appreciate all your hard work nevertheless!!! I'll be using it when I move to FF3... -Jeff -- In the meantime, here is your PSA: "It's so hard to write a graphics driver that open-sourcing it would not help." -- Andrew Fear, Software Product Manager, NVIDIA Corporation http://kerneltrap.org/node/7228 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.mozdev.org/pipermail/vimperator/attachments/20080520/46d6d28c/attachment.html From stubenschrott at gmx.net Tue May 20 02:39:47 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Tue, 20 May 2008 11:39:47 +0200 Subject: [Vimperator] [ANNOUNCEMENT] Vimperator 1.0 released! In-Reply-To: References: <482B384F.9040909@gmx.net> Message-ID: <48329C63.1050000@gmx.net> viking wrote: > Martin Stubenschrott writes: > >> Hello all 212 members of this list! >> ... snip ... < >> You will need Firefox3 however, a first release >> candidate should be out soon. > > Is there any chance of one being "tweaked" for 2.x firefox? I'm not exactly > confident of a firefox3 changeover for my machine, as I've only just got > used to vimperatoring my firefox with 0.54 (I think). Unfortunatly that is not possible. If it was, we would never have made the switch to FF3 only. -- Martin From stubenschrott at gmx.net Tue May 20 03:31:37 2008 From: stubenschrott at gmx.net (Martin Stubenschrott) Date: Tue, 20 May 2008 12:31:37 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <20080518105848.GA5670@desktop> References: <4822182E.7060803@gmx.net> <20080513180115.GA5669@desktop> <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> <482B2EF4.7050803@gmx.net> <20080517142149.GE5770@desktop> <20080517142521.GF5770@desktop> <482EF196.30802@gmx.net> <20080518105848.GA5670@desktop> Message-ID: <4832A889.9020605@gmx.net> Daniel Trstenjak wrote: > Hi Martin, > > On Sat, May 17, 2008 at 04:54:14PM +0200, Martin Stubenschrott wrote: >> > I forgot to remove some debug output. > > How do you catch syntactical errors in the vimperator code? The error > console doesn't tell me anything. Is there a way to see the messages of > the javascript compiler? Strangely sometimes I do see syntax errors like missing brackets in the error console, sometimes I don't. Maybe I have a special about:config setting turned on? > Currently I'm just procrastinating an other project ;). But I never seem > to do sometinhg else ... OK, so then let's rather stay with the patches for now. > Perhaps I would like to add some autocompletions for commands. I would > like to be able to do ':open -T ' or ':open -T linux,'. Yeah, that would be cool, just like tags in :bmarks work. -- Martin From Daniel.Trstenjak at online.de Tue May 20 11:07:43 2008 From: Daniel.Trstenjak at online.de (Daniel Trstenjak) Date: Tue, 20 May 2008 20:07:43 +0200 Subject: [Vimperator] Configurable hints for vimperator 0.6 In-Reply-To: <4832A889.9020605@gmx.net> References: <4829EEB7.8080008@gmx.net> <20080514172648.GA5715@desktop> <482B28A5.5010503@gmx.net> <20080514181434.GB5715@desktop> <482B2EF4.7050803@gmx.net> <20080517142149.GE5770@desktop> <20080517142521.GF5770@desktop> <482EF196.30802@gmx.net> <20080518105848.GA5670@desktop> <4832A889.9020605@gmx.net> Message-ID: <20080520180743.GA5687@desktop> Hi Martin, On Tue, May 20, 2008 at 12:31:37PM +0200, Martin Stubenschrott wrote: > Strangely sometimes I do see syntax errors like missing brackets in the error > console, sometimes I don't. Maybe I have a special about:config setting turned on? Yes, there is something :). javascript.options.showInConsole=true After this change I can see error messages in the console. > OK, so then let's rather stay with the patches for now. Please don't get me wrong. The coding on vimperator has been one of the most fun and satisfying things I've done for long. :) > Yeah, that would be cool, just like tags in :bmarks work. Perhaps I've next week some time to look at it. Greetings, Daniel From tekezo at pqrs.org Thu May 22 10:02:51 2008 From: tekezo at pqrs.org (Takayama Fumihiko) Date: Fri, 23 May 2008 02:02:51 +0900 Subject: [Vimperator] walk input fields Message-ID: <4835A73B.6010805@pqrs.org> Hi, I wrote a plugin which moved the focus along the input fields. When the web page has multiple or