Giter Site home page Giter Site logo

Comments (5)

gildas-lormeau avatar gildas-lormeau commented on June 5, 2024

As discussed in entry #1419, there is no technical way of associating a menu entry with a shortcut. However, I need to see if it would be possible to associate one (or more) for each profile.

from singlefile.

eugenesvk avatar eugenesvk commented on June 5, 2024

Well, the mouse (and extension button) context menu subitems can have accelerators, just checked by editing

	"menuSaveWithProfile": {
		"message": "&U Save page with profile",
		"description": "Menu entry: 'Save with profile'"
	},

And this works

That's already progress as that makes the selection within the menu easier

But then

  • is this user-configurable or only editable via the messages.json
  • is there a way to add an accelerator to the extension item itself? So that (at least to the page context menu) it's &SingleFile
    • I've found that editing the name in the manifest.json works!!! Which is great, I'll do that locally, and since you can use external tool to open this context menu via a shortcut I can achieve the full chording experience!!!
  • again, is the ↑ user configurable or only editable via the manifest?

(and I can add &profile_name to even have accelerators working with dynamic profile selection menu!)

from singlefile.

gildas-lormeau avatar gildas-lormeau commented on June 5, 2024

Thank you very much for the info, I was not aware of this feature. I'll do some tests and keep you updated.

from singlefile.

gildas-lormeau avatar gildas-lormeau commented on June 5, 2024

I guess I'm missing something here, I tested your messages.json file. However, this does not seem to work as expected. On my machine (macOS/Apple Silicon), if I type for example & and d when the first item is selected in the SingleFile menu then it does not select the "Save selection" entry. I did the test in Firefox and Chrome.

from singlefile.

eugenesvk avatar eugenesvk commented on June 5, 2024

Yeah, macOS doesn't support the & convention by default (though interestingly enough, the & sign isn't shown, so there is some awareness? ).

I don't know how whether there is a workaround/alternative for this (and don't understand why browsers don't support this)

from singlefile.

Related Issues (20)

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.