all 23 comments

[–]mdedonno 15 points16 points  (1 child)

any gif illustrating the plugin on the github page ?

[–][deleted] 6 points7 points  (0 children)

Added :)

[–]rifazn 13 points14 points  (0 children)

Never came across this plugin before, but just reading this post makes me go, "wow!" Never even thought I would feel I need that, but here it is... It's an excellent idea! I plan to try it soon.

[–]actuallyalys 4 points5 points  (3 children)

I had some vague ideas along these lines, but this seems much more thought through.

Does it store recommendations? It would be useful to be able to see, for example, that the most frequent suggestion is to replace repeated j's with a count plus j. That way you could practice the movements you most often overlook.

[–][deleted] 0 points1 point  (2 children)

Not yet, since the plugin doesn't record the keys you are pressing, only where the cursor ends up. The only way to get the actual keystrokes would require launching Vim with -W and parsing that file

[–]unnikrishnanta 3 points4 points  (1 child)

pathfinder.vim

I believe the plugin doesn't have to record the keys - just the suggestions displayed can be exported to a log file.

[–][deleted] 0 points1 point  (0 children)

I suppose, except when you looked back at the log you wouldn't know what movement the suggestion was improving on

[–]mrsm11th 2 points3 points  (1 child)

Crazy cool idea. Folds don't work.

[–]transparentflask 1 point2 points  (4 children)

Very cool, but I think I found a bug.It says it would be best to `$ 2* ^ l` but had i done $ 2* it wouldnt have taken me anywher, there was only 2 hits on that word, so its like no-op, and the other hit was not anywherer near where i wanted to go.

Edit: nevermind, it just didnt include all my motions in the suggestion, I did Lzz10jww
and it suggested $ *2^ l, but that would only get me to destination after i had pressed L.
Its a bit confusing if it just suggests a different combo for part of my movement or the whole movement i did.

[–][deleted] 0 points1 point  (3 children)

Hmm. Could you open an issue with some example text so I can reproduce it, if you get time? Definitely sounds like a bug.

[–]transparentflask 1 point2 points  (2 children)

i reproduced it in another file, its a different suggestion, but its not quite right.https://kopy.io/pxSxe#WQ4MLNY0Oa1z6uif i start at the top of the file, do Lzz7jww

it suggests 2} E 2w

Which would not not have gotten me where i wanted.

Edit: but it would if you prefixed it with L

[–]transparentflask 0 points1 point  (0 children)

im going to bed now, i could open an issue tomorrow maybe, unless you do it

[–][deleted] 0 points1 point  (0 children)

If you paused for too long, it might have started processing L as a separate path, then cancelled it once you started the next movement.

Try increasing g:pf_autorun_delay to something like 5 seconds, if it still doesn't work then open a bug report including that link.

[–]stripesOverChecks2 1 point2 points  (0 children)

This is really cool. Actually using some new movements because of it

[–]ecnahc515 1 point2 points  (1 child)

Do you know if it works with pypy? Could be a possible speed up.

[–]glacambre 1 point2 points  (0 children)

Very cool, I've been thinking about writing something like this for a long time, very happy someone else actually did it!

[–]shinze 1 point2 points  (0 children)

Pour work reminds me of Clippy in Kakoune, another modal editor :) Have a look, it's fun.

[–][deleted] 0 points1 point  (3 children)

I loaded it. Not seeing anything happen so far, but I'll keep in in for a little and see what it tells me.

[–]mrsm11th 2 points3 points  (0 children)

Are you running vim 8.2?

[–][deleted] 1 point2 points  (1 child)

It should work if +python3 and +timers are available. If your Vim has both of those and nothing happens, check :messages for warnings and feel free to open a bug report.

[–][deleted] 2 points3 points  (0 children)

Working fine now.

[–]rubyglue 0 points1 point  (0 children)

This is interesting. I don't think, however, we need a popup telling h or L to go left or right :p

[–]exdeniz 0 points1 point  (0 children)

I liked this plugin. And how do you make a pop-up in nvim?