zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.77k stars 3.15k forks source link

Vi mode: in normal mode, support goto next/prev function, and goto next/prev class #4316

Open WindSoilder opened 12 months ago

WindSoilder commented 12 months ago

Check for existing issues

Describe the feature

I think it'd be awesome to support goto next/prev funciton/class. Which is supported in neovim.

The key can be ]], ]m, [[, [m 图片

图片

If applicable, add mockups / screenshots to help present your vision of the feature

No response

WindSoilder commented 12 months ago

Oh, I need to say..the keybinding comes from this neovim kickstart: https://github.com/nvim-lua/kickstart.nvim/blob/39ae0829acea66175721fcf48695c7df6db040b9/init.lua#L411-L430