mapeditor / mapeditor/tiled

Remember last used file extension for saving new files

Open
#3,319 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.