Cmder: how to open specail directory? in sublime Terminal plugin?

Created on 26 Jan 2014  路  8Comments  路  Source: cmderdev/cmder

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

Most helpful comment

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

All 8 comments

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:/"]
}

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

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

yes, it works! thanks.

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.

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spooky picture spooky  路  3Comments

hyrious picture hyrious  路  3Comments

bmeverett picture bmeverett  路  3Comments

vincentntang picture vincentntang  路  3Comments

Joe1992w picture Joe1992w  路  3Comments