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