Giter Site home page Giter Site logo

contextmenuforwindows11's Introduction

...

contextmenuforwindows11's People

Contributors

ikas-mc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contextmenuforwindows11's Issues

FolderMatch Problem

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.

duplicate of #24

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.

[Enhancement] Add hotkey Ctrl+S to save current item

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.

Creating Submenus?

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?

[Proposal] Handle multiple files/folders

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.

add only match the folder

能不能加一个只检测目录的方式,不检测文件。
还有就是如果传路径给wsl.exe会bug打不开目录,应该是无法转换成sub linux路径。

Ability to import commands from legacy menu

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.

Not working, samples don't work either

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

image


Repro steps:

Using sample from this repo

5.open in vscode.json

{"title":"open in vscode","exe":"code","param":"\"{path}\""}

image

Cache is disabled
image

Support for Windows 11 22H2 (build 22621)

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.

建议修改案例中的send to wsa

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":""}

[Suggestion] icon color

In light mode the outer rectangle on the context icon is white, it would be better to be light the rest of the win11 icons, i.e. rbg 126, 126, 126

Dark mode is perfect
white

suggestion

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

Menu order changes with cache

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?

how to use

See Wiki

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

menu config sample

{
    "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
}

config files folder

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.

manager ui

  1. The left panel is used to add menus and view the menu list.the folder button is used to open config folder
  2. The right panel is used to edit menu selected
  3. click add and edit then save
    5
    As shown in the picture, it adds a menu: Open the file with Notepad

variable

 {path}  absolute address of the right-clicked file or folder
 {name}  file name (version>=1.1.2.0)

more sample

https://github.com/ikas-mc/ContextMenuForWindows11/tree/main/menuSample

context menu

Screenshot 2021-10-26 030516

you can modify menu name in manager ui

Screenshot 2021-10-26 030914

Parameter in exe path not possible?

Hi,

if i add "C:\Program Files (x86)\EasyJoin\easyjoin.exe" --sendto-3s49pgld3mkc41cl14u6ghev03 to Exe field it didn't work.
Did i something wrong?

Right click doesn't trigger on compiled version

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?

Feature Request: Customize right-click on directory background

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.

Help with translate (suggestion)

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👍

Multibyte characters entered in Title are garbled.

(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文字の表示に影響を及ぼしているのではないか?

more information about this project

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?!

Environment Variables are not expanded

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.

It doesn't work for me

I created my entry but the menu does not change, so I tried with the templates present in menuSample but nothing has changed.
gif1

Windows 11 Pro 22621.1

Exlude For selected extensions

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

Refresh Menus Folder

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

link as path parameter

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.