91 Commits

Author SHA1 Message Date
Enrico Tröger
0e66a678dc Bring the Find, Replace and FIF dialog back to top if they are already shown but lost focus.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1103 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-15 18:33:29 +00:00
Enrico Tröger
37c230845a Revert the last change to utils_str_equal() and use it again because g_str_equal() is not NULL-safe.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1059 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-07 16:09:45 +00:00
Enrico Tröger
c461da68f1 Removed utils_str_equal() and use g_str_equal() from GLib because it does exactly the same.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-06 20:44:32 +00:00
Nick Treleaven
f1e2b62c8b Update 2 debug messages.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1051 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-04 16:17:18 +00:00
Nick Treleaven
ac3c7c54ad Edit some strings (for better clarity).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1040 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-01 12:51:33 +00:00
Nick Treleaven
01988714b3 Make ui_set_statusbar() use printf-style arguments & assume the
message should not be overridden.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1032 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-25 16:33:38 +00:00
Nick Treleaven
3537731023 When replacing in session, use notebook page order and show a count
of the files changed.
Show the filename when replacing text over a range.
Add DOC_FILENAME() null-safe macro to get the filename at doc_idx.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1031 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-25 12:32:22 +00:00
Nick Treleaven
bfd785b72a Applied patch from Bob Doan to prevent scrolling when wrap searching
around a document, and to add a preference for suppressing search
dialogs when wrapping or after Find Next.
Rearranged some Preferences dialog options, added Files tab.
Disable tab position when file tabs are hidden (not new file tab
placement option, it still affects order of pages).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1012 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-18 15:47:28 +00:00
Nick Treleaven
51ea15ae31 Change Find Next/Previous buttons to use better stock icons
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1007 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-17 12:16:20 +00:00
Nick Treleaven
49e2d3ed92 Add search history for Find in Files.
Add ui_combo_box_add_to_history() and use to prevent blocks of
duplicates (but not all duplicates) from search history combo boxes,
and limit history to 30 entries.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@999 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-15 15:57:23 +00:00
Nick Treleaven
bd1137d9e9 Rename utils_strcmp() utils_str_equal() (to avoid return value
confusion with strcmp()).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@978 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 16:21:46 +00:00
Nick Treleaven
641109ece7 Fix pressing enter to search from the Find dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@965 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-04 11:26:31 +00:00
Nick Treleaven
7b1ca9594f Scroll matching selection to 1/3 of the view when searching.
Add sci_scroll_to_line(); remove sci_goto_line_scroll().
Show 'not found' message on status bar also when enter is pressed in
the search bar.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-03 15:09:13 +00:00
Nick Treleaven
2532555871 Update Save All state after Replace in Session.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@956 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-01 16:40:21 +00:00
Enrico Tröger
b5ed2b144d Changed tooltip of checkbox "Close dialog" to be more descriptive.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@952 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-01 15:53:48 +00:00
Nick Treleaven
bf7dae9c6a Add Find Previous, Find All in File/Session buttons to the Find
dialog.
Move Find Usage code from on_find_usage1_activate to search.c.
Add ui_button_new_with_image(), ui_hbutton_box_copy_layout().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@951 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-01 15:26:41 +00:00
Nick Treleaven
efddba4053 Reorder Replace All buttons.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@923 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 16:15:29 +00:00
Enrico Tröger
df1023213c Let the Find, Replace and FIF dialogs use the word at current cursor position if there is no selection.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@917 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-22 16:52:42 +00:00
Nick Treleaven
03eae9ebc4 Add separate Replace button, rename old button Replace & Find.
Add expander to group Replace All options for Replace dialog.
Use Replace All In Session button instead of checkbox.
Add border, update packing for all dialogs in search.c.
Add ui_dialog_vbox_new() for consistent dialog borders.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-22 14:56:05 +00:00
Nick Treleaven
72f287fe0f Move geany_debug prototype to geany.h so that all files can use it
without a dependency on main.h.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 11:16:54 +00:00
Nick Treleaven
93ba5ba45f Removed the GEANY_MAX_OPEN_FILES limit, using a dynamic array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-09 16:08:53 +00:00
Nick Treleaven
a2c0d34c58 Add whole word only matching option for Find in Files.
Add fixed string matching option for Find in Files.
Make fixed string, case sensitive matching default for efficiency.
Sort filenames passed to Grep alphabetically.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@825 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-20 11:03:33 +00:00
Enrico Tröger
f74ae89922 Escape special characters when shown in the status window after "Replace All" or replacing a selection.
Set the focus to the replace entry widget when pressing the tabulator key in the find entry widget in the replace dialog.
Set the focus to the find entry widget when pressing the tabulator key in the directory entry widget in the FIF dialog.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@783 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 23:28:34 +00:00
Enrico Tröger
b1daacc75a Applied patch from Stefan Oltmanns to add the possibility to keep the Replace dialog open.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@766 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-27 17:49:10 +00:00
Enrico Tröger
d79e82f633 Moved prototype for geany_debug() to main.h.
Moved declaration of document struct to document.h.
Keep selection when commenting and uncommenting code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 15:47:18 +00:00
Nick Treleaven
a9873e040c Add info to file header text
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@748 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 11:54:33 +00:00
Enrico Tröger
454876a51e Made label text translatable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 19:38:07 +00:00
Nick Treleaven
6823698d0c Use guint for search_get_file_list length
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@719 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 12:26:15 +00:00
Nick Treleaven
7ebb187b26 Store build information instead of using app->cur_idx; Assume C-like warning messages when running make when the current file is a Makefile; Moved some msgwin setup and cleanup code to msgwindow.c; Moved utils_parse_compiler_error_line to msgwindow.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-14 15:02:52 +00:00
Enrico Tröger
0dcbacec1f Use utf8/locale encoding wrappers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-13 09:07:10 +00:00
Nick Treleaven
ec66530ba6 Add select directory button for Find in files
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 21:38:36 +00:00
Nick Treleaven
a830f3326f Use hbox packing in Find and Find in files dialogs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 13:30:52 +00:00
Nick Treleaven
1520c6bfe2 Use hbox packing in Find and Find in files dialogs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@703 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 13:07:58 +00:00
Nick Treleaven
d68ffee4be Use hbox packing in Find and Find in files dialogs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@702 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 12:51:56 +00:00
Nick Treleaven
303d2ada70 Enable case sensitive when regex search enabled; Some label text changes for the dialogs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@700 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 12:04:14 +00:00
Nick Treleaven
f75fd1402a Group search related code
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@698 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-11 21:12:49 +00:00
Nick Treleaven
35a1df7ffc Remember Find in files directory for opening grep results
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-29 12:06:00 +00:00
Enrico Tröger
85af83f6ae Added some options to the Find in files dialog, made search directory editable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-28 18:37:32 +00:00
Nick Treleaven
09d5b5fdd9 remove unneeded header
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@558 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-14 16:59:07 +00:00
Nick Treleaven
4b85d71eb8 Give accurate message on finishing finding in files
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@556 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-14 15:50:29 +00:00
Nick Treleaven
1c8d62ed5d Added basic Find in files search functionality.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-13 14:30:44 +00:00