racket / drracket

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

Feature request: "Save image..." should begin in current working directory #507

Open maueroats opened 2 years ago

maueroats commented 2 years ago

Racket 8.2 [cs] Linux

Observed behavior

Save the following code in a folder:

(require 2htdp/image)
(circle 10 "solid" "blue")

Right click on the image and choose "Save image...". Notice that you begin in $HOME and not the folder where the Racket source code was saved.

Save the image and repeat the process. Notice that you again begin in the $HOME folder and not where you last saved the image.

Desired Behavior

  1. Begin the save process in the directory where the file is saved.
  2. Remember the previous folder when saving multiple images one after the other. (Less important)
rfindler commented 2 years ago

I believe this choice is under the control of the operating system and the rules for the initial directory of the dialog that it creates. It is possible to override them by passing specific arguments to put-file, but it has always seemed better to not do that. That said, linux is the place where it might make sense to override the platform defaults, I suppose.

(Also, it may be that you start in the original directory where DrRacket was started, not necessarily the home directory.)