<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 15: "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/</link><description>Recent changes to 15: "Find matching tag" - Slow Response</description><atom:link href="https://sourceforge.net/p/npp-plugins/support-requests/15/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 21 Jan 2015 20:19:56 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/npp-plugins/support-requests/15/feed.rss" rel="self" type="application/rss+xml"/><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=25#2e7c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Martijn,&lt;/p&gt;
&lt;p&gt;I'm glad you feel a bit better.&lt;br /&gt;
Life is full of ups and downs.&lt;/p&gt;
&lt;p&gt;I liked your noble remark regarding EditPad. &lt;/p&gt;
&lt;p&gt;Special thanks for the Feature Requests.&lt;br /&gt;
Please wait with them until you get &lt;em&gt;much&lt;/em&gt; better. :)&lt;/p&gt;
&lt;p&gt;Again, I wish you the very best.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yaron</dc:creator><pubDate>Wed, 21 Jan 2015 20:19:56 -0000</pubDate><guid>https://sourceforge.net2ebefe573aaa1e268670196efbaf9d99520448a6</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=50#4a8c/11c3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I’m relatively better now, thanks.&lt;/p&gt;
&lt;p&gt;Well... I wouldn’t say EditPad has a bug; its author just made a different design decision.&lt;/p&gt;
&lt;p&gt;I’ll &lt;a class="" href="http://fossil.2of4.net/npp_htmltag/tktview/b00e5e43a0" rel="nofollow"&gt;put&lt;/a&gt; your proposals #1 and #2 on the &lt;a class="" href="http://fossil.2of4.net/npp_htmltag/rptview?rn=1" rel="nofollow"&gt;feature request list&lt;/a&gt;. Putting the caret at the beginning of a matching tag does make sense; and toggling the caret between start and end of a self-closing tag does too.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martijn Coppoolse</dc:creator><pubDate>Wed, 21 Jan 2015 19:41:59 -0000</pubDate><guid>https://sourceforge.net979bf77272f0b68b3e95c0bb341a7096bef7b1ee</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=25#4a8c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Martijn,&lt;/p&gt;
&lt;p&gt;I hope you are doing well.&lt;/p&gt;
&lt;p&gt;Thanks again for your excellent work.&lt;/p&gt;
&lt;p&gt;The entire matching tag is selected on my machine as well.&lt;/p&gt;
&lt;p&gt;Comment #1 and Comment#2 seem to be related.&lt;br /&gt;
If the caret was always moved to the beginning of opening/closing tags (it makes sense), then the user would get some reaction after pressing "Find matching tag" again in the example given in Comment #1 (i.e. the caret would move to the beginning of the line).&lt;/p&gt;
&lt;p&gt;These are really minor issues, and HTMLTag plugin works like a charm. &lt;/p&gt;
&lt;p&gt;Comment #3:&lt;br /&gt;
So, the bug is in EditPad. :)&lt;/p&gt;
&lt;p&gt;Best wishes.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yaron</dc:creator><pubDate>Wed, 21 Jan 2015 17:38:29 -0000</pubDate><guid>https://sourceforge.nete313a0bb23919793c517732e5d22530a4ec1eb71</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=50#5d4f/a2b6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Yaron,&lt;/p&gt;
&lt;p&gt;Thanks for your comments!&lt;/p&gt;
&lt;p&gt;On my machines, it's not just the caret that is moved; the entire matching tag is selected — that is by design. That's why the caret is always moved to the end (although I guess I could also put the caret at the start of the selection).&lt;br /&gt;
Is the matched tag not selected on your machine?&lt;/p&gt;
&lt;p&gt;Also, when the caret is located in text between two tags, the plugin &lt;em&gt;should&lt;/em&gt; find the first preceding opening tag, and then select its matching tag.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martijn Coppoolse</dc:creator><pubDate>Wed, 21 Jan 2015 14:41:50 -0000</pubDate><guid>https://sourceforge.net62a1f7113e230b6da39ed2503b91de565696ec3c</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=25#5d4f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Martijn,&lt;/p&gt;
&lt;p&gt;I do hope you get better soon. &lt;/p&gt;
&lt;p&gt;And thank you so much for finding the time to fix the reported issue.&lt;br /&gt;
A brilliant work!&lt;/p&gt;
&lt;p&gt;With your permission, a few comments (tested on langs.xml):&lt;br /&gt;
1) &lt;br /&gt;
Go to the line &amp;lt;Language name="normal" ext="txt"/&amp;gt;.&lt;br /&gt;
Position the caret on "Language".&lt;br /&gt;
Press "Find matching tag" (- the caret is moved to the end of the line).&lt;br /&gt;
Press "Find matching tag" again.&lt;br /&gt;
- Result: the caret isn't moved back.&lt;/p&gt;
&lt;p&gt;2)&lt;br /&gt;
Position the caret on an opening tag (first "&amp;lt;NotepadPlus&amp;gt;").&lt;br /&gt;
Press "Find matching tag".&lt;br /&gt;
- Result: the caret is moved to the &lt;em&gt;end&lt;/em&gt; of the closing tag.&lt;br /&gt;
Wouldn't it be better to always move the caret to the &lt;em&gt;beginning&lt;/em&gt; of opening/closing tags?&lt;/p&gt;
&lt;p&gt;3)&lt;br /&gt;
Position the caret on "getTransform" (appears once).&lt;br /&gt;
Press "Find matching tag".&lt;br /&gt;
- Result: the caret is moved to the closing "&amp;lt;/Keywords&amp;gt;".&lt;br /&gt;
Is that the expected behavior (- rather than no action at all)?&lt;/p&gt;
&lt;p&gt;I have compared HTMLTag plugin's behavior with that of EditPad.&lt;br /&gt;
&lt;a href="http://www.editpadpro.com." rel="nofollow"&gt;http://www.editpadpro.com.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I appreciate your kindness, and truly wish you the very best.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yaron</dc:creator><pubDate>Wed, 21 Jan 2015 01:36:27 -0000</pubDate><guid>https://sourceforge.net9a6d608b1d8c33ce4a9797b22c5bbcada46bdeb5</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=50#1241/d8e6/2b7a/5d23/5a23</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Yaron,&lt;/p&gt;
&lt;p&gt;Would you try downloading the new unicode version from &lt;a href="http://fossil.2of4.net/npp_htmltag" rel="nofollow"&gt;http://fossil.2of4.net/npp_htmltag/&lt;/a&gt; and test it?&lt;/p&gt;
&lt;p&gt;I think I've managed to fix the problem, but my life's a bit hectic atm, I'm a bit tired, and I'm not sure I haven't missed any edge cases or made some silly coding mistake.&lt;/p&gt;
&lt;p&gt;If it's fine, I'll see about uploading the new version to the plugin manager sometime next week.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martijn Coppoolse</dc:creator><pubDate>Tue, 20 Jan 2015 20:49:35 -0000</pubDate><guid>https://sourceforge.net03aa5209a8db32eda2fb706473ad27c190c5599e</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=25#1241/d8e6/2b7a/5d23</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you Martijn.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yaron</dc:creator><pubDate>Tue, 20 Jan 2015 01:46:56 -0000</pubDate><guid>https://sourceforge.net85ed2f83f8e06ebe08ae63547572ed7e3cd6e618</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=50#1241/d8e6/2b7a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;@Yaron: you won't be able to open the HTMLTag plugin with Visual Studio, because it was written in Delphi.&lt;br /&gt;
@Dave: thanks for the reminder that the solution needn't be all that complex. I'll try and implement it as soon as I can (it's a bit more convoluted than you suggested, due to my implementation of Find -- which returns an object that needs to be destroyed after use. This was one of my first real Delphi projects ever).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martijn Coppoolse</dc:creator><pubDate>Mon, 19 Jan 2015 07:16:32 -0000</pubDate><guid>https://sourceforge.netb9b6b7e829519d585e3d1ae3d8b4af3b908a4949</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=25#1241/d8e6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you Dave.&lt;/p&gt;
&lt;p&gt;I have just recently started using VS 2013, and I can't open the HTMLTag plugin's project files in it.&lt;/p&gt;
&lt;p&gt;I'm grateful for your help.&lt;/p&gt;
&lt;p&gt;I hope Martijn will find the time to fix it.&lt;/p&gt;
&lt;p&gt;Best regards. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yaron</dc:creator><pubDate>Sun, 18 Jan 2015 21:14:06 -0000</pubDate><guid>https://sourceforge.neta68ad6f61ec3a630e6eedfbf5c7683b90d332209</guid></item><item><title>#15 "Find matching tag" - Slow Response</title><link>https://sourceforge.net/p/npp-plugins/support-requests/15/?limit=25#1241</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Not much to say here, other than yes, backwards regex search with the new engine is pretty slow.  It's not really built for that.  Reverse regex search would be doable by reversing the actual regex, which I think would be pretty complicated, at least if you expected the same results.  The internal tag matching routine basically emulates the tiny amount of regex that is needed using a simple search.  So in your example, &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;NextTag&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;^%&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;SCFIND_REGEXP&lt;/span&gt; &lt;span class="n"&gt;or&lt;/span&gt; &lt;span class="n"&gt;SCFIND_POSIX&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Tag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StartPos&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;We'd just change that to (excuse syntax, but you get the idea)&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;Do&lt;/span&gt;
    &lt;span class="n"&gt;NextTag&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sc"&gt;'&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Tag&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;StartPos&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="n"&gt;While&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NextTag&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="n"&gt;And&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CharAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nextTag&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sc"&gt;'%'&lt;/span&gt; &lt;span class="n"&gt;Or&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CharAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;nextTag&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sc"&gt;'?'&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Dave&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Brotherstone</dc:creator><pubDate>Sun, 18 Jan 2015 09:44:03 -0000</pubDate><guid>https://sourceforge.neta2b4f698d8ac84eb2424f9a1c95ef017b7e400c1</guid></item></channel></rss>