Commit Graph

193 Commits

Author SHA1 Message Date
Paul Kulchenko
481bbfbc26 Fixed showing cursor in search panel fields after file search.
This puts a workaround in place to compensate the cursor not being shown
as the result of earlier commit that destroys the temporary editor object
(45a49246), which should have no impact. Noticed on Windows.
2016-01-11 19:45:56 -08:00
Paul Kulchenko
4b7471f518 Improved compatibility when running the IDE using Lua 5.2. 2016-01-05 20:02:14 -08:00
Paul Kulchenko
b5e6f50f53 Added Alt-Enter to "replace all" when replace field is selected in the search panel. 2015-11-30 23:12:17 -08:00
Paul Kulchenko
dfee96e1d7 Added using *Raw methods when available for handling of invalid UTF-8 chars (#260, #556). 2015-11-16 20:54:09 -08:00
Paul Kulchenko
7def69b96e Switched to using KEY event in search panel to make it work with wxwidgets 3.1+ (#260). 2015-11-09 18:33:21 -08:00
Paul Kulchenko
ce208807f8 Updated capturing editor information during search to work with selections (#547, #416). 2015-10-29 18:49:25 -07:00
Paul Kulchenko
8f66d1a94a Added updating selection boundaries after replace-in-selection (#547). 2015-10-29 15:05:42 -07:00
Paul Kulchenko
93666b7dee Added message about reaching the end of selection during search (#547). 2015-10-29 10:52:40 -07:00
Paul Kulchenko
26e17dc6b1 Updated Replace and Replace All to take selection into account (#547, #416). 2015-10-29 10:52:20 -07:00
Paul Kulchenko
25adfbac15 Added search in selection button to the search panel toolbar (#547). 2015-10-29 10:51:50 -07:00
Paul Kulchenko
3940aa6c6a Updated default file mask to match files without extension (#260). 2015-10-23 14:53:33 -07:00
Paul Kulchenko
c5e6c9608c Fixed an error when scope field is updated in the search dialog (side effect of 8dc07e22). 2015-09-21 22:00:48 -07:00
Paul Kulchenko
8dc07e2282 Added workaround for a memory leak in wxlua after a search panel is opened.
The leak happens when a non-existing property is checked on a wxlua object
inside `pcall`. wxlua throws `wxLua: Unable to call an unknown method '...' on
a '...' type.`, which is handled correctly, but leaks about 0.5Kb per call.
2015-09-03 11:21:23 -07:00
Paul Kulchenko
45a4924686 Added explicit editor destroy during find and replace to conserve memory. 2015-08-28 09:21:26 -07:00
Paul Kulchenko
b4656ca0f6 Updated search logic to avoid showing search results in recent files (#416). 2015-07-10 21:48:29 -07:00
Paul Kulchenko
5144e92e89 Added activating Output notebook to show search results if it's hidden (#416). 2015-06-23 16:14:47 -07:00
Paul Kulchenko
6142843f4b Fixed initial select-and-find search. 2015-06-14 20:48:49 -07:00
Paul Kulchenko
cc1f36af2f Updated indicator processing to use new API. 2015-06-13 16:34:32 -07:00
Paul Kulchenko
38c6cd28fa Fixed returning focus to the editor after find-in-files followed by page search (#416). 2015-06-11 20:59:03 -07:00
Paul Kulchenko
39df53117e Added reporting mismatch on invalid line numbers in replace preview (#416). 2015-05-13 10:39:06 -07:00
Paul Kulchenko
04c66f735d Fixed replace in preview to only replaced matched text (#416). 2015-05-13 09:29:39 -07:00
Paul Kulchenko
38068bfa54 Fixed restoring editor focus after closing search preview on OSX/Linux (#416). 2015-05-12 21:57:04 -07:00
Paul Kulchenko
66367489f0 Fixed replace-in-files from search results preview (#416). 2015-05-12 21:56:26 -07:00
Paul Kulchenko
42f7a2647b Fixed keeping editor cursor position after closing search panel (#416). 2015-05-12 20:08:46 -07:00
Paul Kulchenko
9def534470 Added folds in the search results even when disabled in the editor (#416). 2015-05-12 13:42:47 -07:00
Paul Kulchenko
a06f865151 Updated the order of search preview margin changes to hide line numbers (#416). 2015-05-12 13:12:11 -07:00
Paul Kulchenko
d94f2b6c06 Added expanding folded/hidden lines when updating search results (#416).
This avoid the issue when the last line stays hidden after folding all
lines in the search result tab and refreshing the results.
2015-05-11 23:16:04 -07:00
Paul Kulchenko
5a626ed1cd Added check for valid editor when closing search panel (#416). 2015-05-11 22:53:09 -07:00
Paul Kulchenko
66233e04e7 Updated search results tab name (#416). 2015-05-10 21:50:36 -07:00
Paul Kulchenko
9391253fe7 Updated showing new search results if the searched text is different (#416). 2015-05-10 17:41:32 -07:00
Paul Kulchenko
d3c6a5c832 Added option to show search results in multipe tabs (#416). 2015-05-10 17:13:24 -07:00
Paul Kulchenko
0184accc29 Added search.autohide option to hide search panel after search (#416). 2015-05-04 13:07:32 -07:00
Paul Kulchenko
7c5a3204f9 Updated setting focus on the editor after cancelled search (#416). 2015-05-04 13:06:28 -07:00
Paul Kulchenko
a313071f90 Added setting cursor at the end of the search results preview (#416). 2015-05-04 13:02:44 -07:00
Paul Kulchenko
eb2288bdd4 Added closing search panel on Escape in the editor (closes #450, #416).
This also fixes an issue with `Escape` in full-screen mode disabling full
screen instead of closing a tooltip or an auto-complete popup first.
2015-04-28 10:28:38 -07:00
Paul Kulchenko
0a5f3f2ed8 Updated search to keep focus when preview shown at the bottom (#416). 2015-04-25 22:00:00 -07:00
Paul Kulchenko
ca47551edb Added search.zoom setting to zoom search results (#416). 2015-04-25 21:59:59 -07:00
Paul Kulchenko
119c53f3b2 Updated constant values for consistency. 2015-04-25 21:59:58 -07:00
Paul Kulchenko
646db05c55 Added folding in the preview when shown at the bottom (#416). 2015-04-25 21:59:57 -07:00
Paul Kulchenko
f2f99fe90d Allowed saving search preview when shown at the bottom of the screen (#416). 2015-04-25 21:59:38 -07:00
Paul Kulchenko
9cb8d2ef4d Added option to show search results at the bottom of the screen (#416). 2015-04-25 12:12:32 -07:00
Paul Kulchenko
ee35d4bf8a Added status message when search is cancelled by closing results tab (#416). 2015-04-23 09:50:49 -07:00
Paul Kulchenko
354951203d Reorganized recent scopes menu and added Clear Items (#416). 2015-04-23 09:37:27 -07:00
Paul Kulchenko
6fe7b317bd Updated binary check to keep track of extensions in file search (#416). 2015-04-22 21:59:46 -07:00
Paul Kulchenko
63cdef5285 Refactored binary check for file search and commandbar. 2015-04-22 21:52:35 -07:00
Paul Kulchenko
bb6c8cfd67 Fixed binary check in file search for files without extension (#416). 2015-04-22 21:43:23 -07:00
Paul Kulchenko
fe8d54ec2d Refactored traversal in file search to return matches when found (#416). 2015-04-18 15:30:00 -07:00
Paul Kulchenko
fd0b2c1f11 Added setting read-only status on find-in-files results (#416). 2015-04-14 15:09:29 -07:00
Paul Kulchenko
a28ce0f536 Fixed ReplaceAll button on find-in-files toolbar (#416). 2015-04-14 12:06:35 -07:00
Paul Kulchenko
accd8565af Fixed switching focus when toolbar is used in find-in-files (#416). 2015-04-14 10:55:30 -07:00