<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>pnotepad.org forums Topic: Auto-fill find box with current selection</title>
		<link>http://pnotepad.org/forums/topic/540</link>
		<description>Programmer&#039;s Notepad Forums</description>
		<language>en-US</language>
		<pubDate>Mon, 15 Mar 2010 03:31:33 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://pnotepad.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://pnotepad.org/forums/rss/topic/540" rel="self" type="application/rss+xml" />

		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-2027</link>
			<pubDate>Thu, 30 Apr 2009 15:56:58 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">2027@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;This could tie into the other discussion about storing items in XML vs. JSON vs. the registry.  It could be a new section in the Options, &#38;quot;Advanced&#38;quot; where it would just be a list of settings and a generic way to change their values.  That way it would be storage-agnostic (don't care if it's xml/json/ini/etc).  It'd be nice if it had a little substring search box at the top, but that wouldn't even be necessary at first since there wouldn't be may options to start.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simon on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-2024</link>
			<pubDate>Thu, 30 Apr 2009 14:34:36 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">2024@http://pnotepad.org/forums/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;Yeah. Things like this make me wish for a firefox-like &#38;quot;about:config&#38;quot;, for all those little prefs that don't warrant a real checkbox in teh options&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Yeah, me too :)&#60;/p&#62;
&#60;p&#62;In all seriousness, I would like to do something like this so that people can tweak where necessary and the interface can remain simple. This ties in with discussions on the mailing list where I've been experimenting with options storage, err, options.&#60;/p&#62;
&#60;p&#62;I'd like to be able to do this:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Fast options code (hint: Ini not fast)&#60;/li&#62;
&#60;li&#62;about:config style page in options giving access to all known tweaky options&#60;/li&#62;
&#60;li&#62;One options storage method (no difference between portable/normal)&#60;/li&#62;
&#60;/ol&#62;</description>
		</item>
		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-2022</link>
			<pubDate>Thu, 30 Apr 2009 14:26:42 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">2022@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Yeah.  Things like this make me wish for a firefox-like &#38;quot;about:config&#38;quot;, for all those little prefs that don't warrant a real checkbox in teh options, but would still be nice to have.  Options like this are so tiny (a one line IF THEN change), so it wouldn't contribute to code bloat, but are so nit-picky and specific that it'd be hard to even name the pref.  For later, I guess.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nux on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-2017</link>
			<pubDate>Thu, 30 Apr 2009 07:32:43 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">2017@http://pnotepad.org/forums/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;PS. What did this mean? &#38;quot;Plus you can use upper search functions.&#38;quot; Thanks. &#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I meant the search toolbar. I'm not sure if it's on by default, as I don't remember when did I last install PN from scratch ;-).&#60;/p&#62;
&#60;p&#62;I could live through &#38;quot;select word with a keyboard&#38;quot;, but not with a mouse click. Having said that - someone suggested that if he selects text he wants to search in selected text... So, probably polls it is ;-).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-2010</link>
			<pubDate>Wed, 29 Apr 2009 14:54:00 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">2010@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I guess this comes down to preference.  In the current system, you can easily put the cursor on a word, hit find, and get the current word already filled out.  However, the downside is that if you previously searched for a word and want to search again, hitting find will often replace the previous word and you have to make sure you manually select your previous search.&#60;/p&#62;
&#60;p&#62;In my suggestion, you'd have to double click on a word (or select it with keyboard) then hit find to do a &#38;quot;quick&#38;quot; search.  The downside is that it's an extra click or few key presses for the quick search.  The upside is that when you hit control+F without selecting something, you always know that you're going to have the previous search filled out.&#60;/p&#62;
&#60;p&#62;I'm all about saving keystrokes (believe me), so normally I'd go with the current operation.  However, I've run into a lot of situations where the unpredictability of the current mode removes any convenience it might hold.  I realize this is a personal preference, and probably something that should be polled before any change is considered.&#60;/p&#62;
&#60;p&#62;Polls polls polls! (Sorry simon, had to :)).  Thanks for the feedback Nux.&#60;/p&#62;
&#60;p&#62;PS. What did  this mean? &#38;quot;Plus you can use upper search functions.&#38;quot;  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nux on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-2009</link>
			<pubDate>Wed, 29 Apr 2009 14:22:16 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">2009@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;@jumpfroggy: Yes, but if it would be changed one wouldn't be able to quickly search for current word. And if it stays like it is you can do both quite quickly. Plus you can use upper search functions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1993</link>
			<pubDate>Tue, 28 Apr 2009 08:54:58 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">1993@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;@Nux&#60;br /&#62;
