public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
@ 2024-02-10  4:21 Yang Yu Lin
  2024-02-10 12:07 ` Lee
  2024-02-13 20:30 ` Dan Shelton
  0 siblings, 2 replies; 9+ messages in thread
From: Yang Yu Lin @ 2024-02-10  4:21 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

It would be convenient for users to open specific folder in terminal by just right-click it, like Git Bash and Windows Terminal.

Note: I hope this change would work on Windows 11 right-click menu. (Because I don't like "Show more options" or Shift + Right-click)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-10  4:21 Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu Yang Yu Lin
@ 2024-02-10 12:07 ` Lee
  2024-02-10 15:03   ` Norton Allen
  2024-02-13 20:30 ` Dan Shelton
  1 sibling, 1 reply; 9+ messages in thread
From: Lee @ 2024-02-10 12:07 UTC (permalink / raw)
  To: Yang Yu Lin; +Cc: cygwin

On Fri, Feb 9, 2024 at 11:21 PM Yang Yu Lin via Cygwin wrote:
>
> It would be convenient for users to open specific folder in terminal by just right-click it, like Git Bash and Windows Terminal.

search for the 'chere' package in setup

I use this .reg file:

C:\Installed>cat cygwinHere.reg
Windows Registry Editor Version 5.00

; add a Windows Explorer right-click option for folders to
;   Open Bash Shell Here

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\bashShell]
@="Open Bash Shell Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\bashShell\command]
@="C:\\Windows\\system32\\cmd.exe /c \"pushd %L && set
CHERE_INVOKING=1 && c:\\cygwin\\bin\\bash.exe --login -i\""

; @="C:\Windows\system32\cmd.exe /c \"pushd %L && set CHERE_INVOKING=1
&& c:\cygwin\bin\mintty.exe - \""
; which has the annoying flash of the DOS cmd window opening & closing
before the mintty window opens

C:\Installed>

> Note: I hope this change would work on Windows 11 right-click menu. (Because I don't like "Show more options" or Shift + Right-click)

I'm still on Windows 10; I have no idea what does/doesn't work on Windows 11

Regards,
Lee

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-10 12:07 ` Lee
@ 2024-02-10 15:03   ` Norton Allen
  2024-02-10 15:09     ` Norton Allen
  0 siblings, 1 reply; 9+ messages in thread
From: Norton Allen @ 2024-02-10 15:03 UTC (permalink / raw)
  To: Lee, Yang Yu Lin; +Cc: cygwin

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

On 2/10/2024 7:07 AM, Lee via Cygwin wrote:
>> Note: I hope this change would work on Windows 11 right-click menu. (Because I don't like "Show more options" or Shift + Right-click)
> I'm still on Windows 10; I have no idea what does/doesn't work on Windows 11

chere gets the option onto the "Show more options" list. I agree that is 
less helpful than it was in Win10. If anyone knows how to get something 
to stay on the primary context menu, that would be great.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-10 15:03   ` Norton Allen
@ 2024-02-10 15:09     ` Norton Allen
  2024-02-14 20:00       ` Brian Inglis
  0 siblings, 1 reply; 9+ messages in thread
From: Norton Allen @ 2024-02-10 15:09 UTC (permalink / raw)
  To: Lee, Yang Yu Lin; +Cc: cygwin

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

On 2/10/2024 10:03 AM, Norton Allen via Cygwin wrote:
> On 2/10/2024 7:07 AM, Lee via Cygwin wrote:
>>> Note: I hope this change would work on Windows 11 right-click menu. 
>>> (Because I don't like "Show more options" or Shift + Right-click)
>> I'm still on Windows 10; I have no idea what does/doesn't work on 
>> Windows 11
>
> chere gets the option onto the "Show more options" list. I agree that 
> is less helpful than it was in Win10. If anyone knows how to get 
> something to stay on the primary context menu, that would be great.
>
The Internet answers:

    reg add
    HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32
    /ve /d "" /f

As found here:

https://answers.microsoft.com/en-us/windows/forum/all/windows-11-right-click-explorer-menu-show-more-as/ba8dafe4-306a-403b-af0d-10a6d1ca0a9a

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-10  4:21 Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu Yang Yu Lin
  2024-02-10 12:07 ` Lee
@ 2024-02-13 20:30 ` Dan Shelton
  2024-02-15 19:09   ` Jon Turney
  1 sibling, 1 reply; 9+ messages in thread
From: Dan Shelton @ 2024-02-13 20:30 UTC (permalink / raw)
  To: Yang Yu Lin; +Cc: cygwin

On Sat, 10 Feb 2024 at 05:21, Yang Yu Lin via Cygwin <cygwin@cygwin.com> wrote:
>
> It would be convenient for users to open specific folder in terminal by just right-click it, like Git Bash and Windows Terminal.
>
> Note: I hope this change would work on Windows 11 right-click menu. (Because I don't like "Show more options" or Shift + Right-click)

Yes, please, it would be cool to have this as DEFAULT in the MS
Explorer right-click context menu for dirs

Dan
-- 
Dan Shelton - Cluster Specialist Win/Lin/Bsd

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-10 15:09     ` Norton Allen
@ 2024-02-14 20:00       ` Brian Inglis
  2024-02-15 14:27         ` Norton Allen
  2024-02-15 21:10         ` Csaba Ráduly
  0 siblings, 2 replies; 9+ messages in thread
From: Brian Inglis @ 2024-02-14 20:00 UTC (permalink / raw)
  To: cygwin

On 2024-02-10 08:09, Norton Allen via Cygwin wrote:
> On 2/10/2024 10:03 AM, Norton Allen via Cygwin wrote:
>> On 2/10/2024 7:07 AM, Lee via Cygwin wrote:
>>>> Note: I hope this change would work on Windows 11 right-click menu. (Because 
>>>> I don't like "Show more options" or Shift + Right-click)
>>> I'm still on Windows 10; I have no idea what does/doesn't work on Windows 11
>>
>> chere gets the option onto the "Show more options" list. I agree that is less 
>> helpful than it was in Win10. If anyone knows how to get something to stay on 
>> the primary context menu, that would be great.
>>
> The Internet answers:
> 
>     reg add
>     
> HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32
>     /ve /d "" /f
> 
> As found here:
> 
> https://answers.microsoft.com/en-us/windows/forum/all/windows-11-right-click-explorer-menu-show-more-as/ba8dafe4-306a-403b-af0d-10a6d1ca0a9a

To be clear, on Windows 11, this shows the "classic full" context menu instead 
of what Windows considers important or recent plus "Show more options..."!

Surely you mean (-v displays confirmation):

$ regtool add -v 
/proc/registry/HKEY_CURRENT_USER/Software/Classes/CLSID/{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}
Key {86ca1aa0-34aa-4e8b-a509-50c905bae2a2} created
$ regtool add -v 
/proc/registry/HKEY_CURRENT_USER/Software/Classes/CLSID/{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}/InprocServer32
Key InprocServer32 created
$ regtool list -pv 
/proc/registry/HKEY_CURRENT_USER/Software/Classes/CLSID/{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}
InprocServer32\ ()

;^>
-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-14 20:00       ` Brian Inglis
@ 2024-02-15 14:27         ` Norton Allen
  2024-02-15 21:10         ` Csaba Ráduly
  1 sibling, 0 replies; 9+ messages in thread
From: Norton Allen @ 2024-02-15 14:27 UTC (permalink / raw)
  To: cygwin; +Cc: Brian Inglis

On 2/14/2024 3:00 PM, Brian Inglis via Cygwin wrote:
> Surely you mean (-v displays confirmation):
>
> $ regtool add -v 
> /proc/registry/HKEY_CURRENT_USER/Software/Classes/CLSID/{86ca1aa0-34aa-4e8b-a509-50c905bae2a2} 
>
> Key {86ca1aa0-34aa-4e8b-a509-50c905bae2a2} created
> $ regtool add -v 
> /proc/registry/HKEY_CURRENT_USER/Software/Classes/CLSID/{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}/InprocServer32 
>
> Key InprocServer32 created
> $ regtool list -pv 
> /proc/registry/HKEY_CURRENT_USER/Software/Classes/CLSID/{86ca1aa0-34aa-4e8b-a509-50c905bae2a2} 
>
> InprocServer32\ ()
>
> ;^>

But of course! Thanks



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-13 20:30 ` Dan Shelton
@ 2024-02-15 19:09   ` Jon Turney
  0 siblings, 0 replies; 9+ messages in thread
From: Jon Turney @ 2024-02-15 19:09 UTC (permalink / raw)
  To: Dan Shelton; +Cc: cygwin

On 13/02/2024 20:30, Dan Shelton via Cygwin wrote:
> On Sat, 10 Feb 2024 at 05:21, Yang Yu Lin via Cygwin <cygwin@cygwin.com> wrote:
>>
>> It would be convenient for users to open specific folder in terminal by just right-click it, like Git Bash and Windows Terminal.
>>
[...]
> 
> Yes, please, it would be cool to have this as DEFAULT in the MS
> Explorer right-click context menu for dirs

Yeah, this seems like a good idea. Someone should do that. :)


I think the place to start might be with improving the integration of 
the 'chere' package, so it has a postinstall/preremove script to 
create/remove a context menu entry to start bash under mintty.

(I don't understand quite why chere can't give you "the shell you 
currently have configured in /etc/passwd" (i.e. 'mintty -') rather than 
having all of them as options...)


Then the  next step would probably be adding the option/checkbox to 
setup and exposing it to that script via CYGWIN_SETUP_OPTIONS.


[1] https://cygwin.com/packaging-package-files.html


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu
  2024-02-14 20:00       ` Brian Inglis
  2024-02-15 14:27         ` Norton Allen
@ 2024-02-15 21:10         ` Csaba Ráduly
  1 sibling, 0 replies; 9+ messages in thread
From: Csaba Ráduly @ 2024-02-15 21:10 UTC (permalink / raw)
  To: Brian Inglis via Cygwin


On 14/02/2024 21:00, Brian Inglis via Cygwin wrote:
> Surely you mean (-v displays confirmation):
>
Don't call me Shirley :)


Csaba

-- 
Life is complex, with real and imaginary parts.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-02-15 21:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-10  4:21 Suggestion: [setup] Add an option to allow user to add "Open Cygwin Terminal Here" to Right-click menu Yang Yu Lin
2024-02-10 12:07 ` Lee
2024-02-10 15:03   ` Norton Allen
2024-02-10 15:09     ` Norton Allen
2024-02-14 20:00       ` Brian Inglis
2024-02-15 14:27         ` Norton Allen
2024-02-15 21:10         ` Csaba Ráduly
2024-02-13 20:30 ` Dan Shelton
2024-02-15 19:09   ` Jon Turney

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).