Donate Share

Geany

Tracker: Bugs

5 Ctrl-PgUp/Down Navigation when Notebook tabs hidden - ID: 2831600
Last Update: Comment added ( eht16 )

When working with large numbers of files (yes C++ ;-) it is more convenient
to navigate between files using the Documents sidebar.

Using Ctrl-PgUp/Down to navigate between files should be alphabetical in
that case, and not the order of the notebook tabs.

One way to do that is probably to sort the notebook pages alphabetically
when the tabs are not visible.


Conrad Steenberg ( gnocci-man ) - 2009-08-03 16:53

5

Open

None

Nobody/Anonymous

Interface

None

Public


Comments ( 5 )




Date: 2009-08-11 18:57
Sender: eht16Project AdminAccepting Donations

I'd prefer an option to enable sorting tabs over my previous patch. An
indepent option would be much nicer and less confusing than the approach in
my patch. It was just a hack :).

But we need to delay this a bit since we are currently in string freeze
for the upcoming Geany 0.18 release.


Date: 2009-08-10 22:14
Sender: gnocci-man

Either having a tab-sort option or the current patch is fine by me, but
since you did the work it's obviously your choice whether to keep the
current patch or make a new one :-)


Date: 2009-08-10 21:53
Sender: eht16Project AdminAccepting Donations

My patch does not sort the tabs in any special way.
Instead, the action when using Ctrl-PgDown/PgUp is changed. It doesn't ask
the notebook to switch to the next or previous tab, instead it selects the
next or previous item in the documents list and by selecting, this file tab
gets active.
I admit the logic is a bit weird but it was quite easy to implement
because the Documents list is already sorted and so we don't need to sort
the tabs list again.

On the other hand, your suggestion to add an option to generally sort tabs
alphabetically probably makes more sense and this option would be
independent from whether tabs are visible or not. The user can choose this
option and/or he/she can choose whether to display the tabs or not. Both
options doesn't depend on each other. So, it would be more flexible.

And we wouldn't even need to add a complete new option, we would just need
to extend the existing option "Placement of new file tabs" to a third value
like "Sort alphabetically" or something.


Date: 2009-08-09 21:13
Sender: gnocci-man

Hi Enrico

Can you describe a little more what your patch does? Does it sort the tabs
alphabetically when the tab titles are hidden?
I was thinking that maybe a natural way to achieve the same goal would be
to have an option to sort the tabs alphabetically under
Options->Interface->Editor tabs. I think Anjuta does it that way.

Thanks,
Conrad


Date: 2009-08-09 20:14
Sender: eht16Project AdminAccepting Donations

Attached is a small patch which implements the feature.
Though I'm not sure whether it's wise to actually use this code. While I
fully understand the reason for the request, I also see that it might be
confusing for other users when Geany changes it behaviour from something
like "natural" cycling order (i.e. it uses the order in which the files
were opened) to an alphabetically sorted order.

I'm just a bit splitted about using the code or keeping the current
behaviour.
Your opinions?


Log in to comment.




Attached File ( 1 )

Filename Description Download
geany_cycle_tabs_alphabetically.patch Possible solution Download

Change ( 1 )

Field Old Value Date By
File Added 338543: geany_cycle_tabs_alphabetically.patch 2009-08-09 20:11 eht16