mirror of
https://github.com/atuinsh/atuin.git
synced 2025-01-14 02:08:19 +01:00
fix(nushell): readd up-arrow keybinding, now with menu handling (#1770)
This commit is contained in:
parent
9def30b3c5
commit
593dc410eb
@ -56,20 +56,23 @@ impl Cmd {
|
|||||||
)
|
)
|
||||||
)";
|
)";
|
||||||
const BIND_UP_ARROW: &str = r"
|
const BIND_UP_ARROW: &str = r"
|
||||||
# The up arrow keybinding has surprising behavior in Nu, and is disabled by default.
|
$env.config = (
|
||||||
# See https://github.com/atuinsh/atuin/issues/1025 for details
|
$env.config | upsert keybindings (
|
||||||
# $env.config = (
|
$env.config.keybindings
|
||||||
# $env.config | upsert keybindings (
|
| append {
|
||||||
# $env.config.keybindings
|
name: atuin
|
||||||
# | append {
|
modifier: none
|
||||||
# name: atuin
|
keycode: up
|
||||||
# modifier: none
|
mode: [emacs, vi_normal, vi_insert]
|
||||||
# keycode: up
|
event: {
|
||||||
# mode: [emacs, vi_normal, vi_insert]
|
until: [
|
||||||
# event: { send: executehostcommand cmd: (_atuin_search_cmd '--shell-up-key-binding') }
|
{send: menuup}
|
||||||
# }
|
{send: executehostcommand cmd: (_atuin_search_cmd '--shell-up-key-binding') }
|
||||||
# )
|
]
|
||||||
# )
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
";
|
";
|
||||||
if !self.disable_ctrl_r {
|
if !self.disable_ctrl_r {
|
||||||
println!("{BIND_CTRL_R}");
|
println!("{BIND_CTRL_R}");
|
||||||
|
Loading…
Reference in New Issue
Block a user