Skip to content

Open/Save dialogs - configurable filters #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ProgerXP opened this issue Feb 8, 2020 · 1 comment
Closed

Open/Save dialogs - configurable filters #258

ProgerXP opened this issue Feb 8, 2020 · 1 comment
Assignees

Comments

@ProgerXP
Copy link
Owner

ProgerXP commented Feb 8, 2020

Currently both dialogs display All files (*.*). I have checked the code and it seems this is hardcoded, isn't it?

Need to make this string customizable:

  • read the value from the INI (e.g. as a string of form Caption|*ma.sk|Caption 2|...) instead of the hardcoded All files (*.*)
  • the default value for that option is the current All files (*.*) (Notepad2 behaviour)
  • when an Open or Save dialog is submitted - remember the selected filter
  • when displaying an Open or Save dialog restore previously used filter (if there was none then the first)
  • no need to save last used filter to settings (when starting the process default to the first filter)
@cshnik
Copy link
Collaborator

cshnik commented Feb 25, 2020

Please use the following Settings2 INI-section:

[Settings2]
FileDlgFilters=DOC Files (.doc)|.doc|RTF Files (.rtf)|.rtf

FileDlgFilters ini option is used for Open/Save dialogs and is a part of original Notepad2.

  • when displaying an Open or Save dialog restore previously used filter (if there was none then the first)

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants