Tortoisesvn context menu: workaround found, but not perfect

Things you’d like to miss in the future...
Post Reply
neminem
Posts: 94
Joined: 13 Aug 2012 20:31

Tortoisesvn context menu: workaround found, but not perfect

Post by neminem »

So, I had noticed from the beginning that one feature of tortoisesvn's shell integration was missing, which I just assumed was an issue resulting from the lack of a proper x64 build, even though tortoise claims that they fixed that issue on their end (having their x64 install install both versions). But I realized: if it were an issue, wouldn't all the shell integrations not be working? Folders and files that are versioned have shell overlays, and if I click on a file or folder, I get the expected context menu items. I only don't get any context menu items (for tortoisesvn, or for a couple other, less important programs that have hooks to that particular menu in other file managers) if I click on the empty space in the main browser pane. Which is kind of annoying, as that's how I'm used to updating and committing. (I can still go up a folder and update or commit on the context menu of the parent folder item, but it's annoying.)

Is this an issue on their end (possibly it installs 32-bit versions of some things and not others?), or it is possible there could be an issue on yours (that it just doesn't respect hooks on that particular menu?)
Last edited by neminem on 08 Sep 2012 02:40, edited 2 times in total.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: One Tortoisesvn context menu: possibly -not- an x64 issu

Post by TheQwerty »

Indeed, by default right-clicking the white (empty) space in the list does not show the shell context menu.

There are numerous ways to get that menu though.
  1. Obviously, right-click on the folder in the tree.
  2. Right-click the folder's icon in the address bar.
  3. Set the following INI tweak to 1:

    Code: Select all

    ; Tweak: 0=Edit menu, 1=Folder's shell menu, 2=Favorites, 3=reserved, 4=Tabs
    CEA_ListRightClickOnWhite=1
EDIT: Clarification.

neminem
Posts: 94
Joined: 13 Aug 2012 20:31

Re: One Tortoisesvn context menu: possibly -not- an x64 issu

Post by neminem »

Awesome. That is kind of silly - why would that possibly be default (and not even exposed how to change it)? Anyway, setting that tweak to 1 did fix the issue (or close enough).

It is also silly in that there is clearly a context menu in Explorer specifically for handling right-clicking that empty space, distinct from the shell menu on the folder... but in this case, I like having the folder's context menu better anyway (it has everything important the native whitespace context menu had, and also a few more things that are also useful). But still, weird (I'm lucky in that tortoisesvn adds update/commit/etc to the folder's menu and to the menu on its content's whitespace, and they do the same thing. Those couple other shell hooks I don't really care about only show up on the actual whitespace menu, but I don't really care about them.)

(Also, I'm weird: I don't like trees. I've had them always hidden since the earliest Win95 days. I move directories with the keyboard.)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: One Tortoisesvn context menu: possibly -not- an x64 issu

Post by TheQwerty »

neminem wrote:Awesome. That is kind of silly - why would that possibly be default (and not even exposed how to change it)? Anyway, setting that tweak to 1 did fix the issue (or close enough).
I imagine it's done this way in XY because past versions of Windows were notoriously slow at loading the extensions and displaying the context menu, and Don preferred a quicker menu with some common actions to the cluttered and slow menu with more options.

neminem wrote:It is also silly in that there is clearly a context menu in Explorer specifically for handling right-clicking that empty space, distinct from the shell menu on the folder... but in this case, I like having the folder's context menu better anyway (it has everything important the native whitespace context menu had, and also a few more things that are also useful). But still, weird (I'm lucky in that tortoisesvn adds update/commit/etc to the folder's menu and to the menu on its content's whitespace, and they do the same thing. Those couple other shell hooks I don't really care about only show up on the actual whitespace menu, but I don't really care about them.)
The good news is that this seems intentional, though I'm struggling to find an explanation of why.

It would seem that you could copy the keys you want in the white space menu from:
HKCR\Directory\shellex\ContextMenuHandlers\
to
HKCR\Directory\Background\shellex\ContextMenuHandlers\
(or vice versa) but I'm too lazy to reboot to verify that this works.


