mirror of https://github.com/sigoden/aichat
feat: add nushell integration (#344)
parent
d6e12b1f56
commit
f82f577b6d
@ -0,0 +1,21 @@
|
||||
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
)
|
Loading…
Reference in New Issue