I agree that it works in those cases (when the cursor is not on text), but what I was proposing is that PN should never replace your &#38;quot;search for&#38;quot; text unless you've got something highlighted.  It's too tricky to remember that you may or may not have to reposition the cursor before you hit Control+F.  It's a very subtle quirk, but one that I feel would be better if it were changed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nux on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1973</link>
			<pubDate>Wed, 15 Apr 2009 10:00:26 +0000</pubDate>
			<dc:creator>Nux</dc:creator>
			<guid isPermaLink="false">1973@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;@jumpfroggy you can get #1 behaviour if go to the beginning of a line you are on. It will work assuming you are using indenting. It will also work if you have some special character under the cursor (like e.g. &#38;lt; or &#38;gt;).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Karmaflute on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1958</link>
			<pubDate>Mon, 06 Apr 2009 10:47:55 +0000</pubDate>
			<dc:creator>Karmaflute</dc:creator>
			<guid isPermaLink="false">1958@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I agree with your suggestion then. Thank you for clarifying. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1957</link>
			<pubDate>Mon, 06 Apr 2009 00:46:54 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">1957@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;&#38;gt;&#38;gt; Quote &#38;gt;&#38;gt; 'jumpfroggy' : &#38;quot;I'd rather change the current behavior so that it auto-fills if you've selected, but does *not* auto fill if nothing is selected. That always throws me off. I hate hitting control+f and getting auto-filled whatever word the cursor happens to be on.&#38;quot;&#60;/p&#62;
&#60;p&#62;&#38;gt; Having the find/replace box remember the last action is a luxury. The fact that it's automatically highlighted makes it each to just type something new and have it replace the contents. What advantage would it be other than aesthetics to have it be blank by default if nothing is selected? &#60;/p&#62;
&#60;p&#62;I was unclear before:&#60;br /&#62;
-if nothing is selected, simply show the last-used search phrase&#60;br /&#62;
-if &#38;lt;=1 line is selected, use the selected text as the search phrase&#60;br /&#62;
-if &#38;gt;1 lines are selected, show the last-used search phrase and check &#38;quot;in selection&#38;quot;&#60;/p&#62;
&#60;p&#62;The only difference is #1... right now if nothing is selected, it auto-fills whatever word is under the cursor.  I think it would be more useful if it simply left the last-used search phrase in place for this case.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Karmaflute on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1956</link>
			<pubDate>Sun, 05 Apr 2009 21:06:48 +0000</pubDate>
			<dc:creator>Karmaflute</dc:creator>
			<guid isPermaLink="false">1956@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Quote &#38;gt;&#38;gt; 'jumpfroggy' : &#38;quot;I'd rather change the current behavior so that it auto-fills if you've selected, but does *not* auto fill if nothing is selected. That always throws me off. I hate hitting control+f and getting auto-filled whatever word the cursor happens to be on.&#38;quot;&#60;/p&#62;
&#60;p&#62;Having the find/replace box remember the last action is a luxury. The fact that it's automatically highlighted makes it each to just type something new and have it replace the contents. What advantage would it be other than aesthetics to have it be blank by default if nothing is selected?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1951</link>
			<pubDate>Sat, 04 Apr 2009 17:03:46 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">1951@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;&#38;gt; Without an enable/disable checkbox how can you replace a block of text with &#38;quot;nothing&#38;quot;? &#60;/p&#62;
