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

Fast cursor positioning by label #449

Closed
1 task
DreamMaoMao opened this issue Dec 15, 2023 · 5 comments
Closed
1 task

Fast cursor positioning by label #449

DreamMaoMao opened this issue Dec 15, 2023 · 5 comments
Labels
feature New feature request

Comments

@DreamMaoMao
Copy link

DreamMaoMao commented Dec 15, 2023

Is your feature request related to a problem? Please describe

2023-12-15_16-17
At present, the efficiency of line-by-line jump is too low. If yazi can input labels to jump to any position of any three views, it will greatly speed up the positioning efficiency

Will you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

When the user presses a command, such as f, it turns on the TAB jump mode, then displays a TAB for all directories and files, and then jumps to them by typing the TAB, like surfingkeys plugin in Google Chrome or flash plugin in nvim

Effect display:

2023-12-15.16-02-14.mp4

refer:
https://github.com/folke/flash.nvim
https://github.com/brookhong/Surfingkeys

Describe alternatives you've considered

No response

Additional context

No response

@DreamMaoMao DreamMaoMao added the feature New feature request label Dec 15, 2023
@sxyazi
Copy link
Owner

sxyazi commented Dec 16, 2023

Hmm I think this is a bit beyond the scope of a file manager.

Do you want to implement it as a Lua plugin once Yazi's plugin system is ready? - We can discuss adding some generic Lua APIs to Yazi that would be necessary for implementing this feature.

@DreamMaoMao
Copy link
Author

Well, that's just a bold suggestion, and if you don't think he's that useful, then let's close it

@sxyazi
Copy link
Owner

sxyazi commented Dec 16, 2023

Well, but let me clarify that I never consider it "useless" - in fact, it's a very useful extension for specific users.

Just saying it doesn't belong to the baseline of a file manager, just like Neovim doesn't natively integrate flash.nvim but allows such plugins to exist and provides the necessary API for them.

@DreamMaoMao
Copy link
Author

DreamMaoMao commented Dec 16, 2023

no,My idea is to make it work directly on yazi, so that it will work regardless of whether you use nvim or not. Is there documentation for yazi plugin development? Is it possible for a plug-in system to do such a job?

By the way, does yazi's plugin system support other languages for development, since I don't use rust,
Like py,c++,c,go,js,lua. If yazi supports developing plugins by these languages, I should be able to make a plugin for it

Copy link

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants