vimium-c icon indicating copy to clipboard operation
vimium-c copied to clipboard

ap and as in visual mode doesn't work in firefox

Open polt515 opened this issue 3 years ago • 4 comments

Describe the bug

as and ap in visual mode doesnt works as intended

To Reproduce

Steps to reproduce the behavior:

Browser name: Firefox
Browser version:  	102.0
Vimium C version: 1.98.3
OS name and version: Windows 11

polt515 avatar Jun 28 '22 17:06 polt515

What do you mean by as intended? Firefox doesn't expose the concept of sentences and paragraphs, so ap and as can only work like selecting a current line.

gdh1995 avatar Jun 28 '22 17:06 gdh1995

Um as seems to usually select a wrong start position. I'll try fixing it soon.

gdh1995 avatar Jun 28 '22 17:06 gdh1995

oh, I didn't know that Firefox doesn't recognize paragraphs and sentences, so I understand why ap doesn't work.

Thanks

polt515 avatar Jun 28 '22 17:06 polt515

Hello, v1.99.0 has been available on Firefox (Chrome and Edge versions are waiting for review), and on Firefox as should work.

gdh1995 avatar Aug 10 '22 09:08 gdh1995

Hello! I did not know that ap and as were supported shortcuts in visual mode. I'm not finding these two in this cheat sheet -- am I looking in the wrong place? Is there a good spot for all supported visual mode shortcuts?

Thanks for the great extension!

alon-to avatar Oct 30 '22 18:10 alon-to

Um it's not from VIM, while I made the 2 keys using the a prefix in aw and ae, p for paragraph and s for sentence.

A full list of all default key bindings in VisualMode is: https://github.com/gdh1995/vimium-c/blob/52163718d65a7f71d5a8d830a6e032de2f476e1a/background/key_mappings.ts#L789-L815

gdh1995 avatar Oct 31 '22 08:10 gdh1995