-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Flash.nvim style search in a document. #14801
Comments
Hi @stephen776, interesting. So as I understand this, when searching in vim mode it dynamically creates "labels" which are appended inline following matches to allow you to quickly jump to that match if you type those letters rather than typing the vim pattern. These labels appear to be generated dynamically to not conflict with any characters that could following your current pattern. Additionally, it appears to support having the same labels for block starts/end (I assume using tree-sitter)? What happens if you hit a typo that matches a label? Would this only be possible in vim mode or do you thin kit would be possible to support this in non-vim modes? Can you say a little bit more about how you use this feature and why you find it so powerful? |
Yep that's correct. As for the typo/tag question, as soon as you press a tag it jumps to it. However, I think that it will attempt to avoid tags that are legitimate next character matches for potential overall matches to reduce the chance of accidental jumps. It work quite well in practice. These types of navigation plugins are popular in the neovim/vim community. Other plugins with similar goals/ux include: I imagined this working in vim mode but perhaps it could work in non-vim mode with a keybind. |
Howdy! 😄 I wanted to share some further "prior art" on this style of (n)vim navigation:
Would love to see it in Zed ❤️ and thank you for this awesome editor 🙏 |
As awesome as zed already is, integrating something like this, even as an extension, would lift it to another level :) Hope it happens. |
Is this possible to add via an extension? Would prefer core ideally but I'd be happy to look into writing a plugin |
also wait this feature |
yeah, maybe try to do this ? |
for start - we can create 1 feature - "jump in all creen" |
As it seems, extensions don't support this kind of functionality |
why ? i don't undeerstand |
Not sure but see the other related issues, they denied a PR for this functionality too
…----
Sulaiman Khan Ghori ( https://skg.gg/ ) | X ( https://x.com/sulaimanghori )
----
On Sun, Nov 24 2024 at 1:27 AM, Kirill Novgorodtsev < ***@***.*** > wrote:
>
>
> As it seems, extensions don't support this kind of functionality
>
>
why ? i don't undeerstand
—
Reply to this email directly, view it on GitHub (
#14801 (comment)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AGZNIXGHVRL3GR4JLBURVOL2CGLZZAVCNFSM6AAAAABLEJGF3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVHA4DQOBUHA
).
You are receiving this because you commented. Message ID: <zed-industries/zed/issues/14801/2495888848
@ github. com>
|
Check for existing issues
Describe the feature
Flash lets you search and jump to Text inside a file by appending jump labels as you type search text.
it is an incredibly fast way to jump the cursor to specific places and would be an excellent addition to vim mode in Zed.
The text was updated successfully, but these errors were encountered: