You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
This issue only relates to a single feature. I will open new issues for any other features.
Is your feature request related to a problem?
I have tried searching through all issues but am unable to find any that addresses this. The closest I found is #2981 but it is not exactly the same.
Currently, the FolderDialog seems to lack the feature of creating a new folder to be selected. For example, if the directory /Users/me/ exists, but I want to select the folder /Users/me/folder which does not already exist, I would have to create the folder separately first before selecting it from the FolderDialog.
Is it possible to construct a solution with the existing API?
I believe it is possible to add this functionality via FileDialog. What I have in mind is something along of the lines shown below.
type fileDialog struct {
...
newFolder *widget.Button
...
}
f.newFolder = widget.NewButton(label, func() {
// Get curr dir via f.dir
// Create folder via os.Mkdir
// Refresh dialog
})
Describe the solution you'd like to see.
As proposed above.
The text was updated successfully, but these errors were encountered:
This PR introduces the ability to create new folder directly from the file/folder dialog. This is motivated by the hassle of having to create a folder separately before being able to select it via the folder dialog.
Changes were made to makeUI() to include a create folder button in the options container which would open up a entry form dialog for user to input the new folder name before executing the mkdir syscall. Directory is then refreshed to enable user to select the newly created folder.
Fixes#3174
Checklist
Is your feature request related to a problem?
I have tried searching through all issues but am unable to find any that addresses this. The closest I found is #2981 but it is not exactly the same.
Currently, the FolderDialog seems to lack the feature of creating a new folder to be selected. For example, if the directory
/Users/me/
exists, but I want to select the folder/Users/me/folder
which does not already exist, I would have to create the folder separately first before selecting it from the FolderDialog.Is it possible to construct a solution with the existing API?
I believe it is possible to add this functionality via FileDialog. What I have in mind is something along of the lines shown below.
Describe the solution you'd like to see.
As proposed above.
The text was updated successfully, but these errors were encountered: