News for hackers. Stuff that matters.
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.