You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments