ezkur / yad

Automatically exported from code.google.com/p/yad
GNU General Public License v3.0
0 stars 0 forks source link

Field Typ: URI #100

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
proposal

in --list, --form, etc.
field typ: URI
makes the entry "clickable"

example:
This would be helpfull to refer direct to an internet-link

(sorry for my bad english)

Original issue reported on code.google.com by ban...@spaml.de on 1 Dec 2011 at 11:37

GoogleCodeExporter commented 8 years ago
i thought this is impossible for --list, at least in a current realization, but 
for field labels or whole dialog text you may use markup with "a href=..." tag. 
for example

yad --text="this is the <a href=\"http://gnu.org\" title=\"gnu.org\">uri</a>"
yad --form --field="this is the <a href=\"http://gnu.org\" 
title=\"gnu.org\">uri</a>:LBL" 

Original comment by ananasik on 2 Dec 2011 at 5:10

GoogleCodeExporter commented 8 years ago
thank you for the answer.
"...at least in a current realization" but may be in the next version?! ;-)

ok - for one TEXT-column i use the "cdlick-action"-feature:

for example:
--dclick-action="$0 LINK" starts the original program and with
[ "$1" = "LINK" ] && shift && link_start "$@" && exit
link_start is a function:
xdg-open ${column#}

can the dclick-action "recognize" on which column the cursor stands (may be via 
"hoover")?

Original comment by ban...@spaml.de on 5 Dec 2011 at 9:31