Skip to content

Add file-open, file-saveas, folder-picker dialog box support #178

Open
@sasumner

Description

@sasumner

Sometimes in my scripts I want to pop up a file open/saveas box, or a folder-choosing box.

As an example, I wanted to write a script to solve this Notepad++ user request:
notepad-plus-plus/notepad-plus-plus#8844 "...Save-All-as-Copy-(To-Folder)"
But I found it "unreasonable" to do without an easy way to pop up a box allowing the user of the script to choose the destination directory for the output.

In my own scripts I have used a variant of the "EasyDialogs", presented HERE.
That is problematic when publishing scripts for others, because it is a lot of extra code to add to a script file.
It is also a bit "dated" as it uses "old style" dialogs.

So my request is for something like this to be added into Pythonscript as member functions of the Notepad object.
It should be configurable like EasyDialogs, and should either return None if the user cancels the dialog, or a string with the path the user has specified via the dialog. Also, it should use the "new style" of dialogs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions