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

feat(ui): ext_cmdline/messages for the TUI #27855

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

luukvbaal
Copy link
Contributor

WIP

@github-actions github-actions bot added build building and installing Neovim using the provided scripts ui labels Mar 14, 2024
@luukvbaal luukvbaal added lua stdlib messages UI messages, log messages cmdline-mode command line, also cmdwin labels Mar 14, 2024
@luukvbaal luukvbaal force-pushed the ext_msg branch 2 times, most recently from 789fc96 to 856c9c5 Compare March 21, 2024 14:01
Problem:  Lua callbacks for "msg_show" events with vim.ui_attach() are
          executed when it is not safe. The callback can cause Nvim to
          crash, change internal variables which may yet be needed etc.
Solution: Batch "msg_show" events and call Lua callback when it is safe.
          Instead of separate events, event and pass an array of all
          messages since the last redraw.
@luukvbaal luukvbaal force-pushed the ext_msg branch 3 times, most recently from 8fd2c9f to c730579 Compare April 18, 2024 12:19
Problem:  We have an unmaintained Vimscript parser and cmdline
          highlighting mechanism. Meanwhile we have a bundled treesitter
          Vimscript parser that is hard to leverage in the current
          message grid cmdline.
Solution: Replace the message grid cmdline with an ext_cmdline/messages
          based floating window. Enable the TSHighlighter in the cmdline
          window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build building and installing Neovim using the provided scripts cmdline-mode command line, also cmdwin lua stdlib messages UI messages, log messages ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant