[Geany] sort tabs

2012-10-02 Thread Gordon Wrigley
Hi

Is it possible to have the file tabs ordered alphabetically?

I'm still struggling to find a good way to manage open files, the documents
sidebar is nice but can't be onscreen at the same time as the symbols
sidebar. The file tabs rapidly fill up the available space, moving them to
the side fixes that, but once you have a couple of dozen finding any
particular one is hard.

G
___
Geany mailing list
Geany@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany


Re: [Geany] sort tabs

2012-10-02 Thread Lex Trotman
On 2 October 2012 19:56, Gordon Wrigley gordon.wrig...@gmail.com wrote:

 Hi

 Is it possible to have the file tabs ordered alphabetically?

 I'm still struggling to find a good way to manage open files, the
 documents sidebar is nice but can't be onscreen at the same time as the
 symbols sidebar. The file tabs rapidly fill up the available space, moving
 them to the side fixes that, but once you have a couple of dozen finding
 any particular one is hard.



Hi,

Agree with using tabs at the side, but no they are not sortable (at least
not by program).  The tabs are reorderable by dragging, and you can't mix
manual and automatic ordering, so GTK chose manual.

Cheers
Lex


 G

 ___
 Geany mailing list
 Geany@uvena.de
 https://lists.uvena.de/cgi-bin/mailman/listinfo/geany


___
Geany mailing list
Geany@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany


Re: [Geany] sort tabs

2012-10-02 Thread John Yeung
On Tue, Oct 2, 2012 at 6:47 AM, Lex Trotman ele...@gmail.com wrote:
 Agree with using tabs at the side, but no they are not sortable (at least
 not by program).  The tabs are reorderable by dragging, and you can't mix
 manual and automatic ordering, so GTK chose manual.

Well, mixing full-time automatic ordering with manual ordering would
be a problem, but there could be some command to do a one-time sort,
which would still be helpful for some users with tons of open files.
If not built in to Geany, then perhaps this could be a plugin or
something.

Another possibility (though probably more work, and Yet Another
Setting) would be to have full-time automatic ordering be a user
preference.

John
___
Geany mailing list
Geany@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany


Re: [Geany] sort tabs

2012-10-02 Thread Lex Trotman
On 2 October 2012 23:43, John Yeung gallium.arsen...@gmail.com wrote:

 On Tue, Oct 2, 2012 at 6:47 AM, Lex Trotman ele...@gmail.com wrote:
  Agree with using tabs at the side, but no they are not sortable (at least
  not by program).  The tabs are reorderable by dragging, and you can't mix
  manual and automatic ordering, so GTK chose manual.

 Well, mixing full-time automatic ordering with manual ordering would
 be a problem, but there could be some command to do a one-time sort,
 which would still be helpful for some users with tons of open files.
 If not built in to Geany, then perhaps this could be a plugin or
 something.

 Another possibility (though probably more work, and Yet Another
 Setting) would be to have full-time automatic ordering be a user
 preference.


Hi,

Yes a one-shot menu item would be a mere matter of programming, but
somebodys got to do it, patches are welcome.

Cheers
Lex



 John
 ___
 Geany mailing list
 Geany@uvena.de
 https://lists.uvena.de/cgi-bin/mailman/listinfo/geany

___
Geany mailing list
Geany@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany


Re: [Geany] sort tabs

2012-10-02 Thread Matthew Brush

On 12-10-02 02:56 AM, Gordon Wrigley wrote:

Hi

Is it possible to have the file tabs ordered alphabetically?

I'm still struggling to find a good way to manage open files, the documents
sidebar is nice but can't be onscreen at the same time as the symbols
sidebar. The file tabs rapidly fill up the available space, moving them to
the side fixes that, but once you have a couple of dozen finding any
particular one is hard.

G



This sounded easy enough to quickly do in a plugin, and was.

Here's the code:
https://gist.github.com/3824677

It disables tab reordering when loaded and sorts all open(ed) document 
tabs by display name alphabetically. When it's unloaded, it re-enables 
tab reordering so you can do it manually again.


Compile and install using instructions on Geany's Plugin How To page.

P.S. I wrote and tested the plugin in about 30 minutes so it might have 
some bugs or something but it seems to Work Fine For Me.


Cheers,
Matthew Brush

___
Geany mailing list
Geany@uvena.de
https://lists.uvena.de/cgi-bin/mailman/listinfo/geany