Am I the only one frustrated by copy and paste adding increasing amounts of leading whitespace with successive lines, copying from Konsole to MCedit running in a neighbor Konsole tab? I often get this:
# inxi -S System: Host: ab85m Kernel: 5.10.75-desktop-1.mga8 x86_64 bits: 64 Desktop: Trinity Distro: Mageia 8 mga8 # inxi -Ga Graphics: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0402 class-ID: 0300 Display: x11 server: Mageia X.org 1.20.12 driver: loaded: modesetting unloaded: vesa alternate: fbdev,intel display-ID: :0 screens: 1 Screen-1: 0 s-res: 2560x2520 s-dpi: 120 s-size: 541x533mm (21.3x21.0") s-diag: 759mm (29.9") Monitor-1: DP-1 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2") diag: 686mm (27") Monitor-2: HDMI-3 res: 2560x1080 hz: 60 dpi: 97 size: 673x284mm (26.5x11.2") diag: 730mm (28.8") OpenGL: renderer: Mesa DRI Intel HD Graphics (HSW GT1) v: 4.5 Mesa 21.2.4 compat-v: 3.0 direct render: Yes
when it should be like this:
# inxi -S System: Host: ab85m Kernel: 5.14.18-300.fc35.x86_64 x86_64 bits: 64 Desktop: KDE Plasma 5.23.3 Distro: Fedora release 35 (Thirty Five) # inxi -Ga Graphics: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics vendor: ASUSTeK driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0402 class-ID: 0300 Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: modesetting unloaded: fbdev,vesa display-ID: :0 screens: 1 Screen-1: 0 s-res: 2560x2520 s-dpi: 120 s-size: 541x533mm (21.3x21.0") s-diag: 759mm (29.9") Monitor-1: DP-1 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2") diag: 686mm (27") Monitor-2: HDMI-3 res: 2560x1080 hz: 60 dpi: 97 size: 673x284mm (26.5x11.2") diag: 730mm (28.8") OpenGL: renderer: Mesa Intel HD Graphics (HSW GT1) v: 4.6 Mesa 21.2.5 compat-v: 3.1 direct render: Yes #
FWIW, this is output from inxi v3.3.09 (released yesterday).
Felix Miata wrote:
FWIW, this is output from inxi v3.3.09 (released yesterday).
check your environment variables or settings. I have seen this in "vi" but do not remember what was exactly the setting to tweak. In any case it has to do with automatic formatting and nothing to do with konsole itself.
deloptes composed on 2021-11-24 07:01 (UTC+0100):
Felix Miata wrote:
FWIW, this is output from inxi v3.3.09 (released yesterday).
check your environment variables or settings. I have seen this in "vi" but do not remember what was exactly the setting to tweak. In any case it has to do with automatic formatting and nothing to do with konsole itself.
Check them for what? Automatic formatting of what? I don't often do anything that I know my change any environment settings from defaults. All my Debians use the same .bashrc. All my openSUSEs and Fedoras use a similar one, and my Mageias use another that's almost the same. It's happened in the last week on 3 machines' installations, Mageia, Fedora, and Debian. I'm routinely copying output from inxi, so this is most often when I notice it happen, but when I copy more than just from inxi at once it affects all that follows once it begins.
On 11/27/21 12:30 AM, Felix Miata wrote:
deloptes composed on 2021-11-24 07:01 (UTC+0100):
Felix Miata wrote:
FWIW, this is output from inxi v3.3.09 (released yesterday).
check your environment variables or settings. I have seen this in "vi" but do not remember what was exactly the setting to tweak. In any case it has to do with automatic formatting and nothing to do with konsole itself.
Check them for what? Automatic formatting of what? I don't often do anything that I know my change any environment settings from defaults. All my Debians use the same .bashrc. All my openSUSEs and Fedoras use a similar one, and my Mageias use another that's almost the same. It's happened in the last week on 3 machines' installations, Mageia, Fedora, and Debian. I'm routinely copying output from inxi, so this is most often when I notice it happen, but when I copy more than just from inxi at once it affects all that follows once it begins.
Felix,
Check your /etc/vimrc or ~/.vimrc and make sure autoindent is turned off. e.g. look for:
" automatically indent lines (default) " set noautoindent
You can uncomment the "set noautoindent" for vi globally (I do that in my ~/.vimrc). You can also just use the command ': set noai' in vim to turn it off.
I have seen konsole do this with vim active for --- well forever. It drives me nuts, so I turn autoindent off and if I need it, just type ': set ai' to turn it on when editing code.
That is likely the issue if vim is involved, if not -- I have no other guesses.
Check them for what? Automatic formatting of what? I don't often do anything that I know my change any environment settings from defaults. All my Debians use the same .bashrc. All my openSUSEs and Fedoras use a similar one, and my Mageias use another that's almost the same. It's happened in the last week on 3 machines' installations, Mageia, Fedora, and Debian. I'm routinely copying output from inxi, so this is most often when I notice it happen, but when I copy more than just from inxi at once it affects all that follows once it begins.
Felix,
Check your /etc/vimrc or ~/.vimrc and make sure autoindent is turned off. e.g. look for:
" automatically indent lines (default) " set noautoindent
You can uncomment the "set noautoindent" for vi globally (I do that in my ~/.vimrc). You can also just use the command ': set noai' in vim to turn it off.
I have seen konsole do this with vim active for --- well forever. It drives me nuts, so I turn autoindent off and if I need it, just type ': set ai' to turn it on when editing code.
That is likely the issue if vim is involved, if not -- I have no other guesses.
Vim definitely does this and it is nothing to do with Konsole, rather with vim setup as David explain (by the way there several ways to work around that David, see p, ]p, =p with vim-unimpared, :put.... you just need to google and try out).
Not sure about inxi, but it is quite possible it is something similar. You can try running it in an xterm and compare with Konsole to see if you spot any difference.
Cheers Michele
Michele Calgaro via tde-devels composed on 2021-11-28 12:14 (UTC+0900):
You can try running it in an xterm and compare with Konsole to see if you spot any difference.
How? One of the reasons I depend on Konsole is its menus that Xterm doesn't have, e.g. copy & paste.
Environments where the problem seems to be consistent are Mageia and Fedora.
On 2021/12/07 04:59 PM, Felix Miata wrote:
Michele Calgaro via tde-devels composed on 2021-11-28 12:14 (UTC+0900):
You can try running it in an xterm and compare with Konsole to see if you spot any difference.
How? One of the reasons I depend on Konsole is its menus that Xterm doesn't have, e.g. copy & paste.
Environments where the problem seems to be consistent are Mageia and Fedora.
You can use mouse+middle click to copy text. Or in vim you can copy from the system clipboard. You can of course do the comparison in some other terminal of your preference if needed.
Cheers Michele
Michele Calgaro via tde-devels composed on 2021-12-07 18:23 (UTC+0900):
Felix Miata wrote:
Michele Calgaro via tde-devels composed on 2021-11-28 12:14 (UTC+0900):
You can try running it in an xterm and compare with Konsole to see if you spot any difference.
How? One of the reasons I depend on Konsole is its menus that Xterm doesn't have, e.g. copy & paste.
Environments where the problem seems to be consistent are Mageia and Fedora.
You can use mouse+middle click to copy text. Or in vim you can copy from the system clipboard. You can of course do the comparison in some other terminal of your preference if needed.
I use trackballs that have no middle mouse buttons, Kensington and Logitech. Pasting into vim (36M for software I never use)(running in Konsole)(Shift-INS) produces same problem. Pasting into Xterm (Shift-INS) works as expected. Pasting into mcedit (Shift-INS) running in Xterm works as expected. Fedora 35 tested here.
David C. Rankin composed on 2021-11-27 14:35 (UTC-0600):
Check your /etc/vimrc or ~/.vimrc and make sure autoindent is turned off. e.g. look for:
" automatically indent lines (default) " set noautoindent
You can uncomment the "set noautoindent" for vi globally (I do that in my ~/.vimrc). You can also just use the command ': set noai' in vim to turn it off.
I have seen konsole do this with vim active for --- well forever. It drives me nuts, so I turn autoindent off and if I need it, just type ': set ai' to turn it on when editing code.
That is likely the issue if vim is involved, if not -- I have no other guesses.
I finally found installations with a .vimrc to remove (host big41, Mageia 7/TDE 14.0.9 & 8/TDE 14.0.11). Its removal didn't help, and there is no /etc/vim* in either.
To be clear, the editor I always use in mc is mcedit, the internal mc editor. I can't imagine what vim settings would have to do with it.
On 11/29/21 11:11 PM, Felix Miata wrote:
David C. Rankin composed on 2021-11-27 14:35 (UTC-0600):
Check your /etc/vimrc or ~/.vimrc and make sure autoindent is turned off. e.g. look for:
" automatically indent lines (default) " set noautoindent
You can uncomment the "set noautoindent" for vi globally (I do that in my ~/.vimrc). You can also just use the command ': set noai' in vim to turn it off.
I have seen konsole do this with vim active for --- well forever. It drives me nuts, so I turn autoindent off and if I need it, just type ': set ai' to turn it on when editing code.
That is likely the issue if vim is involved, if not -- I have no other guesses.
I finally found installations with a .vimrc to remove (host big41, Mageia 7/TDE 14.0.9 & 8/TDE 14.0.11). Its removal didn't help, and there is no /etc/vim* in either.
To be clear, the editor I always use in mc is mcedit, the internal mc editor. I can't imagine what vim settings would have to do with it.
Then it is something, perhaps where the text you are pasting is coming from. From kwrite to mcedit in konsole on 15.0, no problems:
https://paste.opensuse.org/18758362
Only other thought I would have would be if your indentations were actual 'tab' characters instead of spaces. (note that is a thought, guess, etc...) Pasting from code with spaces for indention seems to work fine.
aside:
(while we are on konsole, we need to update the xterm backend as the new xterm provides a multi-line write that some package managers are using that is not ANSI escape based that opensuse KDE3 hasn't been patched for -- and I suspect TDE is in the same boat) pacman (Arch package manager) is doing this now and konsole just kind of provides jittery output on a single line, rather than current and total on separate lines.)
On 2021-11-29 23:45:45 David C. Rankin wrote:
On 11/29/21 11:11 PM, Felix Miata wrote:
David C. Rankin composed on 2021-11-27 14:35 (UTC-0600):
Check your /etc/vimrc or ~/.vimrc and make sure autoindent is turned off. e.g. look for:
" automatically indent lines (default) " set noautoindent
You can uncomment the "set noautoindent" for vi globally (I do that in my ~/.vimrc). You can also just use the command ': set noai' in vim to turn it off.
I have seen konsole do this with vim active for --- well forever. It drives me nuts, so I turn autoindent off and if I need it, just type ': set ai' to turn it on when editing code.
That is likely the issue if vim is involved, if not -- I have no other guesses.
I finally found installations with a .vimrc to remove (host big41, Mageia 7/TDE 14.0.9 & 8/TDE 14.0.11). Its removal didn't help, and there is no /etc/vim* in either.
To be clear, the editor I always use in mc is mcedit, the internal mc editor. I can't imagine what vim settings would have to do with it.
Then it is something, perhaps where the text you are pasting is coming from. From kwrite to mcedit in konsole on 15.0, no problems:
https://paste.opensuse.org/18758362
Only other thought I would have would be if your indentations were actual 'tab' characters instead of spaces. (note that is a thought, guess, etc...) Pasting from code with spaces for indention seems to work fine.
aside:
(while we are on konsole, we need to update the xterm backend as the new xterm provides a multi-line write that some package managers are using that is not ANSI escape based that opensuse KDE3 hasn't been patched for -- and I suspect TDE is in the same boat) pacman (Arch package manager) is doing this now and konsole just kind of provides jittery output on a single line, rather than current and total on separate lines.)
This aside issue warrants an enhancement request in Gitea. https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/new
Leslie
-- Operating System: Linux Distribution: openSUSE Leap 15.3 x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.0.10 tde-config: 1.0
On 11/30/21 2:11 PM, J Leslie Turriff wrote:
This aside issue warrants an enhancement request in Gitea. https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/new
Leslie
Done:
https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/71