Find history to save context?

Would it be useful in Find Text (and similar) for the "Text to find"
history to include the options? For example, if you pull up a prior Text
that was a regular expression, the options would change accordingly. I
am considering filing a feature request but wanted to see what others
thought first.

Jon

2 comments

I think it is a very good idea.
However I am not sure I would include all options.
Your regexp example you gave is a good one. The other search options that I would save would be the one in the Options panel. This is because they are an intrinsic attribute of the string you entered. You would obtain the wrong result if the regex option was in the wrong state. However search in selection, file, from cursor or globally is IMHO more an attribute of the context. I could not come up with a scenario where taking the last search options might not be as valid as the original options of the history search. However I am not so sure.
If I do a bunch of search in a row and I happen to use a history item because it matches closely what I need, it might be confusing to have the options change everytimes. However if I want to redo a search I did previously I might want all the options I picked at that time.
Tough tough.
But as far as the options in the Options panel (Case sensitive, Word only, regfex), I would save them in the history for sure.
I think it would make a fine SCR!

Jacques

0

Jacques Morel wrote:

I think it is a very good idea.
However I am not sure I would include all options.
Your regexp example you gave is a good one. The other search options that I would save would be the one in the Options panel. This is because they are an intrinsic attribute of the string you entered. You would obtain the wrong result if the regex option was in the wrong state. However search in selection, file, from cursor or globally is IMHO more an attribute of the context. I could not come up with a scenario where taking the last search options might not be as valid as the original options of the history search. However I am not so sure.
If I do a bunch of search in a row and I happen to use a history item because it matches closely what I need, it might be confusing to have the options change everytimes. However if I want to redo a search I did previously I might want all the options I picked at that time.
Tough tough.
But as far as the options in the Options panel (Case sensitive, Word only, regfex), I would save them in the history for sure.
I think it would make a fine SCR!


Thanks, Jacques. I went ahead an put up an SCR, #12107
http://www.intellij.net/tracker/idea/viewSCR?publicId=12107

I agree that the Options panel is a must for recalling. I'm also not
sure about the other panels. I wonder if everyone agrees that Options is
the only panel that should be saved in history.

Jon

0

Please sign in to leave a comment.