Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project setting for workingdir #27

Open
josh-j opened this issue Dec 5, 2012 · 1 comment
Open

Project setting for workingdir #27

josh-j opened this issue Dec 5, 2012 · 1 comment

Comments

@josh-j
Copy link

josh-j commented Dec 5, 2012

For some projects, you'll be in a directory that doesn't have the makefile and it makes no sense for turtlestein to execute commands there. A setting like shellturtlestein_workingdir in the project settings would solve that.

s = window.active_view().settings() if s.has("shellturtlestein_workingdir"): return s.get("shellturtlestein_workingdir")

in cwd_for_window will add that feature.

Alternatively, you could interpret the "cd" command for the shell-turtlestein's working directory. E.g., if I'm in C:\Test\src in turtlestein, I could type cd .. in turtlestein and move to the parent directory and execute commands there.

@misfo
Copy link
Owner

misfo commented Feb 19, 2013

I like both ideas. We'd have to do some special handling of the cd command in order to persist the directory that was changed to for that window. I'd accept a patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants