New menu items: Go > Darwin Directories (submenu)

Any wishes
Locked
JayB
Posts: 192
Joined: Sun Jan 08, 2017 4:38 pm

New menu items: Go > Darwin Directories (submenu)

Post by JayB » Thu Dec 03, 2020 3:37 pm

In NC's "Go" menu, it would be really cool to have a menu item "Darwin Directories", which is a submenu containing links to:
  • DARWIN_USER_DIR
  • DARWIN_USER_TEMP_DIR
  • DARWIN_USER_CACHE_DIR
The menu would then look something like this:

Code: Select all

Go
---dropdown---
Left Panel…
...
Processes List
---separator---
Darwin Directories
└── User
└── User Temp
└── User Cache
---separator---
Favorites
└── ...
...
You can get these yourself in Terminal with

Code: Select all

getconf DARWIN_USER_DIR
getconf DARWIN_USER_TEMP_DIR
getconf DARWIN_USER_CACHE_DIR
…so in principle it would be possible to just create three small scripts (NC tools) to run those commands and open these directories in NC, but having some dedicated fixed commands would also be nice.

Posssible?

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: New menu items: Go > Darwin Directories (submenu)

Post by mike » Fri Dec 04, 2020 2:01 pm

I'm not sure how is this different from Favourites?

JayB
Posts: 192
Joined: Sun Jan 08, 2017 4:38 pm

Re: New menu items: Go > Darwin Directories (submenu)

Post by JayB » Fri Dec 04, 2020 10:31 pm

Afaik the paths of the Darwin directories are not static, i.e. they're changed by macOS at every boot (or login?), so during app launch NC would have to run three commands to get the current Darwin dir paths for the current session, and direct the menu items to those paths. (But yes, if they were fixed paths, it would be easily covered by the Favorites functionality.)

Locked