metaseed / metaGo

MetaGo provides fast cursor movement/selection for keyboard focused users in vscode
MIT License
326 stars 20 forks source link

Feature Request: implement "clever-f-like" functionality #73

Closed macintacos closed 3 years ago

macintacos commented 3 years ago

There's a plugin I use in Vim all the time called clever-f, and every time I come back to VSCode I miss it. I wonder if adding something like it here is something that fits with this project.

How I imagine it working is:

Thoughts on implementing something like this?

metasong commented 3 years ago

intresting! let me have a look!

metasong commented 3 years ago

@macintacos I guest what you want is the command to repeat-forward and repeat-backward.

I'm planning to bind. alt+. two times(hold alt and press . 2 times) for repeat last search forward, and alt+, 2 times to repeat last search backword. it also works for the selection and deletes commands [how to define the backward/forward location? considered that the location could be defined by multiple chars]

additional I'm planning: after the decorators showed on screen, the user could press alt+. or alt+, to navigate/select/delete by the location of the decorators, until the user press Esc or types the decorators on screen Note: after decorators showed, the user could always continue typing chars to narrow down the searching range.

any suggestion?

metasong commented 3 years ago

still do not see value, after rethinking. if the user want to goto the location why not directly type the decorators on screen, but type several times to move backword/foreword to that location. so would not implement this feature. @macintacos there may some other use-case, I do not see, if there is, please let me know, I would open this issue for a while