#1735 ProjectViewer changes behavior of "Search in Directory"

None
open
nobody
5
2014-03-17
2013-09-14
Alan Ezust
No

If I bind a shortcut to the built-in action, "search in directory" and invoke ProjectViewer's "Search in Project Root",
thereafter, "search in directory" restricts me from searching outside the project root.

Steps to reproduce: do "search in project root".
search in a folder like /tmp
it will tell you "that was outside the project. I will search in the project like you didn't mean to do."
I don't see how that is a desireable behavior, but ok, the action you invoked was "search in project root", so my bug report is not because of that.

Afterwards, try invoking the built-in action "search in directory" and do a search in /tmp.
same thing happens again!

that's just wrong in every way.

It appears that PV incorrectly changes how "Search in Directory" works.

Discussion

  • Alan Ezust
    Alan Ezust
    2013-09-15

    I found a workaround. If you used "search in project root" and
    then later do "search in directory", all you gotta do is click one of the other "search in" radio buttons, such as "all buffers", and then click the "directory" radio button to re-select it.

    This appears to "clear out" whatever stuff was put into jEdit's SearchAndReplace static variables by ProjectViewer and makes "Search in Directory" work as it did before.

     
  • Alan Ezust
    Alan Ezust
    2014-03-17

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -13,6 +13,6 @@
    
    -It appears that PV incorrectly changes how "Search in Project Root" works. 
    +It appears that PV incorrectly changes how "Search in Directory" works.
    
    • Group: -->