News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Open files list single click

Started by Krice, February 09, 2025, 12:25:05 PM

Previous topic - Next topic

Krice

I think open files list would work better if it had single click select to choose the source file rather than double click. It's driving me crazy to have to double click to view the file, I guess mainly because how it's implemented in Visual Studio (the right way). I tried to search if anyone had mentioned this, but no one, really? Also, Visual Studio doesn't even show tabs for files, because if you have them in the list it's not needed, because you can just select the file from the list. I'm using 20.03.

Grit Clef

#1
It is this code in src/plugins/openfileslist/openfileslistplugin.cpp which handles that event:

EVT_TREE_ITEM_ACTIVATED(idOpenFilesTree, OpenFilesListPlugin::OnTreeItemActivated)

But there's no such event that will be triggered when the item is single-clicked in wxTreeEvent.
Probably this thread.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Krice

So it's possible or not? Is wxWidgets blocking this too, like it always does?

Grit Clef

Maybe possible; that depends on whether the devs will accept adding some extra code in the source.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Krice

Source code for open files list is short, but when I was reading it I was surprised that it has almost no comments explaining what the code does. Bad developers! Trying to understand wxWidgets antics is annoying, it's just so wacky style of programming.

Krice

QtCreator has also one click open files list. It seems to be the standard. But other than that QtCreator, at least the open source version, is not that great. It really made me think about how lucky we are to have Code::Blocks which I think is the only (useful) open source IDE. Most so called IDEs are more like text editors, like QtCreator.

christo

#6
I've a patch which works based on https://forums.wxwidgets.org/viewtopic.php?t=43852

https://github.com/josephch/codeblocks/commit/9344b8b216ad593a1b0117211c946b2a8af04f1c

It works. It is really easier to navigate with single click.