Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #1236

Closed
wants to merge 3 commits into from
Closed

Test #1236

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/apple_terminal/apple_terminal.talon
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tag(): user.generic_unix_shell
# you can deactivate them if you do not use the application
tag(): user.git
tag(): user.anaconda
tag(): user.kubectl
# tag(): user.kubectl

# TODO: explain
tag(): user.tabs
Expand Down
2 changes: 1 addition & 1 deletion apps/iterm/iterm.talon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ tag(): terminal
#tag(): user.file_manager
tag(): user.generic_unix_shell
tag(): user.git
tag(): user.kubectl
#tag(): user.kubectl
tag(): user.tabs
tag(): user.readline
26 changes: 0 additions & 26 deletions apps/kubectl/kubectl.py

This file was deleted.

66 changes: 0 additions & 66 deletions apps/kubectl/kubectl.talon

This file was deleted.

3 changes: 2 additions & 1 deletion apps/tmux/tmux_linux.talon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
os: linux
tag: user.tmux
os: mac
app: iterm2
-
mux: "tmux "

Expand Down
1 change: 1 addition & 0 deletions apps/vscode/snippets/python_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"try except": "try/except",
"while": "while",
"with": "with",
"debugger": "import pdb; pdb.set_trace()",
}


Expand Down
14 changes: 0 additions & 14 deletions apps/vscode/vscode.talon
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,6 @@ close tabs way right: user.vscode("workbench.action.closeEditorsToTheRight")
close tabs way left: user.vscode("workbench.action.closeEditorsToTheLeft")

# Folding
fold that: user.vscode("editor.fold")
unfold that: user.vscode("editor.unfold")
fold those: user.vscode("editor.foldAllMarkerRegions")
unfold those: user.vscode("editor.unfoldRecursively")
fold all: user.vscode("editor.foldAll")
unfold all: user.vscode("editor.unfoldAll")
fold comments: user.vscode("editor.foldAllBlockComments")
fold one: user.vscode("editor.foldLevel1")
fold two: user.vscode("editor.foldLevel2")
fold three: user.vscode("editor.foldLevel3")
fold four: user.vscode("editor.foldLevel4")
fold five: user.vscode("editor.foldLevel5")
fold six: user.vscode("editor.foldLevel6")
fold seven: user.vscode("editor.foldLevel7")

# Git / Github (not using verb-noun-adjective pattern, mirroring terminal commands.)
git branch: user.vscode("git.branchFrom")
Expand Down
4 changes: 3 additions & 1 deletion core/keys/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def letters(m) -> str:
",": ",", # <== these things
"back tick": "`",
"comma": ",",
"soma": ",",
# Workaround for issue with conformer b-series; see #946
"coma": ",",
"period": ".",
Expand Down Expand Up @@ -236,7 +237,6 @@ def letters(m) -> str:

simple_keys = [
"end",
"enter",
"escape",
"home",
"insert",
Expand All @@ -253,6 +253,8 @@ def letters(m) -> str:
"forward delete": "delete",
"page up": "pageup",
"page down": "pagedown",
"enter": "enter",
"punch": "enter",
}
# mac apparently doesn't have the menu key.
if app.platform in ("windows", "linux"):
Expand Down
31 changes: 31 additions & 0 deletions core/mine/scraper_names.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""
This module gives us the list {} and the capture <user.system_path> that wraps
the list to easily refer to system paths in talon and python files. It also creates a file
system_paths.csv in the settings folder so they user can easily add their own custom paths.
"""
import os

from talon import Context, Module, actions, app

mod = Module()
ctx = Context()

mod.list("scraper_names", desc="List of system paths")


# We need to wait for ready before we can call "actions.path.talon_home()" and
# "actions.path.talon_user()"
def on_ready():
default_system_paths = {
"doordash revisit": "doordash_revisit",
}

ctx.lists["user.scraper_names"] = default_system_paths


@mod.capture(rule="{user.scraper_names}")
def scraper_names(m) -> str:
return m.scraper_names


app.register("ready", on_ready)
Empty file added core/mine/scraper_names.talon
Empty file.
2 changes: 1 addition & 1 deletion core/modes/sleep_mode.talon
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ settings():
#stop continuous scroll/gaze scroll with a pop
user.mouse_enable_pop_stops_scroll = 0
#enable pop click with 'control mouse' mode
user.mouse_enable_pop_click = 0
user.mouse_enable_pop_click = 1
5 changes: 2 additions & 3 deletions core/modes/wake_and_sleep.talon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ mode: all
-
^(welcome back)+$:
user.mouse_wake()
user.history_enable()
user.talon_mode()
^sleep all [<phrase>]$:
user.switcher_hide_running()
Expand All @@ -13,5 +12,5 @@ mode: all
user.mouse_sleep()
speech.disable()
user.engine_sleep()
^talon sleep [<phrase>]$: speech.disable()
^(talon wake)+$: speech.enable()
^(silence) [<phrase>]$: speech.disable()
^(wakey)+$: speech.enable()
15 changes: 0 additions & 15 deletions core/mouse_grid/mouse_grid_always.talon
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@
mouse grid:
user.grid_select_screen(1)
user.grid_activate()

grid win:
user.grid_place_window()
user.grid_activate()

grid <user.number_key>+:
user.grid_activate()
user.grid_narrow_list(number_key_list)

grid screen [<number>]:
user.grid_select_screen(number or 1)
user.grid_activate()
1 change: 1 addition & 0 deletions core/numbers/numbers.talon
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
not tag: user.mouse_grid_showing
-
# (number|numb) <user.number_string>: "{number_string}"
<user.number_string>: "{number_string}"
3 changes: 3 additions & 0 deletions lang/python/python.talon
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ settings():
user.code_protected_variable_formatter = "SNAKE_CASE"
user.code_public_variable_formatter = "SNAKE_CASE"

authenticate: insert("awsauth --profile data --force-default")
debugger: insert("import pdb; pdb.set_trace()")

#python-specific grammars
dunder in it: "__init__"
state (def | deaf | deft): "def "
Expand Down
9 changes: 9 additions & 0 deletions plugin/clipboard_manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Clipboard manager

Talon built clipboard manager. Supports copying and pasting multiple things at once.

![Clipboard manager](./clipboard_manager.png)

## Demo

[YouTube - Clipboard manager demo](https://youtu.be/eQ0mlJedixw)
Binary file added plugin/clipboard_manager/clipboard_manager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading