Skip to content

fix(ImFileDialog): allow typing/pasting full file paths in open mode#1530

Merged
tdewey-rpi merged 1 commit into
raspberrypi:mainfrom
4RH1T3CT0R7:dev/4rh1t3ct0r/fix-file-path-input
Mar 3, 2026
Merged

fix(ImFileDialog): allow typing/pasting full file paths in open mode#1530
tdewey-rpi merged 1 commit into
raspberrypi:mainfrom
4RH1T3CT0R7:dev/4rh1t3ct0r/fix-file-path-input

Conversation

@4RH1T3CT0R7

@4RH1T3CT0R7 4RH1T3CT0R7 commented Feb 27, 2026

Copy link
Copy Markdown
Contributor
  • The path field in open mode previously only supported folder navigation. When a user typed a complete file path (e.g. ~/Downloads/image.img) and pressed Enter, it was incorrectly treated as a directory path and failed silently.
  • Add file-path detection via extension heuristic so that typed file paths are accepted directly, and enable the Open button when a file-like path is entered.
  • All changes are gated by !isSaveDialog, so save mode is unaffected.

Closes #1502

@4RH1T3CT0R7 4RH1T3CT0R7 force-pushed the dev/4rh1t3ct0r/fix-file-path-input branch from 624907f to 5a4f7dd Compare February 27, 2026 11:32
The path field in open mode previously only supported folder navigation.
When a user typed a complete file path (e.g. ~/Downloads/image.img) and
pressed Enter, it was incorrectly treated as a directory path and failed
silently. Add file-path detection via extension heuristic so that typed
file paths are accepted directly, and enable the Open button when a
file-like path is entered.

Closes raspberrypi#1502
@tdewey-rpi tdewey-rpi force-pushed the dev/4rh1t3ct0r/fix-file-path-input branch from 5a4f7dd to f1f8deb Compare February 27, 2026 16:58
@tdewey-rpi

Copy link
Copy Markdown
Collaborator

I'm essentially happy with this change. Thanks for the submission, @4RH1T3CT0R7

@tdewey-rpi tdewey-rpi merged commit 59d40bd into raspberrypi:main Mar 3, 2026
@4RH1T3CT0R7 4RH1T3CT0R7 deleted the dev/4rh1t3ct0r/fix-file-path-input branch March 3, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Inputting image path in the path window does not enable using that image, have to navigate to the directory

2 participants