News for hackers. Stuff that matters.
Re:Ask HN: What feature did you find after years of using ma... by corytheboyd on Saturday August 08, 2020 @10:42AM (#24091930)
The keyboard shortcut in finder to take you to your home directory, cmd + shift + h if I recall correctly. Makes it trivial to keyboard navigate to anything when you can easily start from the same place every time!
Re:Ask HN: What feature did you find after years of using ma... by house9-2 on Saturday August 08, 2020 @11:02AM (#24092110)
cmd + shift + h = home directory

cmd + shift + a = applications directory

cmd + shift + d = desktop directory

Semi-related, type `open .` in terminal to open that directory in Finder

Re:Ask HN: What feature did you find after years of using ma... by haddr on Saturday August 08, 2020 @11:24AM (#24092331)
And when you are in terminal and want to change dir to some different path, just drag and drop it from finder (either a file or just a icon from the title bar)
Re:Ask HN: What feature did you find after years of using ma... by donarb on Saturday August 08, 2020 @01:05PM (#24093188)
If you cmd-drop a file icon into Terminal, it will automatically cd into the parent directory, it prefixes the path with cd and appends ; at the end and executes it. If the icon is a folder, it will automatically cd into that directory.

If you shift-drop a file icon into Terminal, it will paste the file path to the command line without escaping spaces.

Re:Ask HN: What feature did you find after years of using ma... by throwawaw on Saturday August 08, 2020 @11:29AM (#24092372)
Is there a reverse version of that last one? For navigation I prefer Finder over `cd; ls`, but once I end up where I want to be I generally need a terminal.

edit: Another user replied with what I want as I typed this! Thank you haddr.

Re:Ask HN: What feature did you find after years of using ma... by roryokane on Monday August 10, 2020 @11:40PM (#24116954)
You’re referring to the tip to drag the Finder folder onto the Terminal window. There’s another way that is easier if you don’t already have a Terminal window open:

Install the app “cd to…” (https://github.com/jbtule/cdto) and add it to your Finder toolbar. Now clicking that icon will open a new Terminal (or iTerm) window within the selected folder.

Re:Ask HN: What feature did you find after years of using ma... by m463 on Saturday August 08, 2020 @01:25PM (#24093373)
I use cmd+shift+u all the time.

It's great when you don't have a mouse, or don't want to use it:

cmd+tab: pulls up app switcher, keep clicking until you select Finder

cmd+shift+u: opens utility menu t: highlights Terminal.app cmd+o: opens a terminal

type

Re:Ask HN: What feature did you find after years of using ma... by antipaul on Saturday August 08, 2020 @03:27PM (#24094378)
Could also spotlight search for Terminal

cmd-space, terminal, return

Re:Ask HN: What feature did you find after years of using ma... by ramses0 on Saturday August 08, 2020 @11:05AM (#24092143)
`xdg-open .` is the Linux equivalent.
Re:Ask HN: What feature did you find after years of using ma... by GavinAnderegg on Saturday August 08, 2020 @11:09AM (#24092199)
There are a whole bunch of these as well! If you open a Finder window, and look at the Go menu, you'll see all the options. You can also use Cmd-Shift-G to open a path entry dialog with tab completion.
Re:Ask HN: What feature did you find after years of using ma... by mesofile on Saturday August 08, 2020 @11:04AM (#24092127)
There are dozens of these shortcuts -- I use the ones for the Applications (cmd + shift + a) and Desktop (cmd + shift + d) most often, but you can find many others listed here: https://support.apple.com/en-us/HT201236
Re:Ask HN: What feature did you find after years of using ma... by NaOH on Saturday August 08, 2020 @10:53AM (#24092029)
If you don't know, that shortcut also works in Open/Save dialogs. The same is true for nearly all the shortcuts in the Finder > Go menu (go to Desktop switches to Command-D in those dialogs).
Re:Ask HN: What feature did you find after years of using ma... by hooda on Saturday August 08, 2020 @10:48AM (#24091973)
You can also set which folder (downnloads/documents/desktop) to open by default when you open a new Finder Window.
Re:Ask HN: What feature did you find after years of using ma... by moralestapia on Saturday August 08, 2020 @11:06AM (#24092154)
Cmd + D : Desktop, that's the one I use.