Currently, when saving a file, typing in the window opens the search input instead of focusing on the filename input. Setting GTK_USE_PORTAL=0
resolves this issue by reverting to the old-style file picker. Would be better if (in case of save action) Files would disable search-on-typing and prioritize the filename input instead.
We have a few inter-related issues about the problem you are facing in practice, so you can subscribe to those tickets to be notified when they get solved:
- No keyboard shortcut / mnemonic to directly focus the filename editing field in filechooser mode (#3597)
- In File Chooser saving mode, directly typing launches a search instead of renaming the file (#3663)
- While typing search queries in filechooser mode, intermediary results accidentally get selected and overwrite the filename (#3709)
- File Chooser does not prompt to overwrite when clicking a search result in single-click mode, does not allow overwriting in double-click mode (#3606)
Thanks for the issue references here. I’ve been wanting to work on this issue but have had some trouble learning enough about the code base. I just commented a potential lead on #3663 (In File Chooser saving mode, directly typing launches a search instead of renaming the file)
I saw your suggestion for fixing this by modifying the C code - however do you know of any workaround (I am ok with a hacky workaround ) for now that does NOT involve re-compiling? Of course such a workaround is only needed till an official fix is merged in Gnome.
Unfortunately all I’ve got if using a mouse isn’t an option, which I know really is sometimes the case, is that you can back out of the overwrite-file confirmation dialog and then edit the filename. I don’t think it’s a safe or reasonable way to do it, since it takes several steps and risks overwriting a file with one accidental confirmation, but it does exist.