JunoLab / atom-julia-client

Juno a good IDE?
http://junolab.org
MIT License
272 stars 72 forks source link

open terminal from a text editor's directory #657

Closed aviatesk closed 4 years ago

aviatesk commented 4 years ago

I often want this when editing files outside of a current project.

Or maybe creating commands like julia-client: new-(remote-)terminal-from-active-directory (which will just start a terminal within a currently active editor's directory) is more preferable ?

pfitzseb commented 4 years ago

Should probably model this after the cd and activate-project commands (either right click in tree view or open in current editors dir).

aviatesk commented 4 years ago

Should probably model this after the cd and activate-project commands (either right click in tree view or open in current editors dir).

So basically you agree with creating an new command ? Then we can call it from tree-view, editor menus, and the command itself with a text editor active.

aviatesk commented 4 years ago

I found the current behaviour can be somewhat confusing

pfitzseb commented 4 years ago

Yeah, we should have two commands. The current one is fairly useful, imho, especially since you can enter a path yourself, but something cd-like is probably more approachable.

aviatesk commented 4 years ago

The current one is fairly useful, imho, especially since you can enter a path yourself, but something cd-like is probably more approachable.

When we run a new command (new-terminal-in-current-folder, if I name it after cd and such), we usually just want to open a terminal from the very current directory (or selected one from tree-view), so the new command would be useful even without that, I guess.

aviatesk commented 4 years ago

Okay the cd and activate-project like command is implemented. Menus and tree-view contexts are also updated.