Way to open up a folder window for a cd command?

If I am running a short script (no modules) and I want to be in a particular directory for running that script, I usually cd into the directory when I start working. I use iterm on mac for my Julia coding right now.

Is there a way that I can open up a folder window to navigate to the preferred folder instead of typing out tons of cd commands? From the command line, without using Juno.

2 Likes

This may be a solution:
https://discourse.julialang.org/t/choose-a-file-interactively/

dir = open_dialog("Select Folder", action=GtkFileChooserAction.SELECT_FOLDER)

from here:
https://github.com/JuliaGraphics/Gtk.jl

I don’t know if this works for macs.

1 Like

Copy-paste the full path to one command:

cd(raw"absolut/path/to/your/folder/here")

And next time after starting Julia REPL again type c and press arrow up as many times as you will find your previous cd command. Note the raw is especially useful in Windows because it lets you use the native Windows style path with backsplash characters.