Edgewall Software

Ticket #2528 (closed defect: duplicate)

Opened 3 years ago

Last modified 4 months ago

Code Selection: Line Numbers in CodeBrowser (CopyPaste Problem)

Reported by: anonymous Owned by: jonas
Priority: normal Milestone:
Component: version control/browser Version: 0.9.2
Severity: normal Keywords:
Cc:

Description

Hello,

Maybe you already fixed this. I am using 0.92.

This is very ugly if want to copy/paste code from the browser. The selection is always code & linenumbers and not only code.

--> look at koders.com

they have only 2 seperate <td>

-one for linenumbers -one for code -and the code newlines/linenumber newline made with <br> not <td>

like this you are able to copy paste code with or without linenumbers.

Cheers

Attachments

Change History

Changed 3 years ago by mgood

  • status changed from new to closed
  • resolution set to wontfix

The line numbering is done in the table rows so that long lines can overflow and extend the row while keeping the line numbers properly aligned. The plain text view can be used to select code without the line numbers.

Changed 11 months ago by progrium@…

I've been getting some requests for this as well since it feels completely unintuitive to go to plain text view to copy and paste. There's a trick that friends at userscripts.org are using that I'll look into for Trac that lets you select the code with line numbers and not let the numbers get into what you copy.

Changed 11 months ago by cboos

  • status changed from closed to reopened
  • resolution wontfix deleted
  • component changed from general to browser
  • milestone set to 0.11.1

I wonder also if we wouldn't be able to gain some speed here. Currently, looking at > 100Kbytes files is a bit of a pain.

I think it's worth experimenting the alternatives a bit.

Changed 4 months ago by cboos

  • status changed from reopened to closed
  • resolution set to duplicate
  • milestone 0.11.2 deleted

See #7055, when the line number column is hidden, the code can be easily copied without the line numbers.

Add/Change #2528 (Code Selection: Line Numbers in CodeBrowser (CopyPaste Problem))

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.