Add Claude AI to KDE Web Shortcuts

Is There a Way to Start a Chat Using a Query Parameter in the URL?

Looks like there is a querystring q parameter that can be used to search on Claude AI: https://claude.ai/new?q=

How to add Claude AI to KDE Web Shortcuts?

Load your Web Shortcuts settings in KDE and add a new one with the following settings:

https://claude.ai/new?q=\{@}

Here's a quote from some old Konqueror documentation that explains how it works (maybe it's still relevant, it sounds like Web Shortcuts may have originally been a Konqueror feature later ported to the OS): https://docs.kde.org/trunk5/en/kio/kcontrol5/webshortcuts/webshortcuts.pdf

"Suppose that the URI is https://www.google.com/search?q=\{@}, and gg is a shortcut to this URI. Then, typing gg:alpha is equivalent to https://www.google.com/search?q=alpha. You could type anything after the : character; whatever you have typed simply replaces the {@} characters, after being converted to the appropriate character set for the search provider and then properly URL-encoded. Only the {@} part of the search URI is touched, the rest of it is supposed to be properly URL-encoded already and is left as is. You can also have shortcuts without parameters. Suppose the URI was file:/home/me/mydocs/calligra/words and the shortcut was mywords. Then, typing mywords: is the same as typing the complete URI. Note that there is nothing after the colon when typing the shortcut, but the colon is still required in order for the shortcut to be recognized as such. By now, you will have understood that even though these shortcuts are called web shortcuts, they really are shortcuts to parameterized URIs, which can point not only to web sites like search engines but also to anything else that can be pointed to by a URI. Web shortcuts are a very powerful feature of navigation in KDE."

Tags

 KDE  Web Shortcuts  Claude AI  LLM  Linux