Commit Graph

40 Commits

Author SHA1 Message Date
Boris Faure 6f1a2dd452 constify 2017-07-06 21:37:56 +02:00
Boris Faure afe4b928bc improve link detection when stored in xml
example:
<url>https://terminolo.gy/</url>
2016-12-25 18:18:16 +01:00
Boris Faure 6957ecb642 link detection: rewrite moving around the grid
There are difference between the grid and the backlog.
In the backlog, full lines are stored (and thus can be larger than the
width of the terminal).
2016-11-17 23:30:57 +01:00
Boris Faure cea49794a0 termiolink: hopefully fixes segfault. Closes T4896 2016-11-15 22:28:27 +01:00
Boris Faure 234fe507f4 termiolink: add missing break 2016-11-11 12:38:54 +01:00
Boris Faure ed406c4579 termiolink: safety on ty being not NULL. CID1365660 2016-11-08 21:17:48 +01:00
Boris Faure 93eb6e6663 termiolink: check return of ty_sb_prepend(). CID1365659 2016-11-08 21:15:42 +01:00
Boris Faure 57c811ce9b termiolink: handle OOM. Fix CID1365658 2016-11-08 21:13:21 +01:00
Boris Faure 0cbaaeec9d link: rewrite link detection to be more efficient 2016-11-06 20:04:02 +01:00
Boris Faure dab654c278 termio_link_find() is not static, remove its '_' prefix 2016-11-06 13:03:19 +01:00
Boris Faure 76f1bf4342 prefix EINA_UNUSED parameters with an underscore
and fix related issues
2016-10-05 22:00:22 +02:00
Boris Faure db471aec09 correctly fix coverity issue found in termiolink.c 2015-08-10 00:28:33 +02:00
Boris Faure 3738402a9d fix wrong condition. CID1315743 2015-08-09 14:19:50 +02:00
Boris Faure 16c184a9d2 fix link detection on links starting at first char of the screen.
Closes T2438
2015-05-27 23:20:08 +02:00
Boris Faure 688bf414e4 right trim selections
Also add a (near-dumb) string buffer abstraction because working with
Eina_Strbuf, an opaque structure is a PITA.
2015-03-08 20:22:44 +01:00
Boris Faure 4cad406233 remove dead assignment 2015-02-11 21:42:19 +01:00
Boris Faure 572c4cfce4 fix uninitialized scalar variable (CID1224271) 2014-07-01 08:10:36 +02:00
Boris Faure 371b402947 fix link detection on end of lines 2014-06-30 21:48:55 +02:00
Iván Briano 2b1521888f Fix wrong copy/paste/replace
Long ago, a very wise wizard said that it's a good idea to match
delimiters to their corresponding endings, so let's do that, mmmkay.
2014-04-17 16:58:43 -03:00
Boris Faure 30392f23a9 s/__UNUSED__/EINA_UNUSED/g 2013-08-27 15:36:50 +02:00
Boris Faure 22be3b7609 fix dbus signatures 2013-06-15 23:51:03 +02:00
Boris Faure 6d8c81050e change dbus link_detect to mousein/out 2013-06-15 23:37:10 +02:00
Boris Faure f1c3bf52ca use dbus to tell e.TeamWork whenever a link is detected
This was requested by the crazy e18 release manager.
2013-06-15 22:47:09 +02:00
Boris Faure 3ed65bbcdc links: isspace() \ { \n, \r } as separtors 2013-06-15 22:38:59 +02:00
Boris Faure 1f069a2fbe cleanup and fix _termio_link_find(); 2013-06-06 23:02:32 +02:00
Boris Faure ba9467d780 termiolink: minor optimization 2013-06-04 23:08:05 +02:00
Boris Faure 21cd9d5cec fix link detection when hover the h in ttp:/…
When the separator in the left is found, we may only have ' ht' so far.
2013-06-02 18:52:28 +02:00
Boris Faure 17a70c5ba2 fix detecting link on last char of a backscroll line 2013-05-21 21:47:22 +02:00
Boris Faure 034d4cf9de termio_selection_get() set length of the string returned
Also fix possible segfault in _termio_link_find().
2013-05-21 21:45:34 +02:00
Carsten Haitzler 52b938fedc fix file path link detect.
SVN revision: 81685
2012-12-25 01:15:56 +00:00
Carsten Haitzler 2c18ec8ba2 revert! broke terminology build completely.
SVN revision: 78312
2012-10-22 02:12:55 +00:00
Flavio Vinicius Alvares Ceolin 0dcc9e2044 Using the edje_codegen to handle with the theme
Using the code generated to handle the parts of the
edj file. Trying to avoid mistakes with the parts names and
make the code more independent from the theme (the parts can
change the name since it maintaining the same api)



SVN revision: 78271
2012-10-19 22:04:01 +00:00
Gustavo Sverzut Barbieri f4c02d3e95 add termio_cwd_get(), may be useful in future.
When we add multiple tabs or windows, it may be useful to get the cwd
to keep context (konsole does that).



SVN revision: 77664
2012-10-09 17:32:29 +00:00
Gustavo Sverzut Barbieri 0a4938a4f2 utils: add and use homedir_get()
SVN revision: 77663
2012-10-09 17:20:27 +00:00
Gustavo Sverzut Barbieri 84d381344a big time improvement: relative paths: ~/file, ./file and ../file
The current working directory is assumed to be the cwd of our shell
pid, discovered from /proc/$PID/cwd link.



SVN revision: 77662
2012-10-09 17:09:26 +00:00
Gustavo Sverzut Barbieri 08e164ce10 casestartswith() macro to help strncasecmp() with static comparison.
SVN revision: 77654
2012-10-09 15:14:24 +00:00
Gustavo Sverzut Barbieri 2a0e0fd2b4 refactor url handling.
there are still some left to be done, will come to it later.



SVN revision: 77653
2012-10-09 15:11:09 +00:00
Gustavo Sverzut Barbieri 5bfed09e13 just highlight emails with domains containing a period.
While a domain "localhost" is valid, it's very annoying as most PS1
prompts are in the form 'user@hostname' and terminology will highlight
them. To avoid so just create links for user@hostname.something



SVN revision: 77647
2012-10-09 14:50:01 +00:00
Carsten Haitzler 7bce758c1d small patch - make `xxxxyyy...xxx' quotes detected by link checker too.
SVN revision: 74308
2012-07-23 08:11:42 +00:00
Carsten Haitzler 89251d17d7 factor out link finding algorithm to its own file.
SVN revision: 73800
2012-07-13 09:12:01 +00:00