Nick Treleaven
1f063b535b
Make Find Selected commands repeat the last search if the selection
...
was lost.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5247 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 16:25:10 +00:00
Nick Treleaven
ab673d22fd
Move find_again() to search.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5246 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 16:16:15 +00:00
Nick Treleaven
98e6efb3b4
Add msgwin_set_messages_dir() to API (patch by Jiří Techet, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 15:31:23 +00:00
Nick Treleaven
d840f86a9d
Fix some 'possible' NULL pointer dereferences (based on patch by
...
Erik de Castro Lopo).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5224 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-13 15:03:18 +00:00
Nick Treleaven
f2770f94c9
Fix 2 minor leaks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5217 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 16:56:42 +00:00
Nick Treleaven
bb2e1cc96e
Include all files if the Find in Files pattern field is enabled and
...
empty.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5195 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-24 12:17:33 +00:00
Nick Treleaven
466baa1216
Avoid duplicating string (just for neatness).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5154 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-12 17:14:47 +00:00
Frank Lanitz
2364a0d0a3
Fix a memory leak based on input by Daniel Marjamäki. Thanks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5145 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-12 05:49:07 +00:00
Nick Treleaven
67537a9918
Revert (most of) last 2 commits as Grep's --exclude-dir=.?* doesn't seem to be working as expected.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5092 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-06 14:20:12 +00:00
Nick Treleaven
ab124475a6
Make Find in Files extra options default to --exclude-dir=.?* to
...
filter out hidden directories. (Still disabled by default so
non-GNU/older Grep works).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5091 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-06 14:01:26 +00:00
Nick Treleaven
1579f306a2
Replace regex flag warning with debug message.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5085 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-02 13:54:36 +00:00
Nick Treleaven
ea81430704
Restore tabbing past Find in Files combo box drop down menus.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5067 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-28 13:47:14 +00:00
Nick Treleaven
4476a79127
Use ui_hookup_widget() instead of g_object_set_data_full() for
...
widgets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5063 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-23 16:57:28 +00:00
Nick Treleaven
18f29f6036
Remove unnecessary widget lookups.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5062 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-23 16:16:15 +00:00
Nick Treleaven
c3a7b3e126
Add file pattern to combo box history.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5061 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-23 16:06:10 +00:00
Nick Treleaven
5b0dc2b8f8
Implement Find in Files file pattern search.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5060 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-23 12:34:11 +00:00
Nick Treleaven
a4c31a2156
Add Files checkbox and combo to Find in Files dialog, currently
...
does nothing & is disabled.
Don't try to focus the next entry on pressing tab anymore as this
is more complicated now.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5059 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-22 16:51:01 +00:00
Nick Treleaven
2f5285cb53
Move 2 Find in Files checkboxes for even spacing.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5057 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-21 15:16:31 +00:00
Nick Treleaven
8d4d759ab5
Simplify FIF 'Fixed strings, Grep regular expressions, Extended
...
regular expressions' radio buttons with a 'Use regular expressions'
checkbox. This uses the extended syntax (which is the same as the
Find/Replace regex syntax).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-21 14:57:03 +00:00
Nick Treleaven
94ee5132d2
Put Find in Files Search field above Directory field.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5055 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-21 14:27:20 +00:00
Nick Treleaven
c41b55d692
Add ui_combo_box_add_to_history() to API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5048 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 12:20:15 +00:00
Nick Treleaven
e2c321b2e2
Only replace template filename matching start of word on saving.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4901 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-11 12:10:31 +00:00
Nick Treleaven
c26dd54a9e
Fix search_find_text not returning -1 when match is out of range.
...
This fixes invalid memory reads and wrong template filename
wildcard replacement.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4898 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-11 11:49:09 +00:00
Nick Treleaven
bf09ed5c48
Fix replacing {filename} template wildcard for custom file
...
templates with non-default file extension.
Add search_find_text() for POSIX regex searches.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4873 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-05 12:50:59 +00:00
Nick Treleaven
c266895832
Fix replacing '^' regex.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-31 11:53:37 +00:00
Nick Treleaven
5bbd6a30d7
Fix wrong selection range after Replace in Selection.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4784 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-25 13:43:37 +00:00
Nick Treleaven
201b595b51
Rename Stash data types to be independently named from Geany (so
...
Stash can be reused for other projects).
Rename GeanyPrefGroup to StashGroup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4776 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-18 17:04:17 +00:00
Nick Treleaven
bba3be69d6
s/geany_find_text/search_find_text
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4742 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 16:27:51 +00:00
Nick Treleaven
b8e2b623b4
Implement POSIX-regex Replace All (could be more efficient but
...
seems OK for now).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4741 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 13:45:14 +00:00
Nick Treleaven
17ad8ba1b8
Move search_replace_range() to search.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 13:28:04 +00:00
Nick Treleaven
c8bac32a8a
Implement POSIX-regex Find All.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4738 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 12:27:31 +00:00
Nick Treleaven
f96c3d1a00
Move new regex code to search.c: search_find_next(),
...
search_replace_target().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4720 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-02 13:21:41 +00:00
Nick Treleaven
3927eb059b
Fix not replacing escapes within a backreference match.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4718 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-01 18:28:57 +00:00
Nick Treleaven
e669410ad1
Fix regex search for '\\'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4717 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-01 18:16:28 +00:00
Nick Treleaven
0f45597b02
Make regex search imply replacing escaped chars.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-01 17:07:56 +00:00
Nick Treleaven
cfa2b8b532
Show 'Replaced X matches in Y documents' message when using Replace in
...
Session.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-18 17:05:13 +00:00
Enrico Tröger
7ba4a81181
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
d0cc72132d
Remember the window position of the Find, Replace and Find in Files dialogs ( closes #2877988 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4514 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:45:49 +00:00
Nick Treleaven
e4d225e79a
Refactor/reformat on_replace_dialog_response().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4491 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-09 17:31:56 +00:00
Nick Treleaven
cf35a8a495
Revert r4301 - utils_free_pointers() taking 4 arguments.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4321 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:15:28 +00:00
Nick Treleaven
d83416fdd1
Fix warning when using Find in Files with no documents open; make
...
keybinding work in this case.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 14:07:28 +00:00
Nick Treleaven
f36c9024a3
Make utils_free_pointers() take 4 arguments, add to API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4301 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-12 16:03:10 +00:00
Nick Treleaven
bc2b6829c5
Make ui_entry_add_clear_icon() take a GtkEntry, not GtkWidget.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4220 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 16:46:16 +00:00
Nick Treleaven
1986d915cc
Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
4097dfec5b
Make Goto Tag commands use the current selection if present (useful
...
for selecting part of a tag or for ReST section names with spaces
in).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4195 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 12:13:50 +00:00
Nick Treleaven
e84ddc2d70
Show Find in Files stderr output in messages window instead of
...
debug window so that invalid regex messages can be seen easily.
Combine FIF stdout and stderr callback code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4191 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-15 18:00:32 +00:00
Nick Treleaven
e8573df8bb
Fix wrong match length when using Mark with regex.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3974 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-16 14:37:35 +00:00
Nick Treleaven
a25c0efb48
Make Mark All keybinding clear search highlighting when there's no
...
current word.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3973 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-16 12:21:56 +00:00
Nick Treleaven
8c7f40f3f9
Add 'Mark All' keybinding.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3949 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-10 15:17:27 +00:00
Enrico Tröger
259639f3ee
Use the new Scintilla struct names prefixed with 'Sci_'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:20:28 +00:00