brookhong / Surfingkeys

Map your keys for web surfing, expand your browser with javascript and keyboard.
https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc
MIT License
5.41k stars 482 forks source link

Keep Text Selection After Mode Change #2127

Open ming-cui opened 4 months ago

ming-cui commented 4 months ago

Text selections made in visual mode are lost when switching back to normal mode. This issue affects the ability to use web-specific shortcuts after making a selection.

Steps to Reproduce:

  1. Select text in visual mode using 'v-v'.
  2. Press 'v' to return to normal mode.
  3. Text selection is lost.

Expected Behavior: Text should remain selected after switching modes to enable further actions.

Thanks for looking into this!

TassdarZeratul commented 4 months ago

I have a workaround: press "cq", followed by "Esc", which will highlight a word, and then use "Shift + →" to move the cursor and select additional text.