Subject: | Suggestion: Initial filename |
Date: | Mon, 11 Jun 2018 14:47:06 -0400 |
To: | bug-Tk-JFileDialog [...] rt.cpan.org |
From: | tlhackque <tlhackque [...] yahoo.com> |
Tk::JFileDialog::VERSION == 1.62
My day for trying to user your dialog... Wishlist item:
It would be nice to have a mechanism for providing an initial value for
the filename, as that would provide a better user experience in many cases..
For example:
Application reads foo.txt, and would ordinarily write foo.pdf in the
current directory.
So, JFileDialog is called from Save As.
Currently, I can't put "foo.pdf" into the filename box and './' into
the path box.
So even though the user is likely to use the suggested filename, but
change the path, (s)he must select or type the name. This is annoying
when the name is long. (There are use cases where the user rejects the
filename, but uses the path.)
One implementation might be:
-initial => '/home/users/george/foo.pdf',
or -initial => '~/george/foo.pdf',
or -initial => './foo.pdf' ...
leaving splitting the file and directory components to you.
Or -initialPath => '/home/users/george', initialFilename => 'foo.pdf'
Whatever fits your style...
Thanks for your consideration.