Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ftphikari opened this issue Feb 4, 2023 · 2 comments
Open
Labels

Comments

@ftphikari
Copy link

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.

@VioletGiraffe
Copy link
Owner

VioletGiraffe commented Feb 5, 2023

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants