forked from talonhub/community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from adam-edison/aedison-current-clean
merge to clear out tons of changes on the branch
- Loading branch information
Showing
49 changed files
with
1,303 additions
and
26 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
apps/1password/chrome-extension/1password_chrome_global.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
os: mac | ||
- | ||
|
||
get password <user.text>: user.get_password(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from talon import Context, Module, actions, app, ctrl, storage, clip | ||
|
||
ctx = Context() | ||
mod = Module() | ||
|
||
@mod.action_class | ||
class Actions: | ||
def password_open_search(): | ||
"""Uses chrome extension to open quick search in extension menu""" | ||
actions.sleep("100ms") | ||
actions.key("cmd-shift-x") | ||
actions.sleep("1000ms") | ||
|
||
def password_search_string(key: str): | ||
"""Uses chrome extension to quick search""" | ||
actions.sleep("50ms") | ||
actions.insert(key) | ||
actions.sleep("500ms") | ||
|
||
def password_copy_password(): | ||
"""Uses chrome extension to copy password""" | ||
actions.sleep("50ms") | ||
actions.key("right") | ||
actions.key("down") | ||
actions.sleep("500ms") | ||
actions.key("enter") | ||
actions.sleep("50ms") | ||
|
||
def get_password(key: str): | ||
"""Uses chrome extension to get the password after searching for the supplied key""" | ||
actions.user.switcher_focus("chrome") | ||
actions.sleep("500ms") | ||
actions.user.password_open_search() | ||
actions.user.password_search_string(key) | ||
actions.user.password_copy_password() | ||
actions.sleep("500ms") | ||
actions.key("esc") | ||
return clip.get() |
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: chrome | ||
os: mac | ||
- | ||
|
||
^password$: user.password_open_search() | ||
|
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,4 @@ | ||
os: windows | ||
- | ||
|
||
^password$: key(ctrl-shift-x) |
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,13 @@ | ||
app: chrome | ||
- | ||
|
||
make expand <user.text>: | ||
insert("/") | ||
sleep(500ms) | ||
insert("expand") | ||
sleep(100ms) | ||
key(enter) | ||
sleep(100ms) | ||
key(up) | ||
sleep(100ms) | ||
insert(user.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
os: mac | ||
app: slack | ||
- | ||
|
||
react ship: | ||
mouse_click(1) | ||
sleep(300ms) | ||
key(r) | ||
sleep(300ms) | ||
insert(":ship") | ||
sleep(300ms) | ||
key(enter) | ||
|
||
react (thumbs up|like): | ||
mouse_click(1) | ||
sleep(300ms) | ||
key(r) | ||
sleep(300ms) | ||
insert(":thumbsup") | ||
sleep(300ms) | ||
key(enter) | ||
|
||
react (thanks|thank you): | ||
mouse_click(1) | ||
sleep(300ms) | ||
key(r) | ||
sleep(300ms) | ||
insert(":thankyou") | ||
sleep(300ms) | ||
key(enter) | ||
|
||
react looking: | ||
mouse_click(1) | ||
sleep(300ms) | ||
key(r) | ||
sleep(300ms) | ||
insert(":eyes") | ||
sleep(300ms) | ||
key(enter) | ||
|
||
react (done|complete): | ||
mouse_click(1) | ||
sleep(300ms) | ||
key(r) | ||
sleep(300ms) | ||
insert(":white_check_mark") | ||
sleep(300ms) | ||
key(enter) |
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,35 @@ | ||
from talon import Context, Module, actions, app, clip | ||
|
||
ctx = Context() | ||
mod = Module() | ||
|
||
ctx.matches = r""" | ||
app: vscode | ||
""" | ||
|
||
mod.list("pnpm_filters", "named filters for pnpm working in various repositories") | ||
|
||
ctx.lists["user.pnpm_filters"] = { | ||
"web": "@timeblock.life/timeblock-web-ui", | ||
"api": "@timeblock.life/timeblock-api", | ||
"shared": "@timeblock.life/shared", | ||
} | ||
|
||
|
||
@mod.action_class | ||
class Actions: | ||
def pnpm_run_with_filter(filter: str, command: str): | ||
"""Run pnpm with a filter""" | ||
actions.user.vscode_terminal(1) | ||
actions.insert(f"pnpm run --filter='{filter}' {command}\n") | ||
|
||
def clean_jest_object_paste(): | ||
"""Take clipboard code and clean it up from jest diff""" | ||
contents = clip.get() | ||
# replace + with nothing | ||
clean = ( | ||
contents.replace("+", "") | ||
.replace("Object", "") | ||
.replace("Array", "") | ||
) | ||
actions.user.paste(clean) |
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,203 @@ | ||
app: vscode | ||
- | ||
|
||
auto fix: key(alt-enter) | ||
|
||
comment line: key(cmd-/) | ||
|
||
terminal max: | ||
user.vscode("workbench.action.toggleMaximizedPanel") | ||
|
||
toggle selection: | ||
user.vscode("toggleFindInSelection") | ||
|
||
toggle regex: | ||
user.vscode("toggleFindRegex") | ||
|
||
hunt failure: | ||
user.vscode_terminal(1) | ||
sleep(100ms) | ||
user.find("") | ||
sleep(200ms) | ||
insert("FAIL") | ||
|
||
paste clean object: user.clean_jest_object_paste() | ||
|
||
filter test selection: | ||
edit.copy() | ||
sleep(200ms) | ||
user.vscode_terminal(1) | ||
sleep(100ms) | ||
insert(" -- -t ''") | ||
sleep(800ms) | ||
key(left) | ||
sleep(300ms) | ||
edit.paste() | ||
key(enter) | ||
|
||
package <user.word>: | ||
user.vscode_terminal(1) | ||
sleep(300ms) | ||
insert("npm run {user.word}") | ||
|
||
package <user.word> <user.word>: | ||
user.vscode_terminal(1) | ||
sleep(100ms) | ||
insert("npm run {user.word_1}:{user.word_2}") | ||
|
||
package <user.word> <user.word> <user.word>: | ||
user.vscode_terminal(1) | ||
sleep(100ms) | ||
insert("npm run {user.word_1}:{user.word_2}:{user.word_3}") | ||
|
||
perform {user.pnpm_filters} <user.word>: | ||
user.pnpm_run_with_filter(user.pnpm_filters, user.word) | ||
|
||
perform <user.word>: | ||
user.vscode_terminal(1) | ||
sleep(300ms) | ||
insert("pnpm run {user.word}") | ||
|
||
perform <user.word> <user.word>: | ||
user.vscode_terminal(1) | ||
sleep(100ms) | ||
insert("pnpm run {user.word_1}:{user.word_2}") | ||
|
||
perform <user.word> <user.word> <user.word>: | ||
user.vscode_terminal(1) | ||
sleep(100ms) | ||
insert("pnpm run {user.word_1}:{user.word_2}:{user.word_3}") | ||
|
||
window <user.word>: | ||
user.vscode("workbench.action.switchWindow") | ||
sleep(100ms) | ||
insert("{user.word}\n") | ||
|
||
clear run last: | ||
user.vscode_terminal(1) | ||
sleep(500ms) | ||
insert("clear\n") | ||
sleep(1000ms) | ||
key(up up enter) | ||
|
||
(rerun | run last): | ||
user.vscode_terminal(1) | ||
key(up enter) | ||
|
||
run lint: | ||
user.vscode_terminal(1) | ||
sleep(500ms) | ||
insert("npm run lint\n") | ||
|
||
run test: | ||
user.vscode_terminal(1) | ||
sleep(500ms) | ||
insert("npm run test\n") | ||
user.vscode("workbench.action.toggleMaximizedPanel") | ||
|
||
run test unit: | ||
user.vscode_terminal(1) | ||
sleep(500ms) | ||
insert("npm run test:unit\n") | ||
user.vscode("workbench.action.toggleMaximizedPanel") | ||
|
||
run test integration: | ||
user.vscode_terminal(1) | ||
sleep(500ms) | ||
insert("npm run test:integration\n") | ||
user.vscode("workbench.action.toggleMaximizedPanel") | ||
|
||
run test unit update: | ||
user.vscode_terminal(1) | ||
sleep(500ms) | ||
insert("npm run test:unit -- -u\n") | ||
user.vscode("workbench.action.toggleMaximizedPanel") | ||
|
||
update snapshots: | ||
insert("npm run test -- -u\n") | ||
|
||
coding: | ||
user.vscode("workbench.action.focusActiveEditorGroup") | ||
user.vscode("workbench.action.focusActiveEditorGroup") | ||
|
||
terminal git push: | ||
user.vscode_terminal(1) | ||
sleep(500ms) | ||
insert("git push\n") | ||
user.vscode("workbench.action.toggleMaximizedPanel") | ||
|
||
git status: | ||
user.vscode("workbench.scm.focus") | ||
# refresh the git view, requires keybinding to be defined for "git refresh" | ||
key(ctrl-shift-alt-f5) | ||
|
||
view to do: | ||
user.vscode("workbench.action.quickOpen") | ||
sleep(50ms) | ||
insert("view todo") | ||
sleep(100ms) | ||
key(enter) | ||
|
||
log below: | ||
edit.copy() | ||
edit.line_end() | ||
key(enter) | ||
user.paste("console.log({{ ") | ||
edit.paste() | ||
user.paste(" }});") | ||
|
||
open folder: | ||
user.vscode("workbench.action.files.openFolder") | ||
|
||
# mac os version | ||
terminal here: | ||
key(ctrl-shift-`) | ||
|
||
terminal status: | ||
user.vscode("workbench.action.terminal.focus") | ||
sleep(200ms) | ||
insert("git status\n") | ||
|
||
terminal bottom: | ||
user.vscode("workbench.action.terminal.scrollToBottom") | ||
|
||
fetch develop: | ||
user.vscode("workbench.action.terminal.focus") | ||
sleep(200ms) | ||
insert("git checkout develop && git fetch -p && git pull\n") | ||
|
||
rebase against develop: | ||
user.vscode("workbench.action.terminal.focus") | ||
sleep(200ms) | ||
insert("git checkout develop && git pull && git checkout - && git rebase develop\n") | ||
|
||
git graph: | ||
user.vscode("git-graph.view") | ||
|
||
terminal clip <user.word>: | ||
user.vscode("workbench.action.terminal.focus") | ||
sleep(200ms) | ||
user.indexed_clipboard_paste(clipboard_index) | ||
|
||
terminal paster: | ||
user.vscode("workbench.action.terminal.focus") | ||
sleep(200ms) | ||
edit.paste() | ||
|
||
new folder <user.word>: | ||
user.vscode("explorer.newFolder") | ||
insert("{user.word}") | ||
|
||
new file <user.word>: | ||
user.vscode("explorer.newFile") | ||
insert("{user.word}") | ||
|
||
checkout dot: | ||
user.vscode("workbench.action.terminal.focus") | ||
sleep(200ms) | ||
insert("git checkout .\n") | ||
|
||
terminal clear: | ||
user.vscode("workbench.action.terminal.focus") | ||
sleep(200ms) | ||
insert("clear\n") |
Oops, something went wrong.