&#60;p&#62;Just leave the &#38;quot;Replace With&#38;quot; blank?  That's how I usually do it.  Shouldn't need an enable/disable box for this.&#60;/p&#62;
&#60;p&#62;&#38;gt; Another option would be to have a Find Next button that just does find next, and a replace button that does replace. All of the controls would then always be visible, and depending on what you clicked you would find or replace.&#60;/p&#62;
&#60;p&#62;Essentially, you could just use the Replace dialog as is since it contains all this already.&#60;/p&#62;
&#60;p&#62;&#38;gt; The complications are that there are some options that are only applicable for replace, and these clutter and confuse the interface in the case of find. &#60;/p&#62;
&#60;p&#62;I looked at both dialogs, the only things I can tell that changes is the &#38;quot;Search within&#38;quot; options.  For the find dialog, you have &#38;quot;Current Document&#38;quot; and &#38;quot;All open documents&#38;quot;.  For the replace dialog, you have &#38;quot;Current Document&#38;quot; and &#38;quot;In Selection&#38;quot;.  I'm not sure when &#38;quot;Current Project&#38;quot; is enabled, don't use those.&#60;/p&#62;
&#60;p&#62;But another thing here is that those options are always visible, just sometimes disabled.  So there's no less &#38;quot;clutter&#38;quot;.  I think PN may be able to be smart enough to deal with strange requests, like a &#38;quot;find next&#38;quot; with &#38;quot;in selection&#38;quot; (just find the next match within the current selection?  Or ignore the selection and just do a &#38;quot;current document&#38;quot;?&#60;/p&#62;
&#60;p&#62;I think it's worth combining, they're almost completely visually identical.  Plus the thing that convinced me is that OpenOffice does this already... hit Control+F and a Find &#38;amp; Replace dialog comes up.  I think as long as we have the keyboard accelerators for the &#38;quot;Find next&#38;quot; and &#38;quot;Replace&#38;quot; (all) buttons, there's no downside to combining them.  It's not a huge deal if it stays separate, but it would just be a little less redundant.&#60;/p&#62;
&#60;p&#62;&#38;gt; Would it be possible to at least alter the behavior for find/replace fill the find box when a whole line is selected? This feature has failed for me several times because of this inconsistency.&#60;/p&#62;
&#60;p&#62;I'm not sure how this would change.  Right now it's: if one or less lines are selected, auto-fill it in the box.  If nothing is selected, auto-fill the current word.  If more than one line is selected, use that as the &#38;quot;Within Selection&#38;quot; option and use whatever the last &#38;quot;Find what&#38;quot; value was.  I don't think we want to auto-fill multiple lines (since that's really a regex thing, and would be confusing to have it be auto-filled), and it's definitely helpful when selecting a piece of the current document.  Is there another way this could be fixed?&#60;/p&#62;
&#60;p&#62;I'd rather change the current behavior so that it auto-fills if you've selected, but does *not* auto fill if nothing is selected.  That always throws me off.  I hate hitting control+f and getting auto-filled whatever word the cursor happens to be on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Karmaflute on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1937</link>
			<pubDate>Thu, 26 Mar 2009 09:18:16 +0000</pubDate>
			<dc:creator>Karmaflute</dc:creator>
			<guid isPermaLink="false">1937@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;You could just disable or hide the additional options. I just think it's superfluous to have two sections for what are virtually the same thing.&#60;/p&#62;
&#60;p&#62;Would it be possible to at least alter the behavior for find/replace fill the find box when a whole line is selected? This feature has failed for me several times because of this inconsistency.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simon on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1931</link>
			<pubDate>Tue, 24 Mar 2009 23:29:32 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">1931@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Another option would be to have a Find Next button that just does find next, and a replace button that does replace. All of the controls would then always be visible, and depending on what you clicked you would find or replace.&#60;/p&#62;
&#60;p&#62;The complications are that there are some options that are only applicable for replace, and these clutter and confuse the interface in the case of find.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Karmaflute on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1928</link>
			<pubDate>Sun, 22 Mar 2009 18:53:43 +0000</pubDate>
			<dc:creator>Karmaflute</dc:creator>
			<guid isPermaLink="false">1928@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Without an enable/disable checkbox how can you replace a block of text with &#38;quot;nothing&#38;quot;?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1913</link>
			<pubDate>Sat, 14 Mar 2009 07:19:55 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">1913@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;It's true that the find and replace windows are very similar.  I could conceivably see combining them.  But to rely on a checkbox is not great.  If the two dialogs can be merged into one, what's the point of having a checkbox at all?  Just ignore the second box, and ignore the other buttons.  Have an enable/disable checkbox would be redundant, and a mouse click is more expensive (UI-wise) than a keyboard shortcut.&#60;/p&#62;
