Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add keyboard shortcuts to context menu options for fast navigation #643

Open
Miamlya opened this issue Mar 1, 2025 · 9 comments

Comments

@Miamlya
Copy link

Miamlya commented Mar 1, 2025

Feature request: Add keyboard shortcuts to context menu options for fast navigation

@RubicBG
Copy link
Collaborator

RubicBG commented Mar 1, 2025

this is already possible

item(title='Te&st')

@Eta-Beta
Copy link

Eta-Beta commented Mar 1, 2025

Hello, excuse my ignorance, but what is the code for? I added it and a "Test" item appeared, but it doesn't lead to anything.

@RubicBG
Copy link
Collaborator

RubicBG commented Mar 1, 2025

Image
& add an underscore for the next letter (letter s) - this makes it easy to navigate the context menu using a keyboard key (in this example s )

the item itself does not do anything, but you can test it with

item(title='No&tepad' cmd='notepad')

@Eta-Beta
Copy link

Eta-Beta commented Mar 1, 2025

Ok !, Capito. Grazie mille 👌👍

@Eta-Beta
Copy link

Eta-Beta commented Mar 2, 2025

Hi, as I said I understand what it is for, but I have to tell you that it does not work, as you can see in the image, in the case of Notepad clicking on it opens it, but there is no keyboard shortcut. Can you tell me why?. I remind you that I have Windows 11 24H4.

Image

item(title='No&tepad' cmd='notepad')
item(title='Te&st')

BUT IT WORKS 👍👍

@RubicBG
Copy link
Collaborator

RubicBG commented Mar 2, 2025

if you want to see this "underline"

  • you can use the shift key (to see it temporary)
  • you can configure in the theme { } to always (or never) be shown

@Eta-Beta
Copy link

Eta-Beta commented Mar 2, 2025

Hi, thank you very much, but I don't use it, I was just curious.
Instead, is there a way to have the file processed by an item inserted by me in the menu?
Let me explain better with some screenshots:

Image

I inserted the MD5 SHA item into the menu, which opens the portable MD5_and_SHA_Checksum_Utility program with this code:

item(title='MD5 SHA' cmd='C:\Programmi portable\MD5_and_SHA_Checksum_Utility.exe' image='C:\Programmi portable\MD5_and_SHA_Checksum_Utility.exe')

, and moved the Hash item from the installed OpenHashTab program.
If I use Hash on a file it performs the verification

Image

If I use MD5 SHA instead, it only opens the program but does not process the file

Image

You can have him do the modification or you can't.

@RubicBG
Copy link
Collaborator

RubicBG commented Mar 2, 2025

the "MD5 & SHA Checksum Utility.exe" free version does not support passing arguments - it is not possible. With pro version maybe possible ("Windows Explorer Context Menu Integration"), but i don't have the pro to test it

also this is compact syntax:

item(title='MD5 SHA' image cmd='C:\Programmi portable\MD5_and_SHA_Checksum_Utility.exe')

here is the NS script for the second one:

item(title='OpenHashTab' image='@sys.prog\OpenHashTab\OpenHashTab.dll' type='file'
	cmd-line='/c call "@sys.prog\OpenHashTab\StandaloneStub.exe" "@sel"' window='hidden')

if you need fast and simple commands you can check those:
https://github.com/RubicBG/Nilesoft-Shell-Snippets/blob/main/ex3.multifunction/all.copy.hash.cmd.md
https://github.com/RubicBG/Nilesoft-Shell-Snippets/blob/main/ex3.multifunction/all.copy.hash.ps.md

@Eta-Beta
Copy link

Eta-Beta commented Mar 2, 2025

Hi, thanks for the fix about "MD5 SHA". I always used the double path for execution and image, as you wrote it is much better. For OpenHashTab, it still worked and I prefer the icon provided by NS. 😊😊.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants