chrissimpkins / glue

Glue is a plugin that joins your shell to Sublime Text in quasi-perfect harmony.
http://gluedocs.readthedocs.org/
MIT License
254 stars 10 forks source link

Project folder by default #17

Closed fvelcker closed 10 years ago

fvelcker commented 10 years ago

Will it be possible to default the path to the current project folder (if we are in a project of course) when we open the terminal ?

chrissimpkins commented 10 years ago

Open Glue with the right click menu in the project sidebar or open it with one of the project files open in the editor. By default Sublime buffers do not maintain the directory state of your project until they are saved in the project directory so Glue does not have access to it unless there is a way to poll for the project through an open file (or right click menu in sidebar if the editor has no open views).

Let me know if that helps.

fvelcker commented 10 years ago

Sorry to have not replied earlier.

I am not sure to understand but I just notice one thing. (and maybe that's what you explained me) If I open Glue from a file, Glue default the path to this file folder for the first command. But if I execute a second command, the path has changed for another one. The best way to reproduce is to do two "dir" command.

chrissimpkins commented 10 years ago

You are on windows? Are you using your default shell or did you set it to a different one in the settings?

On Apr 16, 2014, at 3:53 AM, Florian Velcker notifications@github.com wrote:

Sorry to have not replied earlier.

I am not sure to understand but I just notice one thing. (and maybe that's what you explained me) If I open Glue from a file, Glue default the path to this file folder for the first command. But if I execute a second command, the path has changed for another one. The best way to reproduce is to do two "dir" command.

— Reply to this email directly or view it on GitHub.

fvelcker commented 10 years ago

Yes Windows 7. I could try at home on a Linux if you need. I use the default shell I suppose as I didn't change any Glue settings.

chrissimpkins commented 10 years ago

The current working directory listed by your shell may differ from the one that Glue uses. Try those commands again and check the path that is displayed at your command prompt. Next, try to navigate to a directory that contains a .exe file and attempt to run it from the current working directory. You can use the cd command to change directories.

Let me know what you see with these tests and we will go from there.