...
ikas-mc / contextmenuforwindows11 Goto Github PK
View Code? Open in Web Editor NEWAdd Custom Context Menu For Windows11
License: GNU Lesser General Public License v3.0
Add Custom Context Menu For Windows11
License: GNU Lesser General Public License v3.0
...
It may be a good idea to allow the user to directly add an entry to the right-click context menu instead of adding the new entry into the "Open With" (or whatever its renamed to) sub-menu.
Currently, it is slightly inconvenient to have to click the top-right save button each time you make a change.
Using a function to quickly save, using the keyboard shortcut Ctrl+S would make life a lot easier. I hope this will be considered for future versions.
Please add support for entries which aren't in the group 'Open With' and maybe even support for multiple groups.
Edit: I just found a duplicate.
想把解压缩和在软件中打开分开存放
另外希望支持菜单选项排序
I remember some "system tweak" apps can access what other program put in to the right click menu.
Ideally, we can pick what we want to use, and copy said logic to the new right click menu. Some adjustments may be needed to be done manually but it would be easier to do everything from scratch.
If you, for example, pass the following to powershell.exe
-File "%LocalAppdata%\Myscript.ps1" in Param, die %LocalAppData% does not get expanded.
Also it seems the %PATH% variable is not used. You have to hardcode the path to powershell.exe to get it working.
Hello,
is it possible to start a program as admin?
比如只使用7z打开压缩文件还是鸡肋了点,但如果把旧版菜单7z的右键菜单选项也可以添加到里面,可玩性就高了
The page has been migrated to the wiki
English:
https://github.com/ikas-mc/ContextMenuForWindows11/wiki/Help
Chinese:
https://github.com/ikas-mc/ContextMenuForWindows11/wiki/%E5%B8%AE%E5%8A%A9
=========================================================================
This app read the menu config files from the app's localdata folder, then create the context menu
The menu config use json format
{
"title":"open with 7zFM",
"exe":"\"C:\\Program Files\\7-Zip\\7zFM.exe\"",
"param":"\"{path}\"",
"icon":"\"C:\\Program Files\\7-Zip\\7zFM.exe\",0",
"acceptExts":".zip .7z .rar .exe .iso",
"acceptDirectory":false
}
C:\Users\yourname\AppData\Local\Packages\{appId}\LocalState\custom_commands
If you need to back up, just copy all the files here to a safe folder.
{path} absolute address of the right-clicked file or folder
{name} file name (version>=1.1.2.0)
https://github.com/ikas-mc/ContextMenuForWindows11/tree/main/menuSample
you can modify menu name in manager ui
Hi,
if i add "C:\Program Files (x86)\EasyJoin\easyjoin.exe" --sendto-3s49pgld3mkc41cl14u6ghev03
to Exe field it didn't work.
Did i something wrong?
Hello,
first thank you for this app.
I found following problem: if the {path} parameter is a link it is used "as is" and not followed,
Example:
On the desktop I have a link to D:\ but instead resolving this path the parameter "C:\Users\Test\Desktop\Mylink.lnk" is passed.
I wanted to recreate the 7z menu but I couldn't figure out how to do submenus. How would I create 7z/CRC as menu?
Open with++ sets the working directory of the invoked process to the directory of the selected file or selected folder.
https://github.com/stax76/OpenWithPlusPlus/blob/master/OpenWithPPShellExtension/Main.cpp#L603
Hi,
I would like to have a custom menu action that is invoked for a drive. Can you please add settings for that?
I have a Chinese friend who is not good at computers, but he wants to make his Windows easier to use, so he asks me if there is a way to add programs to the Windows 11 new context menu
I recommended this tool to him, and then he said he didn't understand English and asked me to translate😂 (i'm a programmer and he thinks programmers can do anything lol)
So you know👍
vscode is installed as "user" and available in %PATH%
as code.exe
Expected:
Show Entry with "open in vscode" in context menu, after right-clicking any file (tested with .txt
, .jpg
, ...)
Actual:
No menu shown
Repro steps:
Using sample from this repo
5.open in vscode.json
{"title":"open in vscode","exe":"code","param":"\"{path}\""}
ability to to add nex>context menu items for example notepad adds itself like this
inside C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_10.2103.7.0_x64__8wekyb3d8bbwe\appxmanifest.xml there is this line that adds .txt to that menu
<uap:FileType uap4:ShellNewFileName="Assets\NewTextDocument.txt" uap4:ShellNewDisplayName="ms-resource:Resources/ShellNewDisplayName_Txt">.txt</uap:FileType>
and maybe a remove option for existing ones? your app can scan appxmanifest files for line starting with shellnewfilename thingy
As I said in the title, I'd love to see the custom context menu entries created with this app outside of the "Open With" group. Would it be possible to add that feature? Thanks!
I think it should be "Open Menus Folder" Instead of "Refresh"
also may i ask for a feature can u add support for editing "Create New" menu? because right now
.txt and .bmp cannot be removed from new and old context menu
also .ps1 cannot be added
It seems OneDrive component removal causes this issue. I edit my OS with NTLite, After my tests i found out it was about OneDrive removal. Take a look at what happens when u don't have onedrive in your system. that depency looks unneeded for your software....
I will also contact to NTLite's dev for potential bug on onedrive removal. But this error started happening in v1.6.0 without any OS changes. I didn't have onedrive before too.
It seems to handle only one file now even if multiple files is selected.
Is this proposal technically possible?
I want to use as the alternative of SendTo
folder.
The app is really useful but it only allows to add an entry to right-click menu for files and folder. It can be a good idea to also allow the user to customize the background right-click context menu, i.e., the context menu which opens when a user right-clicks a the empty background of an already opened folder. For example, the context menu which you get when you right-click on the desktop.
I installed the Windows Store Version and the application works greats.
I downloaded the sources code, and made the packaged did a sideload installed. When i add my menu item, the action is not trigger when I click on it. Am I missing something?
In Windows 11 22H2 (build 22621) the custom menu is not showing until I open the main tool once. For the rest of the session the menu appears, but is gone once again after a restart.
deleted
The UI of the app is difficult to understand so please make it easier.
Also add more menus
Hi, Can you provide more information about this project?
Is this project incomplete?
The project does not compile properly and after a lot of effort I was able to compile it.
The C# project does nothing but save the json file, I expected the item to be added to the context menu.
also After running the packaged project, nothing happened and no items were added to the menu.😕
Exactly what should we do?!
This is .lnk ext. There are no commands for it in my preset. So I need exlude for selected extensions options to exlude .lnk files...
Or for situations like this, menu should be not visible. When matchfolder is not selected and extension list doesn't include .lnk.
When pressed button. it just prompts the file path like an error.
多个后缀名可以用分隔符分割,例如只有在右击apk文件时候才显示安装或者发送到wsa
能不能加一个只检测目录的方式,不检测文件。
还有就是如果传路径给wsl.exe会bug打不开目录,应该是无法转换成sub linux路径。
(Translate with translation software)
Multibyte characters entered in Title are garbled.
The multibyte characters entered in the Custum Menu Title will be displayed correctly.
In the version 1.5.0.0 introduced in "窓の杜", it looks like the multibyte characters specified in Title are displayed.
https://forest.watch.impress.co.jp/docs/serial/win11must/1368429.html
3.Add cacche to optimize menu display speed (Need to build the cache menually)
and is it affecting the display of Title characters?
Titleに入力したマルチバイト文字が文字化けします
Custum Menu Titleに入力したマルチバイト文字は正常に表示されます
"窓の杜"で紹介されたv1.5.0.0では、Titleに指定したマルチバイト文字が表示されてる様に見える
https://forest.watch.impress.co.jp/docs/serial/win11must/1368429.html
3.Add cacche to optimize menu display speed (Need to build the cache menually)
で、Title文字の表示に影響を及ぼしているのではないか?
I have named my JSON files according to the following pattern:
1_tool.json
2_best_tool.json
3_another_tool.json
etc. (11 entries in total)
Without the cache, the menu shows the entries as expected in the intended order (alphabetical).
However, as soon as I create the cache, the order changes (7, 4, 11, 10, 8, 1, 5, 2, 3, 6 and 9). When I deactivate the cache, the order is alphabetical again. What could be the reason for this?
param建议改为adb push -p \"{path}\" \"/sdcard/Download/{name}\" | adb shell \"am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d 'file:///storage/emulated/0/Download/{name}'\"
上传图片后发送广播避免上传后图库中找不到图片(已测试中文和带空格情况均无问题)
或者文件内容如下
{"title":"send to wsa","exe":"PowerShell","param":"if ((adb connect 127.0.0.1:58526) -like \\\"*connected*\\\") { adb push -p \\\"{path}\\\" \\\"/sdcard/Download/{name}\\\" | adb shell \\\"am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d 'file:///storage/emulated/0/Download/{name}'\\\"}else{msg \\\"wsa未启动\\\"}","icon":""}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.