Addendum: could you add option to select only lines / whole lines and option to select them by clicking on line number? Only now I noticed there is a pop-up when selecting source itself.
Robin Shenchanged state to 'Closed'2 years ago
Previous Value
Current Value
Open
Closed
Robin Shen commented 2 years ago
OneDev always uses mouse to select regions. To select a line, triple click the line. Adding separate logic to select lines will complicate things unnecessarily.
wojtek commented 2 years ago
YMMV but not being able to select particular line is quite counterintuitive, but that may be an aftermath of almost all git-related services using it to select line.
It's quite convenient in other services to be able to link directly to particular line in source code (or even range or lines) which scrolls directly (and even highlights it), for example on GitHub: https://github.com/theonedev/onedev/blob/main/server-core/src/main/java/io/onedev/server/CoreModule.java#L357-L367 or https://gitlab.com/gnachman/iterm2/-/blob/master/iTermMinimalComposerViewController.h#L13-L17