Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl+C is not working after Ctrl+O and exiting editor #858

Open
szevzol opened this issue Nov 29, 2024 · 6 comments
Open

Ctrl+C is not working after Ctrl+O and exiting editor #858

szevzol opened this issue Nov 29, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@szevzol
Copy link

szevzol commented Nov 29, 2024

Platform e.g. macOS, Windows 10, ...
Windows 10
Version 10.0.19045 Build 19045

Terminal software e.g. gnome-terminal, Apple Terminal.app, ...
wezterm 20240203-110809-5046fc22

I type in a command line, then I press Ctrl+O. This opens up $env.EDITOR, which is nvim in my case.
I exit nvim but I don't want to run the command, I would like to cancel it with Ctrl+C but nothing happens. I have to delete the command to empty the line the press enter.

Steps to reproduce

  1. $env.EDITOR = nvim
  2. type 'ls'
  3. type Ctrl+O
  4. quit nvim
  5. type Ctrl+C

Screenshots/Screencaptures

Very helpful if the display doesn't seem to work

@szevzol szevzol added the bug Something isn't working label Nov 29, 2024
@fdncred
Copy link
Collaborator

fdncred commented Nov 29, 2024

I can't reproduce the problem on macos

@szevzol
Copy link
Author

szevzol commented Nov 29, 2024

I don't have real linux to try it, on WSL I cannot reproduce. However, on WSL nushell behaves strange: every key I type scrolls the screen buffer up one line.

@fdncred
Copy link
Collaborator

fdncred commented Nov 29, 2024

If you're using wezterm on windows you probably need to disable osc133 in the config file.

@szevzol
Copy link
Author

szevzol commented Nov 29, 2024

disabling osc133 fixes auto scrolling, however my original issue on windows still exists :(

@sholderbach
Copy link
Member

What version of Nushell and Neovim are you using?

@szevzol
Copy link
Author

szevzol commented Nov 29, 2024

nu: 0.100.0
neovim:
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants