Open ConEmu Here ContextMenu using Cygwin

709 views
Skip to first unread message

Ömer Genç

unread,
Dec 20, 2013, 12:41:51 AM12/20/13
to cone...@googlegroups.com
Here there, 

i am trying to create a new right-click context menu entry in windows 7. I am using ConEmu in combination with cygwin. What i want to have is exactly, what is described here for ConEmu and Git Bash. 


I nearly achieved what i want and i have a working context menu entry.
The problem is ConEmu always starts in the $HOME directory, i want it to start in the directory on which i made the right-click.

Here are the screenshot of my configuration. 




ConEmu Maximus

unread,
Dec 20, 2013, 1:04:22 AM12/20/13
to cone...@googlegroups.com
Hi, there is a bug in the cygwin version of bash.
It ignore "starting directory".
You need to contact cygwin developers but not me...

Regards

> --
> You received this message because you are subscribed to the Google Groups "ConEmu ML" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to conemu_ml+...@googlegroups.com.
> To post to this group, send email to cone...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/conemu_ml/81683039-0fd4-4c76-acb8-a9fa84c200ea%40googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out .

>

--

Ömer Genç

unread,
Dec 20, 2013, 2:28:28 AM12/20/13
to cone...@googlegroups.com
Hey,

i was able to fix this on my own!

The command must be »""C:\cygwin64\bin\sh" --login -i"« instead of »""C:\cygwin64\bin\bash" --login -i"«.
Now it works as expected.

Is it possible to assign a keyboard shortcut to trigger the context menu entry?

Thanks

Maximus ConEmu

unread,
Dec 20, 2013, 3:04:22 AM12/20/13
to cone...@googlegroups.com
Strange, you are lucky )

Use "&"to create shortcut.

Ömer Genç

unread,
Dec 20, 2013, 3:36:51 AM12/20/13
to cone...@googlegroups.com
Hey,

i am sorry but i dont understand, how to use "&".

Could you post an example?

Lets say i want to assign the combo "ALT+SHIFT+x" to trigger the context menu entry?

Thanks in advance

ConEmu Maximus

unread,
Dec 20, 2013, 3:53:42 AM12/20/13
to cone...@googlegroups.com
ConEmu CAN'T manage hotkeys in the explorer!
You can only highlight one letter in the menu item name, e.g. "ConEmu &here".
Alternatively, you can try to deal with AutoHotKey

> --
> You received this message because you are subscribed to the Google Groups "ConEmu ML" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to conemu_ml+...@googlegroups.com.
> To post to this group, send email to cone...@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/conemu_ml/ecb34c89-cf6a-4e81-a3e2-5f25edc494d5%40googlegroups.com .

Ömer Genç

unread,
Dec 20, 2013, 4:22:52 AM12/20/13
to cone...@googlegroups.com
Hey,

thanks. I will give it a try!
By the way, nice work that you put into the ConEmu project!

Cheers

-----Ursprüngliche Nachricht-----
Von: cone...@googlegroups.com [mailto:cone...@googlegroups.com] Im
Auftrag von ConEmu Maximus
Gesendet: Freitag, 20. Dezember 2013 09:54
An: cone...@googlegroups.com
Betreff: Re: [conemu_ml:338] Re: Open ConEmu Here ContextMenu using Cygwin
You received this message because you are subscribed to a topic in the
Google Groups "ConEmu ML" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/conemu_ml/gKOsSV0_o1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
conemu_ml+...@googlegroups.com.
To post to this group, send email to cone...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/conemu_ml/1387529622.466161907%40f139.i.ma
il.ru.

Ömer Genç

unread,
Dec 23, 2013, 6:50:33 AM12/23/13
to cone...@googlegroups.com
Hey,

i am still struggling with this. I realy would like to have a keyboard shortcut that opens a ConEmu instance, runs a Cygwin bash in the currently selected directory.

As mentioned, i have a Windows 7 context menu entry "ConEme here", which does exactly that. It works fine. Now i would like to trigger this with the keyboard.
In response to your suggestion to deal with AutoHotKey, i created a AutoHotKey script and inserted the following:

#x::RUN "C:\Program Files\ConEmu\ConEmu64.exe" /cmd {Cygwin}

This is exactly the command i found in the Windows registry of the "ConEmu here" context menu entry.
What this does is, on pressing the keyboard combination "WIN+x" it opens a ConEmu and loads the cygwin bash shell.
However, unfortuneately it does not enter the correct directory. The bash shell always starts in the directory where the AutoHotKey script containing the Keyboard command resides.

