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

No list of command-line options? #370

Closed
haunma opened this issue Jan 15, 2015 · 18 comments
Closed

No list of command-line options? #370

haunma opened this issue Jan 15, 2015 · 18 comments
Assignees
Milestone

Comments

@haunma
Copy link

haunma commented Jan 15, 2015

I hate to post such a dumb question as an "issue" but this is the only place I could find to potentially get some help. I am trying to launch a cmder instance to act as a git bash prompt. I know what I need to run, and it works fine if I type it in manually after starting cmder, but I cannot, for the life of me, figure out any way to supply a command+args on the cmder command line. No matter what I try, all I get is an error dialog which says:

Cmder Launcher: Unrecognized parameter. Valid options: /START /REGISTER /UNREGISTER

The main page suggests looking at the Conemu docs, but I cannot find a way to use any of the Conemu command-line switches on the cmder command line. What am I missing?

(Before someone suggests it, I know there are ways to make cmder always run certain commands at startup. I don't want that. I want to create a desktop shortcut for git bash, another for windows command prompt, another for ssh, and so on.)

@andreysaksonov
Copy link

https://github.com/bliker/cmder/blob/master/launcher/src/CmderLauncher.cpp#L105

Unfortunately, they are hard-coded in launcher, I don't see any way to provide command-line argument for ConEmu process. This is sad, I want to customize something...

Basically, I want /title parameter to be exposed, I want to name it something like "Terminal" and icon from mintty :)

@haunma
Copy link
Author

haunma commented Jan 26, 2015

Well that is disheartening, for a tool that aims to be the ultimate command line window :(

@blah238
Copy link

blah238 commented Feb 12, 2015

I agree, ConEmu has so many powerful command line arguments, for them to not be able to be passed in is a huge letdown.

@MartiUK
Copy link
Member

MartiUK commented Feb 12, 2015

Soon ™️

@Lizard
Copy link

Lizard commented Mar 23, 2015

I would like to see this implemented as well, shame it's not supported yet - shouldn't be too complicated.

@Muzical84
Copy link

It'd be nice if GitHub had a feature request thing, because those AREN'T really "issues," and users could vote on them.

@olsonpm
Copy link

olsonpm commented Jul 27, 2015

@Muzical84 - Most collaborators use the label feature to tag relevant issues as feature requests. Users typically 'vote' on them by commenting.

@jolet
Copy link

jolet commented Jan 7, 2016

+vote

@dbrimley
Copy link

+1

@Morkowski
Copy link

+1

1 similar comment
@toliklevy
Copy link

+1

@JimAmuro
Copy link

JimAmuro commented Aug 7, 2016

+1
I hope to choose which task to open for the given directory. I can use ConEmu with arguments to achieve that, but it seems if I use ConEmu arguments for the default {PowerShell} task it just ignores the directory path argument. Hence I think it should be safer to open it with cmder.

@otravers
Copy link

This would be useful so that commands could be typed directly from a launcher such as Launchy, like illustrated below (obviously, this doesn't actually work right now):

launchy-cmder

@thecere
Copy link

thecere commented Nov 26, 2016

This works in my launchy setup. The auto.bat file is indexed with the default launchy mechanisms. The cmder.bat is located next to cmder.exe

auto.bat:
@echo off
C:\apps\cmder\cmder.bat "d:\vls-trunk\env-win64\python27\python.exe -m auto.cli %*"

cmder.bat:
@echo off
set CMDER_ROOT=%~dp0
start %CMDER_ROOT%\vendor\conemu-maximus5\ConEmu.exe /icon "%CMDER_ROOT%\cmder.exe" /single /title Cmder /loadcfgfile "%CMDER_ROOT%\config\ConEmu.xml" /cmd cmd /k "%CMDER_ROOT%\vendor\init.bat cd %CD% && %~1"

@otravers
Copy link

Hi thecere, thanks for this but this returns "python/No module named auto". I just installed Python and there's no auto.cli.

@thecere
Copy link

thecere commented Nov 27, 2016

Hi otravers, forget the python specifics. The stuff in auto.bat is only an example for passing params around.

This one gives me the docker help if called with via launchy "auto > --help"
C:\apps\cmder\Cmder.bat "docker %*"

@otravers
Copy link

otravers commented Nov 27, 2016

Thanks a lot for clarifying, as you've seen I'm easily confused. I've created cli.bat with:

@echo off
C:\Users\Olivier\OneDrive\PortableApps\Cmder\cmder.bat "%*"

Now I can do cli > whatever in Launchy, and whatever gets executed in by cmd.exe within Cmder, which is exactly what I was asking for. Thanks again!

@daxgames
Copy link
Member

Added to Readme.md

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

No branches or pull requests