nushell
nushell copied to clipboard
Change keybonding for hint complete
Question
Currently the hint completion is done with the right arrow key. I want to change that to use tab.
How does one set up this in config.nu file?
Additional context and details
No response
if you look at keybindings default you will see that right is in an until with historyhintcomplete, menuright and right. you may be able to follow one of the other examples that uses until in the default_config.nu to try and figure this out.
Looks like this works:
keybindings: [
{
name: tab_history_completion
modifier: none
keycode: tab
mode: [ emacs, vi_insert, vi_normal ]
event: {
until: [
{ send: historyhintcomplete }
{ send: menuright }
{ send: right }
]
}
}
]