Default open directory after prefs reset should be more convenient

Issue #476 new
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

The first time I run TreeView (or after a prefs reset), I'd like the default location of the open dialog to be more conveniently/intelligently pre-selected.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Reset preferences & open treeview again
  2. Command-o or click the open button

CURRENT BEHAVIOR

The current default is the root level directory ("/").

treeview_default_open_dir_after_prefs_reset.png

EXPECTED BEHAVIOR

The default directory should be the user's home directory.

But ideally, I think that the default location of the open dialog's file browser should be the most recent Finder location. The open dialog already knows where the most recent location is, because it's in the dropdown menu at the top of the dialog:

recentplaces-edit.png

In the event that the Finder's recent places is not populated (I think the user can set the recents menu to 0 in finder preferences), the default location should be the user's home directory. If that fails, then root directory is fine.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

This needs OS-specific code.

FILES AFFECTED (where the changes will be implemented) - developers only

unknown

LEVEL OF EFFORT - developers only

minor

COMMENTS

Comments (2)

  1. Log in to comment