racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
444 stars 93 forks source link

Make file saving auto-adapt more to a language's extension #656

Closed mflatt closed 6 months ago

mflatt commented 6 months ago

For Windows, move a "*." pattern to the front when it matches the default extension, because put-file uses that first pattern to determine the default file extension.

For example, for a file that starts #lang rhombus, the default extension for saving a file turns into ".rhm" instead of ".rkt".

rfindler commented 6 months ago

I was confused by the fancy string munging at first but now I see how it works.

LGTM.