Menu

#3595 search all buffers == all views

closed-fixed
5
2012-09-02
2011-10-14
No

There are 2 possible meanings of search "all buffers":
A. all buffers from current view
B. all buffers from all views - shortly "all views"
Currently jedit implements B. I would rather expect "all buffers" to mean A.

Background:
I work on a project in a single view. Then I want to open another project to take something from it. So I open a new view with another project and try to search all buffers in this new view. I get hits from both projects, which is not what I intended. I can hardly imagine a scenario in which I would really like to search all views.

Another problem with "all views" implementation. When I highlight a hit from other view, it opens in the current view. So I get duplicated open files. It's not what I intend when clicking on a hit.

All those problems disappear if we change the search scope to A - all buffers from current view. I think solution B could be introduced as a new feature, considering the problem with hitting a click from a different view. We could have then "all buffers" and "all views".

head, XP

Discussion

  • Robert Schwenn

    Robert Schwenn - 2011-10-14

    +1 for limit the search to the relevant buffer set.

    Maybe call it a feature request - but it would be consistent to the buffer set feature..

     
  • Alan Ezust

    Alan Ezust - 2012-02-28

    There is a third definition, in the case of split panes. In which case I would expect All Buffers to mean current editpane's bufferset.

     
  • Alan Ezust

    Alan Ezust - 2012-09-02

    use View.getBuffers() and that respects the BufferSet scope. Problem solved.

     
  • Alan Ezust

    Alan Ezust - 2012-09-02
    • assigned_to: nobody --> ezust
    • status: open --> closed-fixed
     
  • Alan Ezust

    Alan Ezust - 2012-09-02

    Committed 22138.

     

Log in to post a comment.

MongoDB Logo MongoDB