hifi / monodevelop-justenoughvi

Deprecated, use XSVim instead for MD 7: https://github.com/nosami/XSVim
MIT License
17 stars 13 forks source link

v and ^v #16

Open nosami opened 8 years ago

nosami commented 8 years ago

only V works right now. Normal selection and block selection would be awesome.

fadookie commented 8 years ago

I'm quite interested in getting these working as well (especially blockwise visual), I might take this on at some point if it's possible.

hifi commented 8 years ago

v (lowercase) should work. Block mode is harder as you can't use the normal selection feature of MD to select multiple unconnected text ranges.

fadookie commented 8 years ago

Hm... so they don't expose an API for the built-in block selection? (https://mhut.ch/journal/2011/03/monodevelop_tips_block_selection_mode)

DavidKarlas commented 8 years ago

In theory you can either reimplement logic for selecting by copying parts of code from MonoDevelop or open PR against MonoDevelop repository with logic that exposes API that you need...

Blog post that you mentioned... This line changes setting: https://github.com/mono/monodevelop/blob/master/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs#L3400 look at rest of file where this setting changes behavior of selection logic...