Skip to content

Commit 1137837

Browse files
committed
Added changes to release notes for version 0.99.0 due to nushell/#14020
1 parent 5a6b8cb commit 1137837

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

blog/2024-10-15-nushell_0_99_0.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ As part of this release, we also publish a set of optional plugins you can insta
2727
- [_Highlights and themes of this release_](#highlights-and-themes-of-this-release-toc)
2828
- [_Changes_](#changes-toc)
2929
- [_Additions_](#additions-toc)
30+
- [_`enhanced keybinding configuration`_](#enhanced-keybinding-configuration-toc)
3031
- [_Breaking changes_](#breaking-changes-toc)
3132
- [_Deprecations_](#deprecations-toc)
3233
- [_Removals_](#removals-toc)
@@ -70,6 +71,40 @@ As part of this release, we also publish a set of optional plugins you can insta
7071

7172
## Additions [[toc](#table-of-content)]
7273

74+
### `enhanced keybinding configuration` [[toc](#table-of-content)]
75+
76+
**Support for Unicode Code Points in Keycodes.**
77+
78+
Starting from [#14020](https://github.com/nushell/nushell/pull/14020), users can now specify characters in the keycode field using their Unicode code points, in the format `char_uXXXX`, where `XXXX` is the hexadecimal Unicode code point. This provides greater flexibility when configuring keybindings in Nushell.
79+
80+
Specifying Unicode code points can help eliminate confusion when characters from different Unicode blocks look identical but have different code points. For example, by using `char_u0041` for the Latin `A`, `char_u0391` for the Greek `Α`, or `char_u0410` for the Cyrillic `А`, users can accurately define keybindings and avoid ambiguity in configurations.
81+
82+
**Key Feature:**
83+
84+
The current implementation does not restrict the number of leading zeroes when specifying Unicode code points. For example, the character `A` can be represented as `char_u41,` `char_u0041`, or even `char_u000041`. However, it is recommended to use four hexadecimal digits (e.g., `char_u0041`) to improve readability and maintain a consistent format across different configurations. This recommendation follows the standard Unicode representation and helps prevent ambiguity.
85+
86+
**Example usage:**
87+
88+
```nushell
89+
$env.config = {
90+
...
91+
92+
keybindings: [
93+
{
94+
name: <command_name>, # name of the command
95+
modifier: none, # key modifier
96+
keycode: char_u0391, # Unicode code for Greek 'Α'
97+
mode: vi_normal, # mode in which this binding should work
98+
event: {
99+
send: <action> # action to be performed
100+
}
101+
}
102+
]
103+
104+
...
105+
}
106+
```
107+
73108
## Breaking changes [[toc](#table-of-content)]
74109

75110
### Standard Library

0 commit comments

Comments
 (0)