Skip to content

Commit

Permalink
Apply "sendKeys" operations
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Aug 15, 2024
1 parent c3f0639 commit b63802f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 2 additions & 0 deletions hamster/default.custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ patch:
schema_list:
- { schema: jiandao }
- { schema: pinyin_simp }
switcher/hotkeys:
- Control+quoteright
switcher/save_options/+:
- traditionalization
- martianization
16 changes: 10 additions & 6 deletions hamster/hamster.custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ patch:
- { direction: down, action: { character: { char: ")" } }, display: false, processByRIME: true }
callout:
- { action: { symbol: { char: ")" } } }
- { action: { shortcutCommand: "#关闭键盘" }, label: "✖" }
- { action: { symbol: { char: ")" } }, label: ")半" }
- keys:
- action: { character: { char: "q" } }
Expand All @@ -149,9 +148,13 @@ patch:
- { direction: down, action: { character: { char: "~" } }, processByRIME: true }
- { direction: right, action: tab, processByRIME: true }
- { action: { character: { char: "w" } }, width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.06 } } }
- { action: { character: { char: "e" } }, width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.06 } } }
- action: { character: { char: "e" } }
width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.06 } }
swipe: [{ direction: down, action: { shortcutCommand: { sendKeys: { keys: "Control+backslash" } } }, label: "绘文" }]
- { action: { character: { char: "r" } }, width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.06 } } }
- { action: { character: { char: "t" } }, width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.06 } } }
- action: { character: { char: "t" } }
width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.06 } }
swipe: [{ direction: down, action: { shortcutCommand: { sendKeys: { keys: "Control+comma" } } }, label: "豆腐" }]
- action: { character: { char: "y" } }
width: { portrait: available, landscape: { percentage: 0.06 } }
swipe:
Expand All @@ -160,6 +163,7 @@ patch:
- { action: none, width: { portrait: available, landscape: { percentage: 0.28 } } }
- action: { character: { char: "t" } }
width: { portrait: available, landscape: { percentage: 0.06 } }
swipe: [{ direction: down, action: { shortcutCommand: { sendKeys: { keys: "Control+comma" } } }, label: "豆腐" }]
- action: { character: { char: "y" } }
width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.06 } }
swipe:
Expand Down Expand Up @@ -196,9 +200,9 @@ patch:
- action: { character: { char: "s" } }
width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.0654545454545455 } }
swipe:
- { direction: up, action: { shortcutCommand: "#RimeSwitcher" }, label: "选单" }
- { direction: down, action: { shortcutCommand: "#简繁切换" }, label: "简繁" }
callout: [{ action: { shortcutCommand: "#RimeSwitcher" }, label: "选单" }]
- { direction: up, action: { shortcutCommand: { sendKeys: { keys: "Control+quoteright" } } }, label: "选单" }
- { direction: down, action: { shortcutCommand: { sendKeys: { keys: "Control+slash" } } }, label: "简繁" }
callout: [{ action: { shortcutCommand: { sendKeys: { keys: "Control+quoteright" } } }, label: "选单" }]
- { action: { character: { char: "d" } }, width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.0654545454545455 } } }
- action: { character: { char: "f" } }
width: { portrait: { percentage: 0.1 }, landscape: { percentage: 0.0654545454545455 } }
Expand Down
5 changes: 3 additions & 2 deletions hamster/jiandao.custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ patch:
switches/@2: { options: [ simplification, traditionalization, martianization ], abbrev: [ 汉, 漢, 焱 ], states: [ 通用规范汉字, 繁體字, 焱暒妏 ] }
switches/@next: { name: notolization, abbrev: [ �, 字 ], states: [ ��, 文字 ] }
key_binder/bindings:
- { when: has_menu, accept: "^", toggle: traditionalization }
- { when: has_menu, accept: "&", toggle: emoji_suggestion }
- { when: always, accept: "Control+slash", toggle: traditionalization }
- { when: always, accept: "Control+backslash", toggle: emoji_suggestion }
- { when: always, accept: "Control+comma", toggle: notolization }
engine/filters/+:
- simplifier@martianization
- lua_filter@*comment_spliter
Expand Down

0 comments on commit b63802f

Please sign in to comment.