TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why don't windows and mac apps default directories the way emacs does?

6 pointsby mhdhnover 5 years ago
I&#x27;ve been using Mac OS&#x27;s and Windows OS&#x27;s since the &#x27;80&#x27;s like everyone else. I <i>still</i> do not like and do not even get what standard, modern apps use to determine what directory to start out in when you do File -&gt; Open.... And I still don&#x27;t get what directory they choose to use when you do File -&gt; Save As.... In Emacs, it&#x27;s always been simple and right: when you do &quot;open&quot; (c-x c-f), it defaults to the same directory as the document you&#x27;re looking at (the current buffer), and when you do Save As..., it also defaults to saving in the same directory as the document you&#x27;re looking at (the current buffer). I waste so much time in &quot;modern&quot; apps navigating to the directory I want when it&#x27;s almost always just the directory of the current file. I wonder if I&#x27;m just missing something about the way it works, but I would like to know what is the rationale, if anyone knows. The only other time I asked someone seriously about this, a Windows app developer, was when I suggested defaulting the way I&#x27;m used to, and he said that was a great idea, he&#x27;d never thought of that. I thought that he might have been pulling my leg though. I kind of don&#x27;t get it. :)

6 comments

sloakenover 5 years ago
Obviously it depends on the app. Most apps I use do it intelligently. Maybe I am avoiding the dumb ones?<p>I suspect your developer friend is more like the typical developer. In that they never thought about that.<p>I cannot tell you how many apps &#x2F; web sites I have used where it is obvious that no one ever took a critical look at the user interaction. They have the pretty picture but not the functional interaction. My biggest bitch is the things that ask you to create, yet another password. Then they do not tell you what BS rules they have until you violate them. In the back of my mind I hear jerk laughing &quot;oh no thats just not right, what wrong with you, you need Upper Lower number symbol, at least 3 of each, not repeating not adjacent on keyboard or ordinarily a note from your mother etc etc....&quot; WTF why can they not list the rules up front. &lt;thank you I feel better now getting that off my chest :)&gt;
jobigoudover 5 years ago
&gt; I wonder if I&#x27;m just missing something about the way it works<p>On Windows when you create the dialog there is a flag named &quot;restore directory&quot; or something like this depending on the API. It will open the dialog on the same folder you used last time for this type of dialog for this application. It&#x27;s stored in the registry. Depending on the application this could be a better default than the currently opened file.
hashkbover 5 years ago
Because it&#x27;s called &quot;Finder&quot; so it&#x27;d be weird if you were already in the right place.<p>But seriously? You&#x27;re right. Modern software is rushed out the door according to a marketing deadline. These kinds of details never get priority. Nobody gets promoted at Apple for these kinds of things.
karmakazeover 5 years ago
The answer is in the question: defaults. If the app developer didn&#x27;t conscoiusly provide the starting directory for an open&#x2F;save-as dialog it will use the system default. On Windows this will often be the directory containing the program executable which is quite useless. Blame the File open&#x2F;save dialog api.
voldacarover 5 years ago
Because &quot;worse is better&quot; ate the world a long time ago
quickthrower2over 5 years ago
Thankfully VSCode behaves like how you describe Emacs too.