Updated BufferTabs plugin so that tabs can be dragged and dropped.
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.
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.
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.
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.
Another nice feature would be: if the bufferset scope is not global, then dnd between views should work too.