I believe, i am missing the part of the command where the currently selected directory is passed in as an argument to the bash shell.

Do you have any ideas?

Thanks in advance.


Am Freitag, 20. Dezember 2013 10:22:52 UTC+1 schrieb Ömer Genç:
Hey,

thanks. I will give it a try!
By the way, nice work that you put into the ConEmu project!

Cheers

-----Ursprüngliche Nachricht-----
> To post to this group, send email to cone...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/conemu_ml/ecb34c89-cf6a-4e81-a3e2-5f25edc4
94d5%40googlegroups.com
.
> For more options, visit  https://groups.google.com/groups/opt_out .

>

--

--
You received this message because you are subscribed to a topic in the
Google Groups "ConEmu ML" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/conemu_ml/gKOsSV0_o1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to

ConEmu Maximus

unread,
Dec 23, 2013, 7:18:39 AM12/23/13
to cone...@googlegroups.com
Two ways I think

1. Retrieve somehow path from explorer (this depends on Windows version and explorer settings. Sometimes it is displayed in the window title)
And run
...\ConEmu64.exe" /dir "your dir here" /cmd {Cygwin}

2. Simulate calling menu item. Post to explorer RightClick (or Apps key press) and hotkey of "ConEmu here".

Good luck


> Hey,
>
> i am still struggling with this. I realy would like to have a keyboard shortcut that opens a ConEmu instance, runs a Cygwin bash in the currently selected directory.
>
> As mentioned, i have a Windows 7 context menu entry "ConEme here", which does exactly that. It works fine. Now i would like to trigger this with the keyboard.
> In response to your suggestion to deal with AutoHotKey, i created a AutoHotKey script and inserted the following:
>
> #x::RUN "C:\Program Files\ConEmu\ConEmu64.exe" /cmd {Cygwin}
>
> This is exactly the command i found in the Windows registry of the "ConEmu here" context menu entry.
> What this does is, on pressing the keyboard combination "WIN+x" it opens a ConEmu and loads the cygwin bash shell.
> However, unfortuneately it does not enter the correct directory. The bash shell always starts in the directory where the AutoHotKey script containing the Keyboard command resides.
>
> I believe, i am missing the part of the command where the currently selected directory is passed in as an argument to the bash shell.
>
> Do you have any ideas?
>
> Thanks in advance.
>
> Am Freitag, 20. Dezember 2013 10:22:52 UTC+1 schrieb Ömer Genç: Hey,
> >
> >thanks. I will give it a try!
> >By the way, nice work that you put into the ConEmu project!
> >
> >Cheers
> >
> >-----Ursprüngliche Nachricht-----

> >Von: cone...@googlegroups.com [mailto: cone...@googlegroups.com ] Im

> >email to conemu_ml+...@googlegroups.com .


> >> To post to this group, send email to cone...@googlegroups.com .
> >> To view this discussion on the web visit
> >https://groups.google.com/d/msgid/conemu_ml/ecb34c89-cf6a-4e81-a3e2-5f25edc4
> >94d5%40googlegroups.com .
> >> For more options, visit   https://groups.google.com/groups/opt_out .
> >
> >>
> >
> >--
> >
> >--
> >You received this message because you are subscribed to a topic in the
> >Google Groups "ConEmu ML" group.
> >To unsubscribe from this topic, visit
> >https://groups.google.com/d/topic/conemu_ml/gKOsSV0_o1U/unsubscribe .
> >To unsubscribe from this group and all its topics, send an email to

> >conemu_ml+...@googlegroups.com .


> >To post to this group, send email to cone...@googlegroups.com .

> >il.ru .


> >For more options, visit https://groups.google.com/groups/opt_out .
> >
> --

> You received this message because you are subscribed to the Google Groups "ConEmu ML" group.

> To unsubscribe from this group and stop receiving emails from it, send an email to conemu_ml+...@googlegroups.com.


> To post to this group, send email to cone...@googlegroups.com.

> To view this discussion on the web visit https://groups.google.com/d/msgid/conemu_ml/dd22fd8e-df02-4a65-908c-8ff8c511c0f6%40googlegroups.com .


> For more options, visit https://groups.google.com/groups/opt_out .

>

--
Отправлено из мобильной Почты Mail.Ru

Reply all
Reply to author
Forward
0 new messages