Skip to content

Commit

Permalink
📝 [examples] Add examples for emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-liu committed Dec 31, 2023
1 parent 622491c commit 01771d3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/os-functionality/launch-apps-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ the 'launch-app' layer:

Use any key for the layer, also consider using:

- `layer('l', 'launch-app')`
- `simlayer('l', 'launch-app')`
- `hyperLayer('l', 'launch-app')`
- `duoLayer('l', ';', 'launch-app')`
3 changes: 3 additions & 0 deletions examples/text-input/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"label": "Text Input"
}
7 changes: 7 additions & 0 deletions examples/text-input/emoji.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { layer, toPaste } from '../../src'

export const rules = () => [
layer('z', 'emoji').manipulators({
j: toPaste('😂'), // joy
}),
]
14 changes: 14 additions & 0 deletions examples/text-input/emoji.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Input emoji
---

Input emoji by layer + keys. When press and hold key `z` to activate
the 'emoji' layer:

- `j`: 😂 (joy)

Use any key for the layer, also consider using:

- `simlayer('z', 'emoji')`
- `hyperLayer('z', 'emoji')`
- `duoLayer('z', 'x', 'emoji')`

0 comments on commit 01771d3

Please sign in to comment.