public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder@niaid.nih.gov>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: faster opening Cygwin from Explorer window
Date: Sun, 20 Mar 2016 19:27:00 -0000	[thread overview]
Message-ID: <6CF2FC1279D0844C9357664DC5A08BA21BD79586@msgb09.nih.gov> (raw)
In-Reply-To: <56EC182F.7080802@gmail.com>

Marco Atzeri sent the following at Friday, March 18, 2016 11:01 AM
>On 18/03/2016 15:43, Nellis, Kenneth wrote:
>> I frequently ping-pong back and forth between working in the Windows
>> and Cygwin environments, needing to keep both Explorer windows and
>> Cygwin PWD focused on the same folder/directory. (I use mintty in
>> Cygwin.)
>>
>> To open an Explorer window to my Cygwin PWD, I can simply type "cygstart .".
>> The reverse is a clumsy bit of typing and mousing: From Cygwin/bash,
>> enter "cd " (but not Return), go to my Explorer window and drag the
>> folder icon from the address bar into the mintty window and press return.
>> I'm looking for a simpler method.
>>
>> My ideal scenario is to right-click in the Explorer window, select the
>> new Cygwin option that I'd like to appear, and this would open a
>> mintty/bash window with PWD set to that Windows folder.
>>
>> Long shot, I know, but if anyone has done this and is willing to share
>> I'd love to hear about it. BTW, I'm using Windows 7 and am current on
>> Cygwin 64-bit.
>
> "Cygwin Prompt Here context menus"
>    looks on chere package

For a while recently - and for unknown reasons - the chere menu entries
were not working for me.  I ended up creating a shortcut in my SendTo
folder/menu that would open a bash window in the directory containing
the highlighted file or folder.  Not perfect, but better than nothing.

Target:
    C:\cygwin\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%L"
Start in:  [leave blank]

I don't remember whether there might be any customizations in .bashrc
that helped this to work, so YMMV.

BTW, chere is back working for me now.  Don't remember what - if
anything noticeable - changed.

- Barry

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      reply	other threads:[~2016-03-20 19:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 14:43 Nellis, Kenneth
2016-03-18 14:53 ` Tony Kelman
2016-03-18 17:48   ` Jim Garrison
2016-03-18 18:17     ` Warren Young
2016-03-18 18:50       ` Nellis, Kenneth
2016-03-18 15:01 ` Marco Atzeri
2016-03-20 19:27   ` Buchbinder, Barry (NIH/NIAID) [E] [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6CF2FC1279D0844C9357664DC5A08BA21BD79586@msgb09.nih.gov \
    --to=bbuchbinder@niaid.nih.gov \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).