&#60;p&#62;I am curious what a merged dialog would look like, and if there'd be any changes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Karmaflute on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1907</link>
			<pubDate>Mon, 09 Mar 2009 04:21:40 +0000</pubDate>
			<dc:creator>Karmaflute</dc:creator>
			<guid isPermaLink="false">1907@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;If Find and Replace were merged then I would only need one hotkey to bring up the window. Yes, it's one click to go to Replace and one click to uncheck the checkbox for my idea, but the two search methods are nearly identical. Just merge them instead of making another tab. Find and Replace are virtually the same features.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jumpfroggy on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1901</link>
			<pubDate>Sat, 07 Mar 2009 15:44:37 +0000</pubDate>
			<dc:creator>jumpfroggy</dc:creator>
			<guid isPermaLink="false">1901@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hey Karma.  I prefer the current behavior over a method that would auto-fill the find box when you have a line (or lines) selected.  Most of the time when I select a few lines and hit replace, I'm really wanting to replace within that selection.  In that case, auto-filling the box is the wrong thing to do.  I realize that it may be different for you, I only know for myself that it works better that way most of the time (say 90% for me).&#60;/p&#62;
&#60;p&#62;I'm mulling over the merged find &#38;amp; replace dialogs.  Right now they're not too different, so I could see the replace dialog being the only one.  However, I would never want a checkbox to enable/disable the replace features of the dialog.  Right now you can hit one hotkey for the find window, another hotkey for the replace; that's simple &#38;amp; quick.  If you had a checkbox, now you have a to hit a hotkey, see if it's checked or not, then hit another hotkey for the checkbox (or click w/ mouse), then hit another hotkey or click to focus on the field to type in your phrase.  It would cause a lot of work, and you could just leave the replace features enabled all the time.&#60;/p&#62;
&#60;p&#62;But I'm also confused by the way you suggest merging the dialogs.  So you only have one dialog with a checkbox to enable/disable the replace features.  You still have two hotkeys, one that shows the dialog with the replace features enabled by default, another where they're disabled.  How is this any different from right now with two dialgs &#38;amp; two hotkeys?  I'm just curious.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Karmaflute on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1876</link>
			<pubDate>Thu, 26 Feb 2009 11:34:13 +0000</pubDate>
			<dc:creator>Karmaflute</dc:creator>
			<guid isPermaLink="false">1876@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Yes, in this case it was the whole line (I was replacing comment blocks that were too short with longer ones). Is there a reason this isn't allowed?&#60;/p&#62;
&#60;p&#62;Also, the benefit of having the Find/Replace portions of the dialog merged is that it will require only one hotkey (Ctrl-F in my case) to bring up the dialog for either find or replace. I think it would be convenient to merge the two with a simple checkbox next to the replace field to toggle it on/off.&#60;/p&#62;
&#60;p&#62;Using the Find hotkey would of course have this checkbox off by default.&#60;/p&#62;
&#60;p&#62;This solution requires less mouse clicking and one less hotkey for a common repetitive task.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simon on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1873</link>
			<pubDate>Thu, 26 Feb 2009 10:22:14 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">1873@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi, I'm not sure which version you're using but PN should already automatically populate the find text. There are a few cases where it doesn't:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;When you select an entire line
&#60;/li&#62;
&#60;li&#62;When you select more than one paragraph&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;The find and replace dialog box are already the same dialog, the mode just switches which controls you have to contend with.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Karmaflute on "Auto-fill find box with current selection"</title>
			<link>http://pnotepad.org/forums/topic/540#post-1864</link>
			<pubDate>Wed, 25 Feb 2009 14:11:55 +0000</pubDate>
			<dc:creator>Karmaflute</dc:creator>
			<guid isPermaLink="false">1864@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;I use another editor which has a great feature where it will populate the find box with your current selection. So I can, for example, copy what I want to replace with, Ctr-F, paste the replacement text, and I'm good to go.&#60;/p&#62;
&#60;p&#62;It would also be nice if you condense both the Find and Replace dialogs. A convenient checkbox next to the replace edit box would be sufficient. The options between Find and Replace are nearly identical.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
