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 start cmder from command line with a given task? #1043

Closed
lbaca opened this issue Jul 18, 2016 · 7 comments
Closed

How to start cmder from command line with a given task? #1043

lbaca opened this issue Jul 18, 2016 · 7 comments

Comments

@lbaca
Copy link

lbaca commented Jul 18, 2016

With ConEmu, you can run ConEmu64.exe -Single -run {Shells::cmd} from command line to start the task called "{Shells::cmd}". I cannot figure out how to do the same thing with cmder. My objective is to integrate this into an AutoHotkey script that does other things, so the task name is not necessarily known beforehand.

(Sorry if this is the wrong forum or manner by which to get the answer for this question.)

@jakenuts
Copy link

Seems like a really importance piece, not being able to launch "tasks" is a bit off

@daxgames
Copy link
Member

Cmder wraps conemu, conemu does what you ask. Doing this with cmder.exe gains you nothing, just use conemu to do it.

@lbaca
Copy link
Author

lbaca commented Jan 26, 2017

Doing this with Cmder gains me, well, doing it with Cmder. By that logic, what's the purpose of Cmder at all? I like its look and feel better, and would prefer to be able to use it as what it is, a Conemu wrapper, wherever I would use Conemu.

@Jackbennett
Copy link
Contributor

I think the cmder.exe wrapped has many changes in its future from all the stuff i've pointed back to #420

I can't really touch C++ so hopefully just getting all the related issues together will help those who can.

@daxgames
Copy link
Member

daxgames commented Jan 27, 2017

@lbaca cmder.exe just launches conemu.exe with a default task that launches init.bat. The true power of cmder is the init.bat and how it glues together all the software that make up the cmder suite. If you use conemu.exe to launch init.bat you are doing the same thing cmder.exe does.

@cyrilchapon
Copy link

cyrilchapon commented Sep 26, 2017

@daxgames

@lbaca cmder.exe just launches conemu.exe with a default task that launches init.bat.

Actually not "just launches", it also displays a nice icon in the taskbar.

Would it be possible for cmder to have an option to select predefined task when starting up ?
The whole point of a wrapper is to abstract a thing, isn't it ? So when the abstraction seem to lack an option, I think (this is my humble opition) this is just a lack of feature, not an out-of-scope unrelated feature oO

The cmder website says

Portable console emulator for Windows

Cmder is a software package created out of pure frustration over the absence of nice console emulators on Windows

Github page says

Lovely console emulator package for Windows http://cmder.net

Nothing says something like "light wrapper around a real console emulator"...

Thus, I'd like to launch a cmder terminal (not a ConEmu.exe or some obscure-already-wrapped-stuff-that-I-don't-have-time-to-digg-into-that's-exactly-why-I'm-using-a-wrapper terminal, a real cmder terminal) in administrator mode, from context menu, only when I want to. That seems a reasonable use-case for a console emulator doesn't it ?

I duplicated [HKCR]/Directory/Shell/Cmder to [HKCR]/Directory/Shell/Cmder_admin (and same for directory/background/shell). In "command" reg key, the invocation is in the form

"C:\[path of cmder]\cmder_mini\Cmder.exe" "%V"

Which, in the current state, doesn't allow one to tweak the console emulator launch.

@ReGrantDev
Copy link

What I would like to do is to have multiple tasks (preferably in external files) to where I could launch Cmder with a variety of configurations. For different projects I have different needs - meaning different split layouts, colors, tab names etc... The most convenient thing would be to launch Cmder and have it start out with this layout. I can use tasks but even after I figure out all the switches, there is still always one extra tab open that I don't need - as Cmder always starts out with something.

Seems like the topic here would be a way to achieve this but perhaps there is another way that I haven't found yet?

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