Commit Graph

237 Commits

Author SHA1 Message Date
Boris Faure fd38df3108 fix controls button "copy" not reflecting correct selection state 2013-12-01 16:49:35 +01:00
Boris Faure 0380b657c4 be able to do selections in a row
I do need to write some tests on all that selection mess…
2013-11-21 23:01:59 +01:00
Boris Faure c6af3675de fix "shift + dbl click" used to extend selection to a word.
imho, this feature is useless…
2013-11-21 22:45:32 +01:00
Boris Faure b149052d64 do not bring back a selection from the dead 2013-11-20 23:12:19 +01:00
Boris Faure e5efdabd27 do not send mouse tracking when ctrl/shift are pressed. Closes T39, T535
Do just like xterm. It uses them to show some popups.
Ctrl+mouse makes box selection.
2013-11-20 23:07:07 +01:00
Boris Faure 509a5d1a7b fix scrolling with selection on irssi in tmux. Closes T404 2013-11-18 22:30:26 +01:00
Boris Faure 35627a9395 remove useless code 2013-11-15 22:52:12 +01:00
Boris Faure 03802df2a9 simple click doesn't create one-char selection
(for real…)
2013-11-15 22:21:51 +01:00
Boris Faure 05ea863dc5 disable selection when resizing
because I don't want to deal with that for the moment
2013-11-14 23:24:45 +01:00
Boris Faure 997b83cad4 fix simple click producing one-char selection 2013-11-14 23:04:12 +01:00
Boris Faure 8c7dab9fdf remove selection when content selected changes 2013-11-11 18:08:02 +01:00
Boris Faure bc15fc6ff6 keep selection when scrolling 2013-11-10 22:13:19 +01:00
Boris Faure d682db21fb selection to the edges scrolls 2013-11-10 18:16:39 +01:00
Boris Faure 90d3bf483c fix stretching selection 2013-11-10 18:16:39 +01:00
Boris Faure 082942ef55 fix clicking to unselect 2013-11-10 18:16:39 +01:00
Boris Faure c16786416d simplify selection code 2013-11-10 18:16:39 +01:00
Boris Faure e9db7e6ed9 _smart_xy_to_cursor() now returns inside coordinates 2013-11-10 18:16:39 +01:00
Boris Faure 4ac9704be2 "#if defined(SUPPORT_DBLWIDTH)"--
and let the compiler remove the calls whenever needed
2013-11-10 18:16:39 +01:00
Boris Faure 4a9e61cb2e fix selection going up/left 2013-11-10 18:16:39 +01:00
Boris Faure 1dc0d30b60 reorganize structures about selection 2013-11-10 18:16:39 +01:00
Daniel Juyung Seo 20afe23c5b termio: fixed null pointer dereferencing issue.
This fixes coverity CID 1100645.
2013-11-08 08:32:47 +09:00
Boris Faure e724c8d0db missing EINA_UNUSED 2013-11-06 21:45:32 +01:00
Boris Faure 432587bc79 fix typo. CID 1126105, 1126106 2013-11-06 21:43:46 +01:00
Gustavo Sverzut Barbieri 016faae650 termio: right click on links show special menu.
This patches uses ctxpopup (ugh, this bitch is awful) to show a
contextual menu about that link with options such Preview (if able to
inline), Open (forces xdg-open) and Copy, then you don't have to
select a link in order to copy it :-)

