Commit Graph

48 Commits

Author SHA1 Message Date
Daniel Imms
4b170ca43f Select to the word at the mouse after double click
Fixes #697
2017-06-18 12:52:43 -07:00
Daniel Imms
405d1ee52d Merge branch 'master' into 443_retain_wrapped_lines_copy 2017-06-13 14:32:01 -07:00
Daniel Imms
2a0f44b0fb Prevent mousedown event default selection behavior
Fixes #698
2017-06-12 14:51:58 -07:00
Daniel Imms
346b5177bc Retain wrapped line state when copying
Fixes #443
2017-06-09 17:12:00 -07:00
Daniel Imms
6075498c24 Add class header comments 2017-06-09 12:47:16 -07:00
Daniel Imms
b81c165bea Add SelectionModel tests 2017-06-07 14:15:18 -07:00
Daniel Imms
4405f5e163 Fix clearSelection in select all mode 2017-06-07 13:48:12 -07:00
Daniel Imms
2012c8c91d Move prepareTextForClipboard logic into SelectionManager 2017-06-07 13:42:08 -07:00
Daniel Imms
5d33727ae4 Add clearSelection API 2017-06-07 13:07:34 -07:00
Daniel Imms
1343b83fc3 Add hasSelection public API 2017-06-07 12:40:48 -07:00
Daniel Imms
9a86eeb333 Support copying in the alt buffer 2017-06-07 11:10:05 -07:00
Daniel Imms
13c401cbaa Only refresh the selection on an animation frame 2017-06-06 10:52:42 -07:00
Daniel Imms
b812991072 Fix multiple drag scroll intervals being registered 2017-06-06 10:40:22 -07:00
Daniel Imms
2b2431824f Fix select all with no start and include content below viewport 2017-06-06 23:13:50 -07:00
Daniel Imms
7147787441 Undo CiruclarList id changes, fix null check, lint 2017-06-06 22:59:16 -07:00
Daniel Imms
d0b603d033 jsdoc all of SelectionManager 2017-06-06 21:55:52 -07:00
Daniel Imms
2621be819e Resolve more TODOs, add jsdoc 2017-06-06 21:43:19 -07:00
Daniel Imms
f380153f42 Resolve some TODOs 2017-06-06 21:29:30 -07:00
Daniel Imms
fd91c5e1a8 Add _selectLineAt test 2017-06-06 15:22:35 -07:00
Daniel Imms
f61d852f3c Don't allow double click selection on empty row going out of viewport 2017-06-06 15:05:22 -07:00
Daniel Imms
5bc1112151 Select lines when dragging a triple click 2017-06-06 15:02:52 -07:00
Daniel Imms
db8ded2a02 Implement shift+click 2017-06-06 14:19:12 -07:00
Daniel Imms
d3865ad23f Add some SelectionManager selectWorkAt tests, fix lint 2017-06-01 17:36:47 -07:00
Daniel Imms
a53a0acd65 Fix issue with trimming whitespace 2017-06-01 17:04:59 -07:00
Daniel Imms
11cec31da6 Clean up wide char select word code 2017-05-25 21:12:44 -07:00
Daniel Imms
d9991b25a4 Support wide char double click 2017-05-25 20:48:48 -07:00
Daniel Imms
cb6533f3a6 Get double click selection for wide chars mostly working 2017-05-25 20:22:43 -07:00
Daniel Imms
54e7f65d4e Support selecting wide characters 2017-05-25 19:34:32 -07:00
Daniel Imms
ec61f3acf0 Only trim the right whitespace from selection
Fixes #673
2017-05-25 18:52:06 -07:00
Daniel Imms
f7d6ab5f2a Move the selection model to its own module 2017-05-25 13:20:57 -07:00
Daniel Imms
0716cffd7d Tidy up _areSelectionValuesReversed 2017-05-25 12:46:54 -07:00
Daniel Imms
e29ab29441 Fix drag when selectioning via double/triple click 2017-05-25 12:46:08 -07:00
Daniel Imms
9f271de803 Implement triple click to select line 2017-05-25 12:27:47 -07:00
Daniel Imms
43c796a781 Support copying of select all text 2017-05-25 11:35:22 -07:00
Daniel Imms
25152e4441 Add select all API 2017-05-25 10:14:40 -07:00
Daniel Imms
3846fe0a7d Add null checks to fix trim related crash 2017-05-25 09:55:08 -07:00
Daniel Imms
b3b2bd1faf Don't flag user scrolling if no scrolling happens 2017-05-25 09:51:13 -07:00
Daniel Imms
0dc3dd0336 Initial scroll drag implementation 2017-05-23 11:20:55 -07:00
Daniel Imms
ab40908fa4 Disable selection manager in mouse mode
This allows the application to take full control of the selection
2017-05-21 12:35:07 -07:00
Daniel Imms
e63fdf580b Clean up 2017-05-20 15:21:12 -07:00
Daniel Imms
597c6939c8 Handle basic double click select 2017-05-20 00:17:23 -07:00
Daniel Imms
293ae18a11 Fix copy after scroll 2017-05-20 00:01:55 -07:00
Daniel Imms
32b34cbe4c Handle copy 2017-05-19 23:53:20 -07:00
Daniel Imms
ad3ae67e70 Get selection partially rendering 2017-05-19 23:29:51 -07:00
Daniel Imms
b594407cd5 Tell renderer to draw selection 2017-05-19 20:06:05 -07:00
Daniel Imms
207c4cf961 More work on SelectionManager 2017-05-19 19:57:52 -07:00
Daniel Imms
b36d8780fd Clean up 2017-05-05 17:40:23 -07:00
Daniel Imms
70fda99415 Basic fetching of coordinates 2017-05-05 17:36:15 -07:00