-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
edit commands fail on nushell #5211
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
trying to use the "e" key to open a file fail when using nushell
To Reproduce
- nu
- lazygit
eon a file
Expected behavior
run the shell command to open editor
Screenshots
Version info:
commit=v0.58.1, build date=2026-01-12T20:22:34Z, build source=binaryRelease, version=0.58.1, os=linux, arch=amd64, git version=2.52.0
workaround
in my user config:
os:
edit: 'if ($env.NVIM? | is-empty) { nvim -- {{filename}} } else { nvim --server $env.NVIM --remote-send "q"; nvim --server $env.NVIM --remote-tab {{filename}} }'
editAtLine: 'if ($env.NVIM? | is-empty) { nvim +{{line}} -- {{filename}} } else { nvim --server $env.NVIM --remote-send "q"; nvim --server $env.NVIM --remote-tab {{filename}}; nvim --server $env.NVIM --remote-send ":{{line}}<CR>" }'
openDirInEditor: 'if ($env.NVIM? | is-empty) { nvim -- {{dir}} } else { nvim --server $env.NVIM --remote-send "q"; nvim --server $env.NVIM --remote-tab {{dir}} }'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working