Boris Faure
e5f3676e32
termio: fix getting selection of known link. CID1367486
2016-12-20 20:20:34 +01:00
Boris Faure
f3dd6f62fb
termpty: Tab markers are the same for each line. Ref 4992
2016-12-18 18:48:03 +01:00
Boris Faure
5af5ec084e
termio: do nothing special when extracting text and .tab is set
2016-12-15 23:11:22 +01:00
Boris Faure
45539d433c
termio: small cleanup
2016-12-06 23:49:03 +01:00
Al Poole
8dd7aefcb4
Fix bogus hack and restore cursor position to its right place. On OpenBSD and DragonFly the cursor is being incorrectly placed. Seems there was a Linux workaround too. My guess is this will fix that also.
...
Summary: Should help anyway.
Reviewers: billiob, raster
Differential Revision: https://phab.enlightenment.org/D4465
2016-12-06 23:42:10 +01:00
Marcel Hollerbach
786dd890cc
termio: dont show full/relative for emails or protocols
...
if there is a link like bu5hm4n@efl.so or http://enlightenment.org/ , then
there is no need to show relative or absolut coping in the ctxpopup,
just copy is enought.
2016-11-20 20:51:21 +01:00
Boris Faure
8658ea9d57
termio: fix leak. CID1365971
2016-11-19 11:02:57 +01:00
Marcel Hollerbach
ddbdd96349
add copy link item in rightclick menu
...
Summary:
this will just copy the link content instead of the resolved link.
Makes the link detection feature also useable for ssh/tmux/screen
session.
Test Plan: Hover over a link and rightclick
Reviewers: billiob
Differential Revision: https://phab.enlightenment.org/D4217
2016-11-17 20:04:50 +01:00
Boris Faure
55db8930b2
termio: elm_layout_add() expects and elm widget
...
This should remove the noisy message:
ERR<21781>:elementary lib/elementary/elm_widget.c:1130
elm_widget_sub_object_parent_add() You passed a wrong parent parameter
(0x400000089000008a termio). Elementary widget's parent should be an
elementary widget.
2016-11-15 20:29:17 +01:00
Boris Faure
c41fc2a56e
sb: add some utilities like prepend, free, steal…
2016-11-06 19:45:05 +01:00
Boris Faure
dab654c278
termio_link_find() is not static, remove its '_' prefix
2016-11-06 13:03:19 +01:00
Boris Faure
d47b350e8c
ty: add sb.{c,h} (was in termio.c)
2016-11-06 11:42:17 +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
b7817a88b3
keys: add Shift+Home to get to the top of the backlog. Closes T3582
2016-05-31 21:34:44 +02:00
Arnout Engelen
4e5a07e795
Check if the font size really needs to be changed
...
Changing the font size also causes the current selection to be lost, so it's
nice to avoid it when not needed.
2016-05-26 17:57:46 +02:00
Boris Faure
bd769a926b
configure.ac: actually look for elm_win_teamwork_show() to know if available
2016-05-21 22:29:38 +02:00
Mike Blumenkrantz
f1e1a6edd8
upgrade to teamwork v2, remove dbus (v1) usage
2016-05-20 15:37:55 -04:00
Boris Faure
d9276909a4
add option to enable bold/italic (on by default)
2016-03-18 20:04:10 +01:00
Boris Faure
629e604704
termpty_cellrow_get() might return NULL. CID1352819
2016-03-12 17:23:37 +01:00
Boris Faure
8d0e13eff9
ensure CWD is NULL-terminated. CID1352820
2016-03-12 17:11:01 +01:00
José Roberto de Souza
ae7e96633a
Allow user to set the title of the each tab
2016-03-04 11:34:24 -03:00
Boris Faure
b74cfc752a
do not append \n at end of box selection
2016-02-07 18:15:00 +01:00
Boris Faure
bed1532e19
remove callbacks early when pty exists
2016-02-02 23:34:54 +01:00
Boris Faure
1100f4d964
do not use edje cb when term quits. Closes T3105
...
Also reorganize the code a bit
2016-02-02 23:15:50 +01:00
Andy Williams
ca96a35da7
[zoom] Smooth the scaling of fonts when zooming
...
Capture font size when gesture begins and correctly
update scale based off that until gesture ends.
Test plan:
1) hold Ctrl and scroll the mouse wheel in then out
in a single motion
2) notice zooming continues in initial direction
and accelerates towards the min or max
With patch it will adjust more smoothly and also
match the current zoom of the gesture.
@fix
2016-01-29 14:27:26 +00:00
Boris Faure
4367b4ceb6
fix selections (again and again) of single-char words
2016-01-27 21:08:45 +01:00
Boris Faure
84c1c77757
oops. Always use curly braces…
2016-01-27 20:17:15 +01:00
Boris Faure
98671b2493
fix one-char selections
2016-01-27 12:49:24 +01:00
Mike Blumenkrantz
7f53f4daf7
do not force full textgrid width update if preedit_str is ""
...
in many cases this will be the value which has been set, so ignoring it
will yield moderate performance improvements
Reviewed-by: Boris Faure <billiob@gmail.com>
2015-12-15 17:30:02 -05:00
Boris Faure
4c53f10bf0
do not right trim "." on word selection
...
this makes double click on "../foobar"
2015-09-20 15:42:28 +02:00
Boris Faure
9c4167f74f
always support double-width
2015-09-19 16:23:41 +02:00
Boris Faure
2b3eda694f
always support italic
2015-09-19 16:18:17 +02:00
Boris Faure
cb531b5d9b
correctly set bold, even if textgrid do not support it (yet)
2015-09-06 23:52:43 +02:00
Boris Faure
22ae02127b
fix copy/paste bug. CID1316546
2015-09-01 23:45:18 +02:00
Boris Faure
45b7d20425
trim selection before trying to open it as url
2015-08-24 23:45:14 +02:00
Boris Faure
cf58c1ee76
add context menu to open a selection as an url. Closes T584
2015-08-24 23:09:24 +02:00
Boris Faure
144e0b5068
add option to disable terminology escape codes that could be considered
...
security issues by some
They are enabled by default.
2015-08-23 20:57:49 +02:00
Boris Faure
5c9d98cf22
add error handlers on textblocks. Should fix T2672
2015-08-23 16:41:15 +02:00
Boris Faure
1400b122ec
bad copy/paste. CID1316546
2015-08-18 22:37:10 +02:00
Boris Faure
a33a937ab7
add powerlines to word separators
2015-08-16 21:48:22 +02:00
Boris Faure
716cb03b5b
fix small issue on word selection and simplify code
2015-08-16 21:40:58 +02:00
godfath3r
8e8207dae1
Dont use : as a separator but trim it from selected word. Fixes T2602
...
Reviewers: billiob
Maniphest Tasks: T2602
Differential Revision: https://phab.enlightenment.org/D2931
2015-08-16 20:36:38 +02:00
Mike Blumenkrantz
8d4b06617f
use event length instead of strlen() when dropping something into a terminal
...
the data member of Elm_Selection_Data may not be nul terminated, so
any string operation on this is liable to crash
2015-08-13 14:46:02 -04:00
Boris Faure
7af60a58c8
BACKLOG_ROW_GET() should not be called with a "screen" value
...
the backlog is independent of the screen size. Thus a single line in the
backlog can span many lines on the screen.
2015-08-09 14:10:12 +02:00
Boris Faure
49be05a02f
do not expand window on zoom, resize the content. Closes T886
2015-08-06 22:40:19 +02:00
Boris Faure
3716c7ec51
apply zoom level/font size to all terms in a window
2015-08-06 21:53:14 +02:00
Boris Faure
8fbffdd869
renames to make the code more consistant
2015-08-03 20:44:55 +02:00
Boris Faure
35c8fd79c0
speed up browsing backlog
...
have a "beacon": single point where the link between an offset in the
backlog and one in screen coordinates
2015-08-03 20:44:55 +02:00
Boris Faure
34592ab5b3
new resize/backlog implementation. Closes T2461
...
idea: store full lines in the backlog. No need to change them on resize
2015-08-03 20:43:17 +02:00
Chris Michael
25ec6d06cb
terminology: Fix formatting
...
NB: No functional changes
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-22 12:24:33 -04:00
Chris Michael
23045a08a7
terminology: Fix formatting
...
NB: No functional changes, just formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-22 11:42:46 -04:00
Boris Faure
a07a63048c
fix crash from object being swallowed twice. Closes T2463
2015-06-11 23:55:35 +02:00
Boris Faure
1ad8055d28
remove useless termio_theme_get()
2015-06-11 22:29:53 +02:00
Boris Faure
566033f78d
do not remove links when there is a popup due to such link
2015-06-03 23:03:07 +02:00
Boris Faure
7b72052773
remove callbacks when deleting termio
2015-06-02 23:23:56 +02:00
Boris Faure
231ff2514a
fix focus issue with ctxpopup. Closes T2455
2015-05-31 17:38:02 +02:00
Boris Faure
be62d87f89
separate "termstate" from cursor state and screens. Closes T725
2015-04-23 20:02:53 +02:00
Boris Faure
c2b26e0999
fix selecting tabs
2015-04-18 23:12:39 +02:00
Boris Faure
0e18a185fe
correctly handle empty lines when doing selections
2015-04-18 22:44:42 +02:00
Boris Faure
52ceae82b1
add meta/hyper to key bindings. Closes T1985
2015-04-13 21:37:09 +02:00
Boris Faure
7e4276c033
right click on a selection shows popup to copy it
...
Closes T2246
2015-04-05 12:14:46 +02:00
Boris Faure
29cf913951
termio: make code more readable. Closes CID1291865
2015-03-29 18:45:00 +02:00
Boris Faure
0895a1e608
should set "hand2" cursor on links but doesn't work
2015-03-18 18:21:23 +01:00
Boris Faure
4abdf4b327
code cleanup: s/if (X) free(X);/free(X);/
2015-03-18 15:23:39 +01: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
2de1cd87b6
pid_t can be long (on solaris)
2015-02-23 21:51:28 +01:00
Boris Faure
be30c069f3
close media popup on escape
2015-02-21 12:24:28 +01:00
Boris Faure
76e9ae6481
do an HTTP HEAD to get media type when poping media
2015-02-21 11:40:10 +01:00
Boris Faure
ca2d7846a9
fix normal selection after box selection
2015-02-19 23:30:28 +01:00
Boris Faure
f80d9634e3
fix selection when backscrolling and new content arrives
...
Thanks to Davide Andreoli for the bug report
2015-02-16 22:15:00 +01:00
Boris Faure
feccb7bcab
fix single line selection with ctrl down
2015-02-16 20:50:13 +01:00
Boris Faure
296cdcd102
usual round of fixes to make it compile with efl 1.7
2015-02-14 12:08:50 +01:00
Boris Faure
cf1c8f7c02
move selection when content underneath scrolls
2015-02-13 22:59:56 +01:00
Boris Faure
168395c3e6
revalidate links when scrolling due to mouse wheel. Closes T2111
2015-02-13 22:58:41 +01:00
Boris Faure
337fd3bdb1
minor selection fixes
...
do not consider "click + shift click" if there was a focus out in the
meantime.
disable selection on click when app steals the mouse
2015-02-10 23:55:25 +01:00
Boris Faure
cc6b11a6f5
make selection scroll when at the edge of the terminal. Closes T1944
2015-02-06 22:31:51 +01:00
Boris Faure
f0151cecf2
consider "blocks" as word separators
2015-02-06 22:10:10 +01:00
Boris Faure
26f2607095
select links as words. Closes T2038
2015-02-06 22:10:10 +01:00
Boris Faure
5a9dcf1ed3
do not apply extend fix when selection is box
2015-02-06 22:10:10 +01:00
Boris Faure
788f3e7eb7
rewrite selection system. Closes T1893
2015-02-06 22:09:52 +01:00
Boris Faure
6a2b3ae871
selection: add click then shift-click
2015-02-06 20:48:03 +01:00
Boris Faure
d18a47c5c6
selection: be able to "continue" a selection to a line with shift+triple-click
2015-02-06 20:48:03 +01:00
Boris Faure
da474a4c68
cleanup _sel_set() api
2015-02-06 20:48:03 +01:00
Boris Faure
e94051dd86
make selection consistent when selecting space with no text. Closes T2013
2015-01-30 00:24:55 +01:00
Boris Faure
bfa9cd30e7
fix shadowed variable
2015-01-11 13:48:05 +01:00
Carsten Haitzler
0104ce64a9
input methods - display preedit text inside grid - makes it work on wayland
...
@fix - this makes preedit text while composiing display within
terminology like elm entry and edje entry do. no overlayed preedit
window/box. this means that the pre-display has to be done by
terminology, which this does, but it means wayland now can display
preedit strings in terminology like in elm/edje entries too.
2015-01-07 22:35:49 +09:00
Carsten Haitzler
3ad611a828
Revert "top-level tabs"
...
This reverts commit c6b5d0798f
.
2014-12-03 08:42:46 +09:00
Boris Faure
c6b5d0798f
top-level tabs
2014-11-29 22:05:18 +01:00
Boris Faure
2568c50a40
set media type as an enum
2014-10-15 21:44:58 +02:00
Boris Faure
c7f71d75e8
termio: cleanup some termio_config_get() uses
2014-10-15 21:44:58 +02:00
Boris Faure
e8050e6e28
gravatar: use a tooltip
2014-10-15 21:44:58 +02:00
Boris Faure
f3a0e92e56
very early work on gravatar integration
2014-10-15 21:44:58 +02:00
Boris Faure
32fb73b733
termio: clean up _update_link()
2014-10-15 21:44:58 +02:00
Boris Faure
6f27cdc3ec
key bindings now support the win key
2014-09-30 22:07:28 +02:00
Cedric BAIL
16fa4ff0c3
termio: add '|' to the list of word separator.
2014-09-24 15:28:21 +02:00
Boris Faure
0fe0007e42
grr, fix previous commit. Thanks again to Godfath3r
2014-09-23 22:10:12 +02:00
Wonguk Jeong
6c8af4f82c
media: fix replay on stop bug in tycat
...
even if stop button in media control has been clicked, media is not stopped but is replayed in tycat
Fixes T1560
2014-09-15 12:01:22 +02:00
Boris Faure
2f9532d28c
store keybindings in a hash map
2014-09-02 20:42:45 +02:00
Boris Faure
34979f1ce4
get rid of Eina_Bool in bitfields
2014-08-28 21:04:00 +02:00
Boris Faure
1ef2fbb8a3
refactor keys handling in termio: move to keyin, 2nd round!
2014-08-22 21:54:04 +02:00