#919  Option to select/link directly to particular line in source code
Closed
wojtek opened 2 years ago

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

Robin Shen commented 2 years ago
wojtek commented 2 years ago

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

Would be nice to have it still :-)

issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#919
Please wait...
Page is in error, reload to recover