This fixes T430 (terminology should copy link on right-click and no selection)
2013-11-01 19:26:03 -02:00
Gustavo Sverzut Barbieri 1745503b89 termio: do not handle selection if it doesn't exist.
A typical case is when you try to force xdg-open on a media (instead
of inline) by pressing "Control". This would trigger single-click box
selection on mouse-down but on mouse up the mouse didn't move yet. By
processing this as selection one also leaves the "didclick ==
EINA_TRUE" from mouse-down, leading the link to not be processed
(_activate_link() wasn't called).

PS: what an awful name is "didclick".
2013-11-01 17:11:10 -02:00
Gustavo Sverzut Barbieri 6562cdabc2 termio: allow monitoring if selection exists.
Export new termio_selection_exists() and two signals: "selection,on"
and "selection,off". These will be used to control the state of the
"copy" button and menus (when those exist).
2013-11-01 16:43:30 -02:00
Carsten Haitzler 476915c5cf oops - i thought i committed this - remove commented out code from prev commit 2013-10-31 16:10:55 +09:00
Carsten Haitzler 5958eff338 unbreak inlined media being unparented when tab selector is used
82f4d3546a introduced this bug (oct 20
2013 - discomfitor). now missing a _smart_apply() causes the bug. why
- not sure.
2013-10-31 16:07:05 +09:00
discomfitor 82f4d3546a improve previous smart queue commit by deleting existing animator
this completely fixes annoying issues where mousing out of the terminal fails to de-linkify text

moderately reviewed by: billiob
2013-10-20 15:31:19 +01:00
discomfitor 2ad1d55e59 only queue smart updates from termio_mouseover_suspend_pushpop when link.suspend is 0
almost reviewed-by: billiob
2013-10-20 08:15:24 +01:00
Boris Faure e45fec3127 try to avoid a race when moving cursor out 2013-10-20 01:22:17 +02:00
Boris Faure 5bf1dd9ca2 now that T441 is fixed, always remove links on MOUSE_OUT 2013-10-20 01:09:33 +02:00
Boris Faure b66dc2a3a0 fix CID 1100641 - uninitialized scalar variable 2013-10-14 23:32:48 +02:00
Boris Faure 55200014a9 invisible should not show previous underline/strikethrough 2013-10-14 23:19:01 +02:00
Boris Faure b10714adeb let me click on link while some strange bug is fixed
See T441
2013-10-14 22:46:08 +02:00
Boris Faure 36ba3bf3ed out coords are -1
this fixes some other cases of links not disappearing on mouse out
fixing selection will come later
2013-10-13 17:13:16 +02:00
Carsten Haitzler 6ea8622ecc make url link disappear on focus change ANd ensure it stays invisible then 2013-10-13 15:55:43 +09:00
Boris Faure 0a53ff6cd1 really remove links 2013-10-08 23:28:52 +02:00
Boris Faure 585ed2c323 fix (some cases about) link still showing up when they shouldn't 2013-10-08 22:26:06 +02:00
Boris Faure 579c64878a simplify code 2013-10-08 22:25:23 +02:00
Boris Faure f539eba7ca screw terminfo: have a config to decide whether erase is del or backspace
One day I'll have to dig into the terminfo/termcap mess :(
Maybe get the O'Reilly book about it…
2013-09-26 21:19:18 +02:00
Boris Faure ef543aa753 have a config to choose whether to set TERM to xterm-256color 2013-09-26 21:18:27 +02:00
Lucas De Marchi f8ff064499 Add option to disable drag and drop
Enabling drag and drop on a desktop (!touch) is too cumbersome: we
aren't allowed to select part of the link anymore since it would start
the drag and drop operation.
2013-09-12 03:05:18 -03:00
Mike Blumenkrantz 70d71d21a0 use new elm_win_window_id_get to return wayland-compatible surface id: terminology is now wayland-teamwork compatible 2013-09-10 13:57:45 +01:00
Boris Faure 71d4f155be change cursor/selection when changing theme 2013-09-07 18:39:22 +02:00
Carsten Haitzler 3a2a58473b ad erro handling for pty alloc (never seen it fail!) 2013-08-30 12:14:18 +09:00
Boris Faure e710205122 try to fix some link/selection mess 2013-08-29 18:26:46 +02:00
Boris Faure d746dccf4a clicking on links works again 2013-08-29 15:51:59 +02:00
Boris Faure 2c5828f5e2 fix extending selection with shift + double click. Closes T228 2013-08-29 14:00:29 +02:00
Boris Faure 30392f23a9 s/__UNUSED__/EINA_UNUSED/g 2013-08-27 15:36:50 +02:00