Retain tabs on cut & paste
When highlighting (copy) tabbed code from vi, when you paste tabs are converted to their space equivalent...
The problem here is that we can’t tell, as a teminal emulator, that those are tabs. Say the cursor is on the left-hand side of the screen. The editor (be it vi or another editor) needs to output 6 tabs before outputting text. It might send “\t\t\t\t\t\t”. But it might equally send “\x1B[24G”. Since the second options is one byte less, many editors (and other apps) will choose the second option. At that point, we can no longer say whether those 24 blank characters at the start of the line are tabs or not.
The best we can do here would be to provide a setting along the lines of “when multiples of spaces appear at the start of a line, convert them to tabs”. You could then set to the tab size you normally use.
How does that sound?
Sorry I was wrong it always converted tabs to spaces. We were having an issue with it putting space on the end of copied lines from the terminal window. I found the options to fix it under tools options sessions add cr/lf and detect line breaks that fixed it.
This is an issue for us as well. PenguiNet used to work fine for copy and paste.
Since the new release it's converting all the tabs to spaces. It's very annoying.
Please put back the old behavior.