Somewhere between the last 2 Thunar releases "finding" a file/folder by typing its name stopped working on random intervals. Expected behavior: I should be able to write the whole name of the file/folder I am looking for Actual behavior: At random intervals (ie, cannot be replicated every single time) Thunar will only take the first letter of the input and ignore any other keyboard input after it - including Enter or ctrl+key - Esc may be an exception. There is no reliable way to reproduce this behavior.
Most likely related to latest exo changes: Bug #14994 You are using exo-0.12.4 (libexo) ?
Yep, thats the version on my system. I noticed that the bug is related to two monitors though, I only use one, is that relevant?
Well, if the bug only appeared after upgrade to exo 0.12.4, than probably it is the cause. Can you switch back to the old version and see if you can reproduce the bug there ? I cannot reproduce this bug .. for me the search works like expected, tried for 5min now.
Im not sure if I can downgrade -- at least I dont know how to do it on Arch. It doesnt help that the bug appears completely randomly either. It can go day without me hitting it, and then it suddenly reappears again. Also, this probably isnt really helpful at all, but just in case Im describing the things wrong, this is a recording of the bug - no inputs after the first letter get registered, and only some keys work (backspace did work, but I believe delete and ctrl commands didnt). https://my.mixtape.moe/fdrfva.webm
OK, I just hit the bug again literally 30 seconds after sending the last post - this time not even backspace or enter worked, the whole Thunar window just locked up input-wise until the prompt disappeared or until I clicked on a folder. Also, I believe this bug may be affecting mostly older instances of Thunar open for about 30 minutes or so and longer.
Created attachment 8279 Experimental patch I think I found a way to reliably reproduce the issue: - open a Thunar window, - without starting a search switch to some other window via alt+tab, - switch back to Thunar and start a search via typing. I so far had no success tracking down the exact cause of the issue in the current patch to #14994. But maybe the following helps: As I was not aware of how exo-icon-view is used in applications other than Thunar the original patch for #14994 aimed at reproducing the implementation of GTK's treeview as closely as possible. When simplifying the code to what's needed for making type-ahead-search work in Thunar the issue does not seem to occur. Please find a corresponding experimental patch for further discussion attached. I'd be happy to test the patch against other applications using exo-icon-view if there are any.
Yep, I can confirm that alt tabbing out of the window does reproduce the bug in most (but not all?) cases. I just tried it on two windows I already had opened, and the bug did not occur. Opening a new window and alt+tabbing out of it and back replicated the bug.
Well done again dwu, thanks ! Yes, now I as well can reproduce the bug. Your patch fixes the problem, I tested for thunar master and for the 4.12 branch. (Sorry dont know who else makes use of the search field other than thunar ) IMO code already looks good to get pushed .. or would you prefer to further search for the exact cause ?
@dwu Ok for you if I ask bluesabre to test & push you experimental patch ? (IMO it looks good to get pushed)
Sorry for my late reply. Sure, please proceed as you see fit. I currently don't have access to my development machine so I didn't really dig deeper into this. So while I'm pretty sure that the patch is not the best solution, it seems to fix the issue at least for Thunar.
*** Bug 15182 has been marked as a duplicate of this bug. ***
@alexxcons Can you test this with thunar 1.6.x so we can make sure there's not a regression with the GTK2 version of the exo library?
@Sean Davis I just tested, as well seems to work fine for thunar 1.6.x. Should be ok to get pushed.
Sean Davis referenced this bugreport in commit ae706f0be78bfc117973818a6a8c55168090349d Fix typehead in ExoIconView (bug #15100) https://git.xfce.org/xfce/exo/commit?id=ae706f0be78bfc117973818a6a8c55168090349d
Added your patch in the above commit, thanks!
*** Bug 15316 has been marked as a duplicate of this bug. ***