SUMMARY In firefox, bookmarks can have keywords, for example "@enwiki". With this it is possible to search in the url bar with "@enwiki some term". Then "%s" of the bookmark gets replaced with "some term" and opened, very similar to kde's webshortcuts. It would be useful, if kde would detect such bookmarks from firefox and recognize them as webshortcuts.
I am not sure what you mean. Bookmarks can have keywords, but they are currently ignored. Search engines can also have keywords, but they are stored in a weird file :/ https://www.reddit.com/r/firefox/comments/fb3ykm/why_is_searchjsonmozlz4_in_the_lz4_format/
Created attachment 129284 [details] firefox: adding a search as a bookmark with keyword
Okay, let me try to describe it better. In Firefox it is possible to assign keywords to bookmarks. Especially it is possible to save searches (e.g. from Wikipedia, Duden, Google) as such a bookmark with a keyword. If you then enter the keyword followed by a search term in the address bar, Firefox will suggest to search for the keyword in the corresponding search. This functionality of Firefox is equivalent to that of KDE's Web Shortcuts. So it would make sense to make those bookmarks from Firefox that contain a keyword and have "%s" in the URL (where the search word will be inserted later) a Web Shortcut in KDE; only the "%s" would have to be replaced by \{@}. Is it clear now?
Created attachment 129285 [details] firefox: it is possible to run a search using the given keyboard in the address bar
Could you please make a screenshot of the properties of the bookmark?
Created attachment 129304 [details] properties of a bookmark with the replacement of %s to search string
Created attachment 129305 [details] properties of a bookmark without %s, the search string just gets appended to the url
Thanks, now I can reproduce the usecase. But I am not sure about implementing this. 1: This seems a niche usecase, although cool :D. 2: This has the functionality of the webshortcuts, but uses the bookmarks. And implementing it on the webshortcuts side would result in duplicate code. Also we cant be sure if a keyword is intended as a keyword or webshortcut. I can assign any keyword, for instance I could just call it "baum". Maybe someone else has opinions on this.
Here is the mozillazine KB page for this: http://kb.mozillazine.org/Using_keyword_searches#Creating_bookmarks_with_keywords
Having thought about it I would honestly close this bug. Webshortcuts can do the same thing and implementing this feature would only make the codebase more complex. Hopefully you can understand this :-). What do you think @ngraham.
Yeah, I think web shortcuts already cover this use case. No need to re-invent the wheel. Sorry. :)