Hi,
can you please make find/replace settings persistent between sessions the way other settings are? They revert to their default values each time I restart the editor.
David
On Dec 29, 2004, at 7:24, David Tolpin wrote:
can you please make find/replace settings persistent between sessions the way other settings are? They revert to their default values each time I restart the editor.
Oh? The find string is taken from the find clipboard. The other settings should stick from the last session except the regular expression option, since if the find clipboard has changed it's unlikely that the new string is a regular expressions.
But I could improve it to actually compare the find string with what was used in last session.
can you please make find/replace settings persistent between sessions the way other settings are? They revert to their default values each time I restart the editor.
Oh? The find string is taken from the find clipboard. The other settings should stick from the last session except the regular expression option, since if the find clipboard has changed it's unlikely that the new string is a regular expressions.
But I could improve it to actually compare the find string with what was used in last session.
Do you see a situation when the Find clipboard's content is reused from another program? I would prefer Regular expressions to stick (since I use them almost always, in fact); and in the rare case when the search string has come from another program, to switch it off manually.
David
On Dec 30, 2004, at 0:54, David Tolpin wrote:
[...] if the find clipboard has changed it's unlikely that the new string is a regular expressions.
But I could improve it to actually compare the find string with what was used in last session.
Do you see a situation when the Find clipboard's content is reused from another program?
I do that all the time (seriously!). I rather often have a string in Mail, Terminal, OmniWeb, or TextMate and want to search for that string in one or more of the other programs. Having command-e/command-g work across applications is really something I can't live without today! But I've seen Classic users actually claim that TM was buggy because of it :)
I would prefer Regular expressions to stick (since I use them almost always, in fact); and in the rare case when the search string has come from another program, to switch it off manually.
I won't make it sticky, but I'll add to the to-do that it should only clear when the string has changed from the last session. Expect it in 1.1b1 (which I do think I can promise will be before the new year) or 1.1b2.
I would prefer Regular expressions to stick (since I use them almost always, in fact); and in the rare case when the search string has come from another program, to switch it off manually.
I won't make it sticky, but I'll add to the to-do that it should only clear when the string has changed from the last session. Expect it in 1.1b1 (which I do think I can promise will be before the new year) or 1.1b2.
When TextMate is running, I still can use Find in another program, such as Mail or Safari. In which case Regular Expression remains selected, but the string is not what was entered. I believe that the right behavior is to keep the setting for Regular Expressions. Alternatively, a consistent approach would be to drop it every time the clipbroad gets a new value not from the manual input with RE set.
So, the current behavior of TextMate is almost what I want (and does not cope well with the idea that literal find should switch RE off) except for one case -- when I restart TextMate. Fixing it to never keep RE or to always keep RE makes it consistent, and the former makes it less convenient for me.
What about Command-Option-F /Command-Option-G for regular expression search/replace; not interacting with Find clipboard, and just Option-F/Option-G for literal search/replace?
David Tolpin
On Dec 30, 2004, at 1:41, David Tolpin wrote:
When TextMate is running, I still can use Find in another program, such as Mail or Safari. In which case Regular Expression remains selected, but the string is not what was entered.
That's actually an oversight -- I thought I had it clear the regex flag when the string was externally changed. It's fixed in 1.1b1 :)
I believe that the right behavior is to keep the setting for Regular Expressions. Alternatively, a consistent approach would be to drop it every time the clipbroad gets a new value not from the manual input with RE set.
Yes, this is how it's supposed to act, and currently does for 1.1b1. This also applies to 'across sessions'. Previously it would, as said, just always clear the regex flag across sessions, but now it actually checks if the find string has been changed since the last session.
What about Command-Option-F /Command-Option-G for regular expression search/replace; not interacting with Find clipboard, and just Option-F/Option-G for literal search/replace?
I'm almost certain it'd put to much mental overhead on a search operation, having to use different keys depending on search options.