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

bug: cmdline doesn't scroll when command goes longer than editor width #959

Open
4 tasks done
mehalter opened this issue Sep 30, 2024 · 3 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@mehalter
Copy link

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.1 (github release)

Operating system/version

Arch Linux

Describe the bug

When using the cmdline view which moves the command line back down to the classic position it doesn't function correctly for long lines. If the typed command exceeds the width of the editor then it doesn't scroll so you can still see what you are typing. You are left only looking at what was already typed and you are simply off screen.

I tried to work around this for now by disabling the cmdline integration doing cmdline = { enabled = false } and this actually just left me with no cmdline at all. I'm not sure if that's intended or also a bug.

Steps To Reproduce

  1. nvim -u repro.lua, open the editor
  2. :, go to the cmdline which is at the bottom
  3. Type stuff longer than the width of the editor window and see that once you hit the width you can no longer see what is typing, you can only see the beginning that was already typed leaving you blind

Expected Behavior

The text should scroll over to be able to see what the user is typing and moving the cursor left and right should let them move back to the beginning if they need it. Similar to the out of the box cmdline behavior

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/noice.nvim", opts = {
      cmdline = { view = "cmdline" },
    } },
  },
})
@mehalter mehalter added the bug Something isn't working label Sep 30, 2024
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Oct 31, 2024
@mehalter
Copy link
Author

This issue isn't stale :)

@mau-mauricelim
Copy link

Having the same issue here.

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

2 participants