fix: give unique names to duplicate nushell keybindings
Newer nushell warns when multiple keybindings share a name. Several bindings mapped the same logical action (e.g. move_up) to more than one key combo under one name; disambiguate each with a key-specific suffix.
This commit is contained in:
parent
9b258aa2b0
commit
9f0e0b30d4
@ -204,7 +204,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_to_line_start
|
||||
name: move_to_line_start_ctrl_a
|
||||
modifier: control
|
||||
keycode: char_a
|
||||
mode: [emacs, vi_normal, vi_insert]
|
||||
@ -225,7 +225,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_to_line_end_or_take_history_hint
|
||||
name: move_to_line_end_or_take_history_hint_ctrl_e
|
||||
modifier: control
|
||||
keycode: char_e
|
||||
mode: [emacs, vi_normal, vi_insert]
|
||||
@ -238,7 +238,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_to_line_start
|
||||
name: move_to_line_start_ctrl_home
|
||||
modifier: control
|
||||
keycode: home
|
||||
mode: [emacs, vi_normal, vi_insert]
|
||||
@ -254,7 +254,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_down
|
||||
name: move_down_ctrl_n
|
||||
modifier: control
|
||||
keycode: char_n
|
||||
mode: [emacs, vi_normal, vi_insert]
|
||||
@ -267,7 +267,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_up
|
||||
name: move_up_ctrl_p
|
||||
modifier: control
|
||||
keycode: char_p
|
||||
mode: [emacs, vi_normal, vi_insert]
|
||||
@ -304,7 +304,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: delete_one_character_forward
|
||||
name: delete_one_character_forward_ctrl_delete
|
||||
modifier: control
|
||||
keycode: delete
|
||||
mode: [emacs, vi_insert]
|
||||
@ -312,7 +312,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: delete_one_character_backward
|
||||
name: delete_one_character_backward_ctrl_h
|
||||
modifier: control
|
||||
keycode: char_h
|
||||
mode: [emacs, vi_insert]
|
||||
@ -320,7 +320,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: delete_one_word_backward
|
||||
name: delete_one_word_backward_ctrl_w
|
||||
modifier: control
|
||||
keycode: char_w
|
||||
mode: [emacs, vi_insert]
|
||||
@ -328,7 +328,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_left
|
||||
name: move_left_vi_normal_backspace
|
||||
modifier: none
|
||||
keycode: backspace
|
||||
mode: vi_normal
|
||||
@ -344,7 +344,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_left
|
||||
name: move_left_ctrl_b
|
||||
modifier: control
|
||||
keycode: char_b
|
||||
mode: emacs
|
||||
@ -357,7 +357,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_right_or_take_history_hint
|
||||
name: move_right_or_take_history_hint_ctrl_f
|
||||
modifier: control
|
||||
keycode: char_f
|
||||
mode: emacs
|
||||
@ -427,7 +427,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_one_word_left
|
||||
name: move_one_word_left_alt_left
|
||||
modifier: alt
|
||||
keycode: left
|
||||
mode: emacs
|
||||
@ -435,7 +435,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_one_word_right_or_take_history_hint
|
||||
name: move_one_word_right_or_take_history_hint_alt_right
|
||||
modifier: alt
|
||||
keycode: right
|
||||
mode: emacs
|
||||
@ -448,7 +448,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_one_word_left
|
||||
name: move_one_word_left_alt_b
|
||||
modifier: alt
|
||||
keycode: char_b
|
||||
mode: emacs
|
||||
@ -456,7 +456,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: move_one_word_right_or_take_history_hint
|
||||
name: move_one_word_right_or_take_history_hint_alt_f
|
||||
modifier: alt
|
||||
keycode: char_f
|
||||
mode: emacs
|
||||
@ -477,7 +477,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: delete_one_word_backward
|
||||
name: delete_one_word_backward_alt_backspace
|
||||
modifier: alt
|
||||
keycode: backspace
|
||||
mode: emacs
|
||||
@ -485,7 +485,7 @@ export const bindings = [
|
||||
}
|
||||
|
||||
{
|
||||
name: delete_one_word_backward
|
||||
name: delete_one_word_backward_alt_m
|
||||
modifier: alt
|
||||
keycode: char_m
|
||||
mode: emacs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user