You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. cmd+q on macOS normally quits an app. However, in the case of Neovide, this leads to quitting the window, with an effect similar to :q!. However, it would be preferable to quit via :wqall to not lose any work.
Describe the solution you'd like
Make cmd+q mappable via vim.keymap.set("n", "<D-q>", …) (assuming vim.g.neovide_input_use_logo = true).
Describe alternatives you've considered
Use a keyboard remapping software, remap cmd+q to something like nvim --server "/tmp/nvim_server.pipe" --remote-send "<cmd>wqall<CR>". Additionally, Set up vim.fn.serverstart in your nvim config. Quite the workaround.
I also looked into using QuitPre autocommands in nvim, but could not get anything working there. I think it is because quitting via cmd+q does not trigger those events?
Additional context
Various apps seem to be able to make cmd+q mappable, so you can map it to something other than quitting the app. Two examples I am aware of are WezTerm and Obsidian.
The text was updated successfully, but these errors were encountered:
Do you think that's something possible to add? I'm not exactly sure how it would work, but maybe we should try to route it through the neovim keymap mapping system?
Is your feature request related to a problem? Please describe.
cmd+q
on macOS normally quits an app. However, in the case of Neovide, this leads to quitting the window, with an effect similar to:q!
. However, it would be preferable to quit via:wqall
to not lose any work.Describe the solution you'd like
Make
cmd+q
mappable viavim.keymap.set("n", "<D-q>", …)
(assumingvim.g.neovide_input_use_logo = true
).Describe alternatives you've considered
Use a keyboard remapping software, remap
cmd+q
to something likenvim --server "/tmp/nvim_server.pipe" --remote-send "<cmd>wqall<CR>"
. Additionally, Set upvim.fn.serverstart
in your nvim config. Quite the workaround.I also looked into using
QuitPre
autocommands in nvim, but could not get anything working there. I think it is because quitting viacmd+q
does not trigger those events?Additional context
Various apps seem to be able to make
cmd+q
mappable, so you can map it to something other than quitting the app. Two examples I am aware of are WezTerm and Obsidian.The text was updated successfully, but these errors were encountered: