Bug 223893 - more intiutive handling of % in input line
Summary: more intiutive handling of % in input line
Status: RESOLVED WORKSFORME
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-23 08:50 UTC by Emil Obermayr
Modified: 2010-01-24 16:56 UTC (History)
1 user (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 Emil Obermayr 2010-01-23 08:50:52 UTC
Version:            (using KDE 4.3.4)

Currently % is always sent "as is". Chatters that do not need colors and that are not used to  find this quite confusing. For example when pasting encoded URLs or when talking about statistics.

I think a special handling for the color coding would be a good idea. Maybe with an checkbox option in the mouse menu to "auto escape" all % to %%.

Maybe this could be done with auto replacement. But then this should work with pasted text as well. See also
#223891
Comment 1 Eike Hein 2010-01-23 16:45:17 UTC
> Currently % is always sent "as is".

Sorry, I don't understand what this means. Could you please rephrase?


> For example when pasting encoded URLs [...]

It's hard to react to this without understanding your first sentence, but guessing that you have a problem with formatting codes like %B being interpreted in URLs: Konversation used to automatically replace % with %% when pasting text, for the last five years or so, to avoid this problem (%%B escapes %B / %% is generally turned into % on sendout). This was changed for Konversation 1.2 due to complaints, which however meant this problem with %B etc. in URLs returned. That's why as of Konversation 1.2.1, the variable expansion code automatically skips over any URLs, i.e. %B in URLs and similar is no longer interpreted.


> I think a special handling for the color coding would be a good idea.

Unless this changed, sending a message with Alt+Return/Enter should (a) cause the command char ("/" by default) at the start of the line to be ignored, (b) variable expansion to be deactivated, (c) auto-replace to be deactivated.
Comment 2 Emil Obermayr 2010-01-23 17:56:57 UTC
Sorry for the missunderstanding... I should have looked in the /raw log before.

Currently the % is used to encode the color codes which are then interpreted to as some control-codes. This messes up pasting URLs that contain % for umlaut encoding. Using ALT-ENTER does not help here.

Currently I am using v1.2 . I look forward to 1.2.1 then. 

Nevertheless I think it might be a good idea to have an option to switch off the special handling of % at all. In many chats color codes are not usefull or allowed at all.
Comment 3 Eike Hein 2010-01-23 18:05:12 UTC
> I look forward to 1.2.1 then. 

Note that 1.2.1 was released November 2009.


> Nevertheless I think it might be a good idea to have an option to switch off
the special handling of % at all.

That does exist :). Settings -> Configure Konversation -> Behavior -> Chat Window -> [x] Disable variable expansion
Comment 4 Emil Obermayr 2010-01-24 16:56:47 UTC
uhm ... *blush*

.oO( it was not there a minute ago, I swear ...)

Ok, I will have a look at 1.2.1 then when Ubuntu will ship it.