geany-plugins icon indicating copy to clipboard operation
geany-plugins copied to clipboard

[TreeBrowser] Allow right arrow key to open files

Open advice2020 opened this issue 11 months ago • 4 comments

I was wondering if it would be considered to add a setting that would allow your Right Arrow key to open items under the cursor/highlight.

Right Arrow on folders = expand folder (current behavior) Right Arrow on files = open that file in Geany tab (which is the same action as when you hit Enter key, but a little more convenient because hand is already on arrow key section of keyboard)

Thank You

advice2020 avatar Jan 03 '25 02:01 advice2020

I was wondering, does anyone know if this the proper location to make a request for the TreeBrowser plugin? Thank You

advice2020 avatar Jul 01 '25 01:07 advice2020

It is the right place.

I just added it in #1480 as it is quite simple.

eht16 avatar Jul 13 '25 09:07 eht16

Wow, I randomly just checked this post, this was a surprise. Thank you for adding this, I did not think anyone was going to agree with this. I think this kind of hotkey behavior should be used in all programs, very happy to see that you agreed enough to make this update. Just wish I had access to all of these great Geany and Geany plugin updates right now. Eventually going to have to see if I can be successful at trying to compile them properly. Anyways, thank you again for this update

advice2020 avatar Aug 08 '25 14:08 advice2020

I'd like to add my point of view on this one, as I don't find it is a good idea. I haven't (yet) seen editors¹ using cursor navigation to open files but require pressing the Enter key to confirm a voluntary act (so I assume). It's easy to involuntarily open a file because keyboard ergonomics is extremely variable and you can easily miss a key. Whereas the Enter (or Return) key is significantly larger than a regular key (most of the time, or at least it has a distinct shape or size that make it easily recognisable). While no damage can result from expanding a folder/directory in a tree view, opening a file by accident is not so innocuous, so be careful with that axe, Eugene.

¹ I must also confess I only know a small portion of the entire offer.

3-14152898 avatar Aug 24 '25 11:08 3-14152898