Skip to content

Commit 3c2fb05

Browse files
committed
Preparing release
1 parent 3c3f5fe commit 3c2fb05

File tree

2 files changed

+108
-1
lines changed

2 files changed

+108
-1
lines changed

CHANGELOG.md

+104
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,103 @@
33
All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6+
## [Version 4.9.0] - 2024-11-15
7+
8+
### Added
9+
10+
- Added builtin macro `default` (#176).
11+
- Added macro actual parameter `$$` (#176).
12+
- Added builtin macro apply (#177).
13+
- Added `@macos-iso-keyboard` directive.
14+
- `keymapperctl --type` expands `$(commands)` under Windows.
15+
16+
### Changed
17+
18+
- Updated Karabiner VirtualHIDDevice to version 5.0.0 (#178).
19+
- Looking for config in `$XDG_CONFIG_HOME` first (#180).
20+
- Deprecated `;` as start of comment.
21+
22+
### Fixed
23+
24+
- Fixed build on MacOS (#179).
25+
- Improved coexistence with Karabiner-Elements (#172).
26+
- Fixed invalid index lookup on null object in KWin script.
27+
28+
## [Version 4.8.2] - 2024-09-02
29+
30+
### Added
31+
- Added logical key `Alt`.
32+
33+
### Changed
34+
- Allow to override keys with aliases. e.g.
35+
```
36+
Alt = AltLeft
37+
AltGr = AltRight
38+
```
39+
40+
## [Version 4.8.1] - 2024-09-05
41+
42+
### Added
43+
44+
- Added [@forward-modifiers](https://github.com/houmain/keymapper?tab=readme-ov-file#directives) directive (#174).
45+
- Implemented `grab-device` directive support on MacOS (#166).
46+
47+
## [Version 4.8.0] - 2024-09-01
48+
49+
### Added
50+
51+
- Added `keymapperctl` operations `--input` and `--output` for injecting key presses. e.g.:
52+
53+
```
54+
keymapperctl --input Shift{A} B C
55+
```
56+
with `--input` the mappings are applied as if the sequence came from an input device,
57+
with `--output` the sequence is output as if it was generated by keymapper (#170).
58+
59+
## [Version 4.7.3] - 2024-08-31
60+
61+
### Fixed
62+
63+
- Fixed mouse wheel breaking `?` input expressions.
64+
65+
## [Version 4.7.2] - 2024-08-24
66+
67+
### Added
68+
69+
- Added `WheelLeft` and `WheelRight` for horizontal mouse wheels.
70+
71+
### Changed
72+
73+
- Swapped `WheelUp` and `WheelDown` on Windows.
74+
75+
### Fixed
76+
77+
- Fixed leaking of unmapped mouse input on Windows.
78+
79+
## [Version 4.7.1] - 2024-08-19
80+
81+
### Added
82+
83+
- Added string interpolation, which works in strings, terminal commands and regular expressions. e.g.:
84+
```bash
85+
VAR = "World"
86+
A >> "Hello ${VAR}" # $VAR also works
87+
```
88+
89+
- Allow to split a line with a `\` at the end. e.g.:
90+
```bash
91+
Shift{A} >> \
92+
Control{B}
93+
```
94+
95+
### Changed
96+
97+
- Aliases are no longer automatically substituted in terminal commands (use string interpolation).
98+
99+
### Fixed
100+
101+
- Fixed too eager macro evaluation.
102+
6103
## [Version 4.7.0] - 2024-08-17
7104
8105
### Added
@@ -647,6 +744,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
647744
648745
## [Version 1.1.5] - 2020-05-09
649746
747+
[version 4.9.0]: https://github.com/houmain/keymapper/compare/4.8.2...4.9.0
748+
[version 4.8.2]: https://github.com/houmain/keymapper/compare/4.8.1...4.8.2
749+
[version 4.8.1]: https://github.com/houmain/keymapper/compare/4.8.0...4.8.1
750+
[version 4.8.0]: https://github.com/houmain/keymapper/compare/4.7.3...4.8.0
751+
[version 4.7.3]: https://github.com/houmain/keymapper/compare/4.7.2...4.7.3
752+
[version 4.7.2]: https://github.com/houmain/keymapper/compare/4.7.1...4.7.2
753+
[version 4.7.1]: https://github.com/houmain/keymapper/compare/4.7.0...4.7.1
650754
[version 4.7.0]: https://github.com/houmain/keymapper/compare/4.6.0...4.7.0
651755
[version 4.6.0]: https://github.com/houmain/keymapper/compare/4.5.2...4.6.0
652756
[version 4.5.2]: https://github.com/houmain/keymapper/compare/4.5.1...4.5.2

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ print = $(echo $0 $1 >> ~/keymapper.txt)
311311
F1 >> print["pressed the key", F1]
312312
```
313313

314-
There are a few builtin macros `repeat[EXPR, N]`, `length[STR]`, `default[A, B]`, `add/sub/mul/div/mod/min/max[A, B]` which allow to define some more advanced macros. e.g:
314+
There are a few builtin macros `repeat[EXPR, N]`, `length[STR]`, `default[A, B]`, `apply[EXPR, ARGS...]`, `add/sub/mul/div/mod/min/max[A, B]` which allow to generate mappings and define some more advanced macros. e.g:
315315

316316
```bash
317317
# when last character of string is typed, undo using backspace and output new string
@@ -324,6 +324,9 @@ substituteExec = ? "$0" >> \
324324

325325
substitute["Cat", "Dog"]
326326
substituteExec[":whoami", "whoami"]
327+
328+
# add a `FN >> Meta{N}` mapping for each function key
329+
apply[F$0 >> Meta{$0}, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
327330
```
328331
329332
`$$` is substituted with the actual parameter count, which allows to add overloads:

0 commit comments

Comments
 (0)