It does seem XYplorer isn't showing the correct context menu when using that INI Tweak but I think we can pretend to have not made this discovery. :whistle:

EDIT: Actually it seems someone already reported and made the wish for XY to support that context menu: http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=8455
neminem wrote:Also, I'm weird: I don't like trees. I've had them always hidden since the earliest Win95 days.
I used to be the same way but when Don introduced Mini Tree I started to use it and now keep a small locked tree with some frequently used and near root level locations. I still prefer to use the address bar for navigating around, though.

neminem
Posts: 94
Joined: 13 Aug 2012 20:31

Re: Tortoisesvn context menu: -not- an x64 issue? (Tweak fou

Post by neminem »

Alright, I take back what I said: using that tweak is not at all a perfect workaround: after applying that tweak yesterday, I just went to make a new folder from the right-click context menu, and discovered that New wasn't in that context menu (it is in the actual context menu for empty folder space, and I use that all the time).

Semi-relatedly: Right-clicking empty space should also, like left-clicking empty space, deselect anything that was previously selected.

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tortoisesvn context menu: -not- an x64 issue? (Tweak fou

Post by admin »

No idea how to get that folder white space context menu. :|
neminem wrote:Semi-relatedly: Right-clicking empty space should also, like left-clicking empty space, deselect anything that was previously selected.
Not in XY, since the menu offers actions (Copy To... etc) on the selected items.

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Re: Tortoisesvn context menu: -not- an x64 issue? (Tweak fou

Post by mwb1100 »

admin wrote:No idea how to get that folder white space context menu. :|
I think the link in TheQwerty's post has the answer:

- HKEY_CLASSES_ROOT\Directory\Background

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tortoisesvn context menu: -not- an x64 issue? (Tweak fou

Post by admin »

mwb1100 wrote:
admin wrote:No idea how to get that folder white space context menu. :|
I think the link in TheQwerty's post has the answer:

- HKEY_CLASSES_ROOT\Directory\Background
Thanks, it did not directly contain the answer, but it made me look again and I found something. Needs further research...

neminem
Posts: 94
Joined: 13 Aug 2012 20:31

Re: Tortoisesvn context menu: workaround found, but not perf

Post by neminem »

Heh, I was just reminded, any results on the research? I'd rather have TortoiseSVN commands on the folder context menu than New->, but I'd really rather have both. :p

admin
Site Admin
Posts: 59751
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Tortoisesvn context menu: workaround found, but not perf

Post by admin »

neminem wrote:Heh, I was just reminded, any results on the research? I'd rather have TortoiseSVN commands on the folder context menu than New->, but I'd really rather have both. :p
Yes, positive results. It's on my list.

neminem
Posts: 94
Joined: 13 Aug 2012 20:31

Re: Tortoisesvn context menu: workaround found, but not perf

Post by neminem »

Excellent to hear. So glad I switched from e++ to a program where things actually get looked at and fixed. :)

elmonty
Posts: 4
Joined: 08 Jan 2024 22:13

Re: One Tortoisesvn context menu: possibly -not- an x64 issu

Post by elmonty »

TheQwerty wrote: 05 Sep 2012 19:07 Indeed, by default right-clicking the white (empty) space in the list does not show the shell context menu.

There are numerous ways to get that menu though.
  1. Obviously, right-click on the folder in the tree.
  2. Right-click the folder's icon in the address bar.
  3. Set the following INI tweak to 1:

    Code: Select all

    ; Tweak: 0=Edit menu, 1=Folder's shell menu, 2=Favorites, 3=reserved, 4=Tabs
    CEA_ListRightClickOnWhite=1
This now appears to be the default in my new Xplorer installation, but I still cannot get a shell/TortoiseSVN context menu when I right-click an empty area.

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: Tortoisesvn context menu: workaround found, but not perfect

Post by highend »

The last post is 12 years old...

The value of 1 is probably: Pop up Edit menu and not Pop up folder's context menu...
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

Post Reply