Whenever you choose “Save File As…”(or Link As… and so forth) in Safari it opens the typical window that allows you to choose whatever folder to want to save the file by mouse. However often I want to save an Emacs or Vim configuration or script to their respected hidden folders (~/.emacs.d or ~/.vim) and you can’t choose a hidden folder by default.
The inefficient way is to just download the file to some visible folder and then either move the file in the finder or use the mv command in the terminal. The efficient and smart way is to go to the “Save File As…” window in Safari and do Command-Shift-G. The window below will come up:
Now you put in the folder that you want, for example I would put in ~/.emacs.d and it would come up and I can choose so save my file in the hidden folder.
Enjoy!