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
|
modifier: control
|
||||||
keycode: char_a
|
keycode: char_a
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
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
|
modifier: control
|
||||||
keycode: char_e
|
keycode: char_e
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
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
|
modifier: control
|
||||||
keycode: home
|
keycode: home
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
mode: [emacs, vi_normal, vi_insert]
|
||||||
@ -254,7 +254,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: move_down
|
name: move_down_ctrl_n
|
||||||
modifier: control
|
modifier: control
|
||||||
keycode: char_n
|
keycode: char_n
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
mode: [emacs, vi_normal, vi_insert]
|
||||||
@ -267,7 +267,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: move_up
|
name: move_up_ctrl_p
|
||||||
modifier: control
|
modifier: control
|
||||||
keycode: char_p
|
keycode: char_p
|
||||||
mode: [emacs, vi_normal, vi_insert]
|
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
|
modifier: control
|
||||||
keycode: delete
|
keycode: delete
|
||||||
mode: [emacs, vi_insert]
|
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
|
modifier: control
|
||||||
keycode: char_h
|
keycode: char_h
|
||||||
mode: [emacs, vi_insert]
|
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
|
modifier: control
|
||||||
keycode: char_w
|
keycode: char_w
|
||||||
mode: [emacs, vi_insert]
|
mode: [emacs, vi_insert]
|
||||||
@ -328,7 +328,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: move_left
|
name: move_left_vi_normal_backspace
|
||||||
modifier: none
|
modifier: none
|
||||||
keycode: backspace
|
keycode: backspace
|
||||||
mode: vi_normal
|
mode: vi_normal
|
||||||
@ -344,7 +344,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: move_left
|
name: move_left_ctrl_b
|
||||||
modifier: control
|
modifier: control
|
||||||
keycode: char_b
|
keycode: char_b
|
||||||
mode: emacs
|
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
|
modifier: control
|
||||||
keycode: char_f
|
keycode: char_f
|
||||||
mode: emacs
|
mode: emacs
|
||||||
@ -427,7 +427,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: move_one_word_left
|
name: move_one_word_left_alt_left
|
||||||
modifier: alt
|
modifier: alt
|
||||||
keycode: left
|
keycode: left
|
||||||
mode: emacs
|
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
|
modifier: alt
|
||||||
keycode: right
|
keycode: right
|
||||||
mode: emacs
|
mode: emacs
|
||||||
@ -448,7 +448,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: move_one_word_left
|
name: move_one_word_left_alt_b
|
||||||
modifier: alt
|
modifier: alt
|
||||||
keycode: char_b
|
keycode: char_b
|
||||||
mode: emacs
|
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
|
modifier: alt
|
||||||
keycode: char_f
|
keycode: char_f
|
||||||
mode: emacs
|
mode: emacs
|
||||||
@ -477,7 +477,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: delete_one_word_backward
|
name: delete_one_word_backward_alt_backspace
|
||||||
modifier: alt
|
modifier: alt
|
||||||
keycode: backspace
|
keycode: backspace
|
||||||
mode: emacs
|
mode: emacs
|
||||||
@ -485,7 +485,7 @@ export const bindings = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
name: delete_one_word_backward
|
name: delete_one_word_backward_alt_m
|
||||||
modifier: alt
|
modifier: alt
|
||||||
keycode: char_m
|
keycode: char_m
|
||||||
mode: emacs
|
mode: emacs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user