11

I agree, url schemes are good for automation.

    Fortrikka changed the title to orion:// url scheme .

      eirk Can you open preferences in safari using an url scheme?

        No, this isn't a feature in Safari.

        • Vlad replied to this.

          eirk Exactly, because Preferences is not a URL. We want Orion to behave like a native app and that does include avoiding non-native and non-standard behaviors.

          URL is a locator for a web address, not a window control. So things that have a web address in Orion can have URL, like notes do.

          Perhaps you want better apple script support, which is a different matter?

            I was just listing a few examples. Preferences does not need to be in the URL scheme.

            But, AppleScript support would be nice, I'm asking for a URL scheme instead. This means you can easily write a terminal script to do a certain thing in Orion, instead of resorting to using the confusing and estoric syntax of AppleScript. Running AppleScript is also slower than running a simple open command. In the future, this would also allow this to be easily ported to other OSes.

            • Vlad replied to this.

              eirk Still waiting for a concrete use case (or two) of how you imagine you would use that.

                open 'orion://open-url?url=...' could be a shortcut to open -b 'com.kagi.kagimacOS' '...'
                open 'orion://install-extension?url=...' could allow users to easily install an extension from a file, or a different source, without having to manually download the file, and import it.

                  open 'orion://add-bookmark?url=...&title=...&invocation=...' could be used to quickly add a bookmark.

                  These are just some ideas.

                  • Vlad replied to this.

                    eirk And you would use these from CLI? In what scenario? Like a script to prepackage Orion? Can you be as concrete as possible.

                    • eirk replied to this.
                      8 months later

                      Title is clear. For example, “shortcuts://“ in Safari takes me to the shortcut app, “ashell://“ takes me to the a-Shell app, etc. You can optionally provide some data with the request as well. Additionally, triggering these (or even just an option for “Go to URL”) would be nice to have in gestures.

                        orion faq: https://browser.kagi.com/faq.html

                        How do I open Orion iOS from my app?
                        Here is Orion's schema on iOS:
                        orion://open-url?url=url to open an URL
                        orion://search?q=query to perform search

                          Merged 3 posts from Support X-Callback schema.
                            4 months later

                            Vlad these can be used to prepackage Orion, as some do with their dotfiles and a way to automatically set them all up on new devices. some settings, like profiles aren't synced. additionally, this allows for an easy way to automate in a generic way, without the users needing to use applescript or shortcuts. this creates a more standard way for automating orion, even though its not quite feature complete.

                            additionally, with other third-party tools, this could allow for users hooking a shortcut to running some complex action, where the result is a new tab opened, or a bookmark created, or windows being modified.


                            some more possible URL scheme commands:

                            • using a script to add a tab to a specific named window
                              orion://open?url=kagi.com&window_title=Project%20for%20something
                            • using a script to modify profiles
                              orion://add-profile?name=Work&default=true
                              6 months later

                              when playing with the app-urls; I noticed Orion RC and Orion have the same URL Handler orion:// it'd be nice of Orion RC had orionrc:// so it doesn't collide when both are installed.

                              Some other options use for orion://open-url would be

                              • to target a particular profile
                              • having an target for new_tab, new_window.
                              • execute menu items

                              ex. of all three
                              orion://open-url?url=https://google.com&profile=Default&target=new_window&action=tools:take_screenshot_entire_page

                              as eirk said, automating the setup of Orion would be great - having it install extensions in a targeted profile and creating profiles would be helpful.

                                No one is typing