You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aichat/scripts/shell-integration/integration.nu

21 lines
471 B
Plaintext

def _aichat_nushell [] {
let _prev = (commandline)
if ($_prev != "") {
print '⌛'
commandline edit -r (aichat -e $_prev)
}
}
$env.config.keybindings = ($env.config.keybindings | append {
name: aichat_integration
modifier: alt
keycode: char_e
mode: [emacs, vi_insert]
event:[
{
send: executehostcommand,
cmd: "_aichat_nushell"
}
]
}
)