Bug 263004

Summary: kwrite: recognize urls like in konsole
Product: [Applications] kate Reporter: Aaron Lewis <the.warl0ck.1989>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: cullmann, hr.denzler
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Aaron Lewis 2011-01-13 07:35:43 UTC
Version:           SVN (using Devel) 
OS:                Linux

Hi , i would Kwrite to have ability to handle http / https url schemes , just like konsole does , when user selected some texts and from RegEx , it matches some web links , Kwrite offers and option for user to open link in KDE's default browser ( configured in system settings ).

Reproducible: Always
Comment 1 Hans-Rudi Denzler 2011-01-13 13:41:24 UTC
Enable klipper actions

or

you can write your own shell script for starting any command by marking e.g. 'cmd://kwrite'

#! /bin/bash
#
# /home/user/cmd
#
### BEGIN TESTCASES INFO
# > . cmd 'cmd://COMMAND [OPTION | ARG]... [FILE]...'
# cmd://kwrite
# cmd://kwrite z
# cmd://kwrite		"hello  gaga"
# cmd://kwrite "hello  gaga" "a  b"
# cmd://kwrite "hello  gaga"		"a  b"
# cmd://konsole --hold -e sh -c "pwd; ls -l cmd; ls -l $(which cmd)"
### END TESTCASES INFO

cd;
commandline=${1#*:\/\/};
statement='parameterArray=('$commandline')';
eval "$statement";
"${parameterArray[@]}" &

klipperrc:
[Action_1]
Automatic=true
Description=Befehl
Number of commands=1
Regexp=^[ \\t]*cmd://.

[Action_1/Command_0]
Commandline[$e]=cmd %s
Description=cmd 'cmd://COMMAND [OPTION | ARG]... [FILE]...'
Enabled=true
Icon=application-x-shellscript
Output=0
Comment 2 Aaron Lewis 2011-01-13 15:45:33 UTC
Err.. guess i'll just wait for the update , cos i'm not using klipper in
this case ...
Comment 3 Christoph Cullmann 2012-11-09 20:18:17 UTC

*** This bug has been marked as a duplicate of bug 93087 ***