Edit in Notepad missing from context menu

Discussion related to "Everything" 1.5.
Post Reply
mschmitt
Posts: 36
Joined: Thu Jul 19, 2018 8:03 pm

Edit in Notepad missing from context menu

Post by mschmitt »

In Windows 11 (version 24H2), there's an Edit in Notepad item in the shell context menu, that can be used to open any item in Notepad -- not just .txt files and other files that would open in Notepad if double clicked. I used to have to add my own registry change to gain this ability, but now it's there automatically.

But, this item is missing from the context menu in Everything (Version 1.5.0.1375a (x64)).

For example:
  • Search for Everything .ini in Everything.
  • Right click one of the results to get context menu
  • Notice there's no item for "Edit in Notepad"
  • Open Path
  • Right click same file in File Explorer
  • Notice there's an "Edit in Notepad" item
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Edit in Notepad missing from context menu

Post by void »

Thank you for the post mschmitt,

The "Edit in Notepad" item is only shown for the modern context menu.

It's not shown if you use the classic context menu (Shift + right click)

Everything uses the classic context menu.



The following context menu items should open the ini file in Notepad from Everything:
Open
Edit
Open With -> Notepad

Open might not work if you have changed ini assoications.
mschmitt
Posts: 36
Joined: Thu Jul 19, 2018 8:03 pm

Re: Edit in Notepad missing from context menu

Post by mschmitt »

The "Edit in Notepad" item is only shown for the modern context menu. It's not shown if you use the classic context menu (Shift + right click)
Why do you say that? I still see "Edit in Notepad" when I shift-right click on items in Windows File Explorer.


The .ini example was just to give an example file that is sure to exist. The real problem is in opening files that have no association to Notepad.

As a work around, I installed the Open in Notepad registry item I used before Windows 11. Now shift-right-click as an Open in Notepad option that works in Everything.

FYI for anyone who runs into this...

The registry entry I'm adding is:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad]
@="Open with Notepad"

; (Default) value is type REG_EXPAND_SZ, data %SystemRoot%\system32\NOTEPAD.EXE %1
[HKEY_CLASSES_ROOT\*\shell\OpenWithNotepad\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,\
  00,4f,00,54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,\
  31,00,00,00
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Edit in Notepad missing from context menu

Post by void »

Why do you say that?
Windows 11 24H2 here.

This is what I see on right-clicking status.efu:
image.png
image.png (245.34 KiB) Viewed 6895 times


and on Shift right click:
image.png
image.png (236.15 KiB) Viewed 6895 times
Everything shows the same menu.



Is there an option I'm missing?
Thanks for sharing the registry code to show Open with Notepad for all items.
mschmitt
Posts: 36
Joined: Thu Jul 19, 2018 8:03 pm

Re: Edit in Notepad missing from context menu

Post by mschmitt »

I have the registry change so that I get the "legacy" context menu in Windows 11, not the new menu. This effectively means that I get the shift-right-click menu all the time, never the modern menu.

Here's the Explorer menu when right-clicking or shift-right-clicking the Session-1.5a.json file:
Right click.png
Right click.png (57.38 KiB) Viewed 6807 times
Here's the menu when right-clicking same file in Everything:
Everything.png
Everything.png (121.58 KiB) Viewed 6807 times
So the point is, that "Edit in Notepad" appears on both the right-click and shift-right-click menus in Explorer, but not in Everything.
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: Edit in Notepad missing from context menu

Post by therube »

32 vs. 64-bit &/or "run as Admin" playing in, perhaps?
Post Reply