-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into capitalize-formatters
- Loading branch information
Showing
35 changed files
with
438 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from talon import Context, Module, actions, ui | ||
from talon.mac import applescript | ||
|
||
ctx = Context() | ||
mod = Module() | ||
apps = mod.apps | ||
mod.apps.orion = """ | ||
os: mac | ||
app.bundle: com.kagi.kagimacOS | ||
""" | ||
|
||
ctx.matches = r""" | ||
app: orion | ||
""" | ||
|
||
|
||
@ctx.action_class("user") | ||
class UserActions: | ||
def browser_open_address_in_new_tab(): | ||
actions.key("cmd-enter") | ||
|
||
|
||
@ctx.action_class("browser") | ||
class BrowserActions: | ||
def bookmark_tabs(): | ||
raise NotImplementedError("Orion doesn't have a default shortcut for this") | ||
|
||
def show_clear_cache(): | ||
actions.key("cmd-alt-e") | ||
|
||
def reload_hard(): | ||
actions.key("cmd-alt-r") | ||
|
||
def show_downloads(): | ||
actions.key("cmd-alt-l") | ||
|
||
def show_extensions(): | ||
actions.key("cmd-shift-x") | ||
|
||
|
||
@mod.action_class | ||
class Actions: | ||
def overview_tabs(): | ||
"Toggle tab overview in Orion" | ||
actions.key("cmd-shift-\\") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
app: orion | ||
- | ||
tag(): browser | ||
tag(): user.tabs | ||
|
||
tab overview [open | close]: user.overview_tabs() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
core/websites_and_search_engines/websites_and_search_engines.talon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
open {user.website}: user.open_url(website) | ||
open that: user.open_url(edit.selected_text()) | ||
open paste: user.open_url(clip.text()) | ||
|
||
{user.search_engine} hunt <user.text>$: | ||
user.search_with_search_engine(search_engine, user.text) | ||
{user.search_engine} (that | this): | ||
text = edit.selected_text() | ||
user.search_with_search_engine(search_engine, text) | ||
{user.search_engine} paste: user.search_with_search_engine(search_engine, clip.text()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.