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

how to open specail directory? in sublime Terminal plugin? #123

Closed
atian25 opened this issue Jan 26, 2014 · 8 comments
Closed

how to open specail directory? in sublime Terminal plugin? #123

atian25 opened this issue Jan 26, 2014 · 8 comments

Comments

@atian25
Copy link

atian25 commented Jan 26, 2014

I'm using sublime text 3 with Terminal,

{
    // The command to execute for the terminal, leave blank for the OS default
    // On OS X the terminal can be set to iTerm.sh to execute iTerm
    //"terminal": "",
    "terminal": "D:\\Tool\\cmder\\Cmder.exe",

    // A list of default parameters to pass to the terminal, this can be
    // overridden by passing the "parameters" key with a list value to the args
    // dict when calling the "open_terminal" or "open_terminal_project_folder"
    // commands
    "parameters": []
}

but, it always open c:\Users\TZ

@pwiesner
Copy link

Hi @atian25,

By default cmder opens in a user's profile. You can either change this setting system wide (I have never tried this so I can't provide instructions) or you can use the /START parameter when launching cmder.

It looks like you can configure the Terminal plugin to pass the /START parameter using the parameters array. For example, if you would like cmder to open in your c:\ directory Terminal's configuration would look something like:

{
    // The command to execute for the terminal, leave blank for the OS default
    // On OS X the terminal can be set to iTerm.sh to execute iTerm
    //"terminal": "",
    "terminal": "D:\\Tool\\cmder\\Cmder.exe",

    // A list of default parameters to pass to the terminal, this can be
    // overridden by passing the "parameters" key with a list value to the args
    // dict when calling the "open_terminal" or "open_terminal_project_folder"
    // commands
    "parameters": ["/START", "c:/"]
}

@atian25
Copy link
Author

atian25 commented Feb 7, 2014

I means how to open the special project directory from sublime.
when using sublime plugin Terminal with cmd:

  1. open a file such as 'd:\my-project\src\main.js'
  2. press Terminal key ctrl+shift+t
  3. it will open cmd and auto jump to the folder d:\my-project\src
  4. so I expect cmder can do the same thing

@pwiesner
Copy link

pwiesner commented Feb 7, 2014

Replace "c:/" with "%CWD%". If that does not work, I would try asking your question in the Terminal plugin's forum.

@atian25
Copy link
Author

atian25 commented Feb 7, 2014

yes, it works! thanks.

@atian25 atian25 closed this as completed Feb 7, 2014
@fversepuy
Copy link

Thanks for this! I've been searching for that info for hours!
Where can we find some documentation about that START parameter or other parameters available to Cmdr? Didn't find "official" or "complete" or even "quite complete" Cmdr documentation out there.

@vishnuaniyan
Copy link

Thanks @pwiesner , It worked for me.
The best part is that we can also use Ctrl+Shift+t also :)

@babhishek21
Copy link

Thank you so much. I was nearing my wit's end. For reference, this behavior of Terminal is documented here.

@xnathanh
Copy link

xnathanh commented May 2, 2016

@pwiesner how to set "parameters": ["/START","xxxxx"] in mac?

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

6 participants