-
Michal Steller authored
New TextEditor action for duplicating current selection. Extended version of this feature creates commented duplications. Possible use cases: 1. No selection, cursor anywhere in text - Duplicity line 2. Simple selection - Duplicity selection 3. Block selection, without columns - Duplicity lines 4. Block selection, with columns - Duplicity selection Cursor position and selection stays unchanged. Works well with Undo action. First use case with no selection looks similar as copyLineDown, but difference is that copyLineDown moves current cursor position and select created line. This feature don't change cursor position. Because of this difference it is not possible to integrate this additions with copyLineDown. Quick intro: https://youtu.be/Fv6WdCnCLpo Change-Id: I7c36fca6e17de030cbd22cfa103c2ed672deabbc Reviewed-by: David Schulz <david.schulz@qt.io>
768eb4e5