|
From: Nathaniel G. <n8...@gm...> - 2008-05-01 23:43:13
|
On Thu, May 1, 2008 at 3:54 PM, Alan Ezust <ala...@gm...> wrote: > On Thu, May 1, 2008 at 3:34 PM, Nathaniel Gray <n8...@gm...> wrote: > > Looking at the code, I think maybe this change is a bit more > > aggressive compared to what I'm suggesting. I just want a way to > > attach a filter to any given buffer switcher, not actually bind the > > buffer to a given view. If you're actually going to bind buffers to > > views you also need an interface for moving them around between views > > and such -- it opens up a whole can of worms. > > The idea I am trying to achieve is that a buffer belongs to the view > that last opened it, and shouldn't show up in the other buffer > switchers next time the buffer switcher is regenerated. I understand -- this is basically the NEdit world. The problem I can see is that the pane a file opens in originally can be fairly arbitrary so you need a way of moving them. Without at least that ability you'll feel the pain sooner or later. > > My proposed interface would be something like a checkbox in the View > > pane labeled "enable file filters on panes". If the box is checked, > > each buffer switcher has the usual list of files but also an extra > > entry -- "Change filter". (Jiffy Lube? :-) If you choose this > > option you're presented with a dialog where you can choose from a few > > filter types: > > > > In this pane, show only: > > [ ] Files in project/project group (|Foo|) > > [ ] Files with language type (|Bar|) > > [ ] Files with paths matching regular expression: _______________ > > [ ] Files filtered by beanshell expression: ______________ > > > > The result would be a "filter" object attached to the pane object, > > used by the buffer switcher but also available for use with plugins > > and such. There should probably be some visual hint that the switcher > > is filtered -- like a "..." entry or something. > > > > What do you think? > > That is an excellent idea, and should be opened as a > jedit-feature-request ticket. Done. Ticket #1955759. Thanks, -n8 -- >>>-- Nathaniel Gray -- Caltech Computer Science ------> >>>-- Mojave Project -- http://mojave.cs.caltech.edu --> |