Bug 263004 - kwrite: recognize urls like in konsole
Summary: kwrite: recognize urls like in konsole
Status: RESOLVED DUPLICATE of bug 93087
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: SVN
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 07:35 UTC by Aaron Lewis
Modified: 2012-11-09 20:18 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 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 ***