Bug 394474 - Warning against paste of several lines treats equally 2 lines and 2 thousand lines
Summary: Warning against paste of several lines treats equally 2 lines and 2 thousand ...
Status: RESOLVED WORKSFORME
Alias: None
Product: konversation
Classification: Applications
Component: inputline (show other bugs)
Version: 1.6
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-20 13:59 UTC by Garreau, Alexandre
Modified: 2022-12-26 05:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Garreau, Alexandre 2018-05-20 13:59:11 UTC
When pasting several lines, Konversation issue a (disablable) warning for confirmation, since it (why?) is unable to distinguish pasted newlines from Return key press (unlike Emacs, Hexchat, Pidgin, etc.). However, since I often find acceptable to paste 2, 3, sometimes more rarely even a dozen of log lines or a bit more (at least on some channels), I did hit the checkbox to disable it, otherwise it became really noisy since I often paste 2-3 lines instead of using a paste service.

Also, on my thinkpad, I use the middle-mouse-button + trackpoint to scroll, sometimes, when I don’t move the trackpoint enough, or don’t press the middle button hard enough, it misinterprets it as a middle-mouse-button click, and paste primary selection, that can be *huge*, and that can happen often. Today, I pasted some thousands lines of an emacs buffer on the #emacs irc channel because of this, and because I disabled the warning, in order to being able to paste 2-3 lines, often on other channels, without additional noise.

I think, if not adding channel-wise configurability, this warning should really be about what it says “important quantities of text” instead of multiline input, since 2 lines is not that much, while several thousands is. The limit could be configurable, and the default could be of half a classical console height (the standard is 24 lines (for 80 columns, you know) I guess?)
Comment 1 Christian (Fuchs) 2018-05-20 14:32:10 UTC
Whilst 2 might be a bit low, >= 3 lines will get you banned in every single channel I am op in, so it's not that insane a default. Personally I recommend you use pastebin services for multi line pastes and, for the few cases in which you intentionally want to paste multiline, just dismiss the dialogue, which is fast and easy enough.
Comment 2 Garreau, Alexandre 2018-06-22 10:48:22 UTC
until 4-5 I never had any problems, especially if it’s text I may have typed myself (and sometimes I do, as I type more than I paste and type fast).

However not having anything based on size rather than lines still seems a lack for me… Ideally I’d like to have a behavior like hexchat where you don’t send until you did hit return, and where newlines are just printed as “unrecognized character” by the font… but a configurable or a second workaround would be cool… but it’s as you prefer it, anyway
Comment 3 Justin Zobel 2022-11-26 00:14:03 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-11 05:07:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-26 05:20:53 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!