file-commander icon indicating copy to clipboard operation
file-commander copied to clipboard

Typing folder name while navigating files does not work as intended?

Open ftphikari opened this issue 2 years ago • 2 comments

Normally when you type a file/folder name while navigating, it selects a closest matching file. However directories are taken into square brackets, therefore for a directory name like [Pictures] typing pic does not work, but typing [pic does. This is probably not what the user wants, I expected square brackets to be merely decorations that denote a directory.

ftphikari avatar Feb 04 '23 16:02 ftphikari

That's definitely a bug, but more importantly, this quick filtering / quick search feature doesn't work at all, I'll look into this. Some Qt event handling hackery is probably required. Or, a different implementation altogether.

VioletGiraffe avatar Feb 05 '23 11:02 VioletGiraffe

I see that I have misunderstood the question originally, you weren't talking about the Ctrl+F feature. Quick navigation by typing is also broken in more ways than one - it doesn't scroll to the selected out if it is off-screen. I don't know if it's a QTreeView issue or if my code broke it, but I suspect the former. And yes, since the QTreeView only sees the bracketed name, that's what it relies on for navigation. I don't know if there's a way to make this standard Qt feature work, or if I would have to re-implement it manually.

VioletGiraffe avatar Mar 05 '23 19:03 VioletGiraffe