ntchjb
efe22d8cf3
Revert "Support wide characters and combined characters"
...
This reverts commit f961f90bc8 .
2019-01-03 15:32:25 +07:00
ntchjb
f961f90bc8
Support wide characters and combined characters
...
- Convert buffer index to string index before searching
- Convert string index to buffer index after searching
- Fix bug when search selection skipped some result
2019-01-01 16:39:23 +07:00
ntchjb
d94c897754
Fix search addons: be able to search wrapped lines from unwrapped line
...
by managing column range that is needed to be scanned.
2018-12-29 13:55:14 +07:00
ntchjb
565cba9c1a
Fix search addons:
...
- Changed to use `this._terminal.cols` for buffer line length instead.
- Let `_findInLine` check on wrapped line
- Added conditions in `_findInLine`
- For reverse search, if there is no selection at given row, then start scan at the end of the string
2018-12-29 09:38:17 +07:00
ntchjb
913150fe13
Fix search addons:
...
searchTerm should not be matched if the beginning of matching index < 0
2018-12-29 03:03:23 +07:00
Daniel Imms
d698faa183
Comment how the regex reverse search while works
2018-12-26 16:12:53 -08:00
Daniel Imms
1a1f7e984f
Remove ISearchIndex object
2018-12-26 16:03:31 -08:00
Daniel Imms
e0d535e0da
Fix previous search, remove incremental previous search
2018-12-26 15:49:08 -08:00
Daniel Imms
76302e2146
Get multiple matches working after incremental changes
2018-12-26 15:32:34 -08:00
Daniel Imms
204e42a151
Fix incremental search
2018-12-26 15:15:12 -08:00
Daniel Imms
bb9732599b
Merge remote-tracking branch 'origin/master' into pr/noamyogev84/1763
2018-12-26 15:08:16 -08:00
Noj Vek
a0d583b075
handle non-cached scenario in tests land
2018-12-10 17:23:28 -08:00
Noj Vek
9005de1c42
adding a linesCache ttl and cursor move invalidation
2018-12-10 17:13:28 -08:00
Noj Vek
91ef7f24a6
Fixes #1660 : Search as you type
2018-12-10 15:54:35 -08:00
Noam
278d696709
remove reverseSearch from ISearchOptions
...
add isReverseSearch argument to findInLine
modify unit tests
2018-12-07 22:56:57 +02:00
Noam
376c790e1d
implement find multiple matches in line.
...
start search from current selection.
add unit tests.
2018-11-30 20:46:47 +02:00
Alex Ross
083bc0f3d1
Merge branch 'master' into alexr00/ClearShouldClear
2018-10-23 10:17:26 +02:00
Daniel Imms
35db216f64
Fix indent
2018-10-20 13:55:13 -07:00
Alex Ross
4a2189d140
Merge branch 'master' into alexr00/ClearShouldClear
2018-10-17 10:45:12 +02:00
Prabhanjan S Koushik
f2fb46cc82
Merge branch 'master' into fix-1749
2018-10-17 10:51:27 +05:30
pkoushik
74664a9161
Fix-1749
2018-10-17 10:48:46 +05:30
Stathis Kavros
161dfa8d2d
Fix typos
2018-10-16 14:23:58 +03:00
Alex Ross
8a6ed52e4e
Merge branch 'master' into alexr00/ClearShouldClear
2018-10-16 12:21:00 +02:00
pkoushik
f61ba9558b
Fixes-1750
2018-10-15 23:44:30 +05:30
Daniel Imms
e66a10889f
Merge branch 'master' into alexr00/ClearShouldClear
2018-10-11 09:02:54 -07:00
Alex Ross
c739d2fe87
Remove underscore from non word characters list
...
This is the upstream fix for Microsoft/vscode#59379
2018-10-10 14:05:23 +02:00
Alex Ross
18871f0d3c
Cleared terminal lines should have isWrapped reset
...
Fixes #1710
2018-10-01 13:34:13 -07:00
Alex Ross
7fc1fd947f
Added search support for 'match whole word'
2018-09-12 09:30:34 -07:00
Daniel Imms
e6e079bfa1
Merge branch 'master' into alexr00/caseSearch
2018-09-11 22:29:01 -07:00
Alex Ross
5aa6656971
Added test and fixed uncovered buy
2018-09-11 16:29:11 -07:00
Alex Ross
8979eea810
Fixed translateBufferLineToStringWithWrap to correctly not remove spaces in the middle of a multiline wrapped string
2018-09-11 16:12:53 -07:00
Alex Ross
ade3e0943c
Fixed a merge mistake
2018-09-10 13:54:29 -07:00
Alex Ross
16de86f5ea
Fixed an unintentionally capitalized i
2018-09-10 13:50:35 -07:00
Alex Ross
fed579238a
Added optional case sensitive searching
2018-09-10 13:45:29 -07:00
Daniel Imms
5e004b21a3
Disallow the empty string from being selected by find
2018-09-10 12:17:17 -07:00
Alex Ross
bcf223e235
Fixed merge errors
2018-09-10 10:43:03 -07:00
Alex Ross
54ed988fd1
Fixed issues around searching lines twice and considering a wrapped line both it's own line and part of the previous line.
2018-09-10 10:25:23 -07:00
Alex Ross
1460a34796
Added another test case and fixed the multi-line issue that uncovered
2018-09-10 10:22:12 -07:00
Alex Ross
09028d4d86
Added support for searching accross wrapped lines
2018-09-10 10:20:31 -07:00
Daniel Imms
599271bde4
Make search option props optional, test optional typings
2018-09-08 02:10:02 -07:00
Alex Ross
e5465841f8
Responded to feedback and fixed the returned found term
2018-09-07 15:29:51 -07:00
Alex Ross
88205511e6
Added support for searching by regular expression
2018-09-07 09:47:15 -07:00
Jörg Breitbart
6057586ff3
fixes #1647
2018-09-02 17:52:56 +02:00
Daniel Imms
d29a527724
Introduce the public module
2018-06-10 16:40:36 +01:00
Daniel Imms
f56f4520d0
Merge branch 'master' into 1103_search_wide_emoji
2018-01-23 09:06:06 -08:00
Daniel Imms
682eb2f861
Use Terminal public API type in search addon
...
Part of #1220
2018-01-19 09:30:24 -08:00
Daniel Imms
0e870d106f
Fix search for emojis
...
Fixes #1103
2018-01-16 07:26:03 -08:00
Daniel Imms
8d3bdad7e4
Fix search for wide unicode
...
Part of #1103
2018-01-16 07:06:10 -08:00
Daniel Imms
05cbe41d39
scrollDisp -> scrollLines
...
Fixes #902
2017-11-04 03:20:24 -07:00
Daniel Imms
75b91c618e
Update license text
2017-09-08 10:16:42 -07:00