Remember last used file extension for saving new files
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
Some formats support multiple files extensions (TMX supports `.xml` in addition to `.tmx`/`.tsx`), JSON supports `.json` in addition to the recently added `.tmj`/`.tsj`). When saving new files, the suggested file format is based on the last used one, but the file extension is always the first one (see `Utils::firstExtension`).
It would be nice if the last used file extension was also remembered, and suggested instead of the first one listed for the selected file format.
Split off from issue #3317.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Utils::firstExtension and trace the save-new-file flow that chooses a suggested extension after the last-used file format is selected. Check the TMX and JSON extension cases described in the issue; done means the most recently used extension is suggested instead of always using the first listed extension.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100