monodevelop-justenoughvi icon indicating copy to clipboard operation
monodevelop-justenoughvi copied to clipboard

v and ^v

Open nosami opened this issue 10 years ago • 4 comments

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

nosami avatar Jan 27 '16 22:01 nosami

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.

fadookie avatar Jun 28 '16 15:06 fadookie

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.

hifi avatar Jun 29 '16 04:06 hifi

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)

fadookie avatar Jun 29 '16 06:06 fadookie

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...

DavidKarlas avatar Jun 29 '16 07:06 DavidKarlas