|
3 | 3 | All notable changes to this project will be documented in this file.
|
4 | 4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
5 | 5 |
|
6 |
| -## [Version 4.6.1] - 2024-08-14 |
| 6 | +## [Version 4.7.0] - 2024-08-17 |
7 | 7 |
|
8 | 8 | ### Added
|
9 |
| -- Implemented `grab-device` directive support on Windows. |
| 9 | + |
| 10 | +- Allow to define top-level macros: |
| 11 | + ```bash |
| 12 | + macro = $0 >> $1 |
| 13 | + macro[A, B] |
| 14 | + ``` |
| 15 | + |
| 16 | +- Added builtin macros `repeat[EXPR, N]`, `length[STR]`, `add/sub/mul/div/mod/min/max[A, B]`. |
| 17 | + |
10 | 18 | - Apply further argument list to result of macro. e.g.:
|
11 | 19 |
|
12 |
| - ```python |
| 20 | + ```bash |
13 | 21 | case1 = $0
|
14 | 22 | case2 = $0 $0
|
15 | 23 | switch = case$0
|
16 | 24 | A >> switch[2][B] # switch generates case2, which is called with second argument list
|
17 | 25 | ```
|
18 | 26 |
|
| 27 | +- Implemented `@grab-device` directive support on Windows. |
| 28 | + |
19 | 29 | ### Fixed
|
20 |
| -- `allow-unmapped-commands` also ignore mappings of undefined commands. e.g.: |
| 30 | +- `@allow-unmapped-commands` also ignore mappings of undefined commands. e.g.: |
21 | 31 |
|
22 | 32 | ```python
|
23 | 33 | @allow-unmapped-commands
|
24 | 34 | command >> A
|
25 | 35 | ```
|
26 | 36 |
|
| 37 | +- Added KDE6 support to keymapper KWin script. |
| 38 | + |
27 | 39 | ## [Version 4.6.0] - 2024-08-07
|
28 | 40 |
|
29 | 41 | ### Added
|
30 | 42 | - Allow string literals in input expressions. e.g. `'Abc' >> B`.
|
31 |
| -- Added `allow-unmapped-commands` and `enforce-lowercase-commands` directives. |
| 43 | +- Added `@allow-unmapped-commands` and `@enforce-lowercase-commands` directives. |
32 | 44 |
|
33 | 45 | ### Changed
|
34 | 46 | - Keep key held when pressed immediately after `!Any`.
|
@@ -635,7 +647,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
635 | 647 |
|
636 | 648 | ## [Version 1.1.5] - 2020-05-09
|
637 | 649 |
|
638 |
| -[version 4.6.1]: https://github.com/houmain/keymapper/compare/4.6.0...4.6.1 |
| 650 | +[version 4.7.0]: https://github.com/houmain/keymapper/compare/4.6.0...4.7.0 |
639 | 651 | [version 4.6.0]: https://github.com/houmain/keymapper/compare/4.5.2...4.6.0
|
640 | 652 | [version 4.5.2]: https://github.com/houmain/keymapper/compare/4.5.1...4.5.2
|
641 | 653 | [version 4.5.1]: https://github.com/houmain/keymapper/compare/4.5.0...4.5.1
|
|
0 commit comments