Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#141 Drag'n Drop BufferTabs

open
nobody
None
5
2012-08-15
2012-07-16
Todd Gerspacher
No

Updated BufferTabs plugin so that tabs can be dragged and dropped.

Discussion

1 2 3 > >> (Page 1 of 3)
    • assigned_to: nobody --> arobert
     
  • Alan Ezust
    Alan Ezust
    2012-07-18

    I'm trying it out now. I can drag, but I can't seem to drop. Is it supposed to allow me to move a buffer from one EditPane to another? Or just reorder the tabs in a single editpane? Because if I am sorting my buffers by name, then there is no point in drag and drop unless it can go between editpanes and views.

     
  • Alan Ezust
    Alan Ezust
    2012-07-18

    • assigned_to: arobert --> nobody
     
  • In fact I don't understand. As far as I remember it was already possible to drag buffers to reorder them (if the buffers are not sorted by jEdit) isn't it ?
    This patch add a "glass panel", that's a nice feature, but does it add something else ?

     
  • @kpouer The BufferTabs plugin shows through tabs all the files that you have opened. But it doesn't allow you to visually rearrange them. This patch does that. GlassPane is there in order to draw over the JTabbedPane to show the tab being dragged and to indicate where the tab will be dropped to.

    @ezust You should be able to drop, the icon just says you can't. I fixed that in the updated patch (along with some fixes to minor PMD warnings about unnecessary nested if statements). If you do a split screen, you can only drop the tab in the same screen. You can't drag a tab from one screen and drop it into a spot on a second screen. You can, however, reorder the tabs differently among the screens.

     
  • Alan Ezust
    Alan Ezust
    2012-07-19

    I tried the updated patch. I am still unable to drop into another split pane.
    I am able to re-order the tabs only if buffersets are not sorted.
    And while that was possible before, the visual feedback that is given now during a drag is a slight improvement.

     
  • Thanks for pointing out that drop doesn't work when buffersets are sorted. I will try to fix this as soon as possible.

    Can you please explain how drag and drop should work between split panes? Are you talking about keeping the panes synchronized so that when I move a tab in one pane it gets moved in the other pane? I kind of like being able to rearrange the tabs independent of the pane that they are in.

     
  • Alan Ezust
    Alan Ezust
    2012-07-19

    If your bufferset scope is not EditPane, then drag and drop between editpanes should be forbidden.
    And if your buffersets are sorted, drag and drop on the same editpane should also be forbidden.

     
  • A very nice feature would be that if you drag outside a view from jEdit, it creates a new plain view with the buffer it it.

     
  • Alan Ezust
    Alan Ezust
    2012-07-19

    Another nice feature would be: if the bufferset scope is not global, then dnd between views should work too.

     
1 2 3 > >> (Page 1 of 3)