268 Commits

Author SHA1 Message Date
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
Enrico Tröger
f81366c6f5 Remember also whether to use the extra grep options (got lost in the last commit, oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3799 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-17 17:49:18 +00:00
Enrico Tröger
f27180536a Remember the additional Find in Files search flags at startup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3796 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-17 15:46:09 +00:00
Enrico Tröger
009fdd67a1 When using Find All in the Find dialog (in Session and Document), display the right amount of matches.
Fix the display of the matches once per line (I broke the original patch).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3629 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-16 13:43:12 +00:00
Enrico Tröger
b2faa6dcfb When using Find All in the Find dialog, display matches only once per line in the messages window (patch by Bert Vermeulen, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3627 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-13 17:23:56 +00:00
Enrico Tröger
fbbe778eeb Fix punctuation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-05 13:03:51 +00:00
Enrico Tröger
46a2d13b4d Move ui_set_search_entry_background() into ui_utils.c.
Change the background colour of the search entries in the Find and Replace dialogs according to the search results like in the toolbar search field.
Add images to the 'Replace' and 'Replace and Find' buttons in the Replace dialog.
Minor cleanups in search.c.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3605 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-27 14:05:50 +00:00
Enrico Tröger
8cd312e250 Small optimisations by moving out function calls of loop break conditions (patch by Frank, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3571 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:11:25 +00:00
Enrico Tröger
4ffd7f2ed9 Add a clear icon to the used text entries all over the place (will be available with GTK >= 2.16).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:10:50 +00:00
Enrico Tröger
644a9cfbff Add a progressbar widget to the statusbar and use it to show progress when building with the Make commands, when printing and when using Find in Files.
Add progressbar convenience functions and ui_entry_add_clear_icon() to the plugin API.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 20:19:43 +00:00
Nick Treleaven
47c0b41a38 Refactor with create_find_dialog().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3514 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 18:12:00 +00:00
Nick Treleaven
1027890ee7 Rename static structs, group by dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3513 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 18:03:58 +00:00
Nick Treleaven
c5bdf0d9fc Remember whether find/replace all expanders were expanded.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3512 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 17:50:45 +00:00
Nick Treleaven
15f4b8f136 Reorder replace dialog 'replace all' buttons.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 17:22:05 +00:00
Nick Treleaven
be8b2eaef3 Refactor with create_replace_dialog().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3500 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 17:19:15 +00:00
Enrico Tröger
0582c61824 Replace remaining occurrences of '__func__' with 'G_STRFUNC'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:21 +00:00
Enrico Tröger
ffebb43c8e Remove tooltips from menu items.
Don't use full stops in tooltips for short sentences.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 19:15:41 +00:00
Enrico Tröger
c636728975 Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
39a6eb455e Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Nick Treleaven
640053e598 Add ui_hookup_widget() macro to the API.
Make saving Stash string settings NULL-safe.
Move fif_extra_options search setting code to search.c.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3428 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-28 17:25:09 +00:00
Nick Treleaven
0709fcf00f Allow Find Usage for selections even when the cursor is not at a
word character.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3407 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-19 17:15:52 +00:00
Enrico Tröger
9e25c43487 Move implementation of lookup_widget() into ui_lookup_widget().
Change uses of lookup_widget() to ui_lookup_widget().
Remove now unneeded support.c.
Use GLib gettext macros in support.h instead of own ones.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 21:21:53 +00:00
Nick Treleaven
604fb1c627 Set Find in Files directory entry to project base path or current
working directory if the current file has no path.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3386 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-16 13:38:10 +00:00
Nick Treleaven
8de6b131c9 Remember Find in Files mode at startup.
Add configuration_add_pref_group(), with separate array for GUI
prefs.
Move search pref group to search.c.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3383 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-16 13:01:47 +00:00
Nick Treleaven
921f010ffc Rename msgwin_compiler_add -> msgwin_compiler_add_string.
Rename msgwin_msg_add -> msgwin_msg_add_string.
Rename msgwin_compiler_add_fmt -> msgwin_compiler_add.
Rename msgwin_msg_add_fmt -> msgwin_msg_add.
This fixes 2 geanyfunctions.h macros, and is more consistent with
msgwin_status_add().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3326 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 17:30:06 +00:00
Enrico Tröger
b805f7edbe Fix wrong encoding handling when the chosen encoding was UTF-8 and properly skip any conversions in this case.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3254 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-19 17:32:24 +00:00
Enrico Tröger
800780e2b7 Rework search_close_pid() and let it handle the case when the grep command was killed externally.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3253 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-19 17:31:54 +00:00
Enrico Tröger
81ffd05aa1 dd ui_widget_set_tooltip_text() as a convenience function to easily set tooltips for widgets. It uses gtk_widget_set_tooltip_text() on GTK >= 2.12 otherwise the old tooltips API.Use ui_widget_set_tooltip_text().
Use ui_widget_set_tooltip_text() in the plugins.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:14:42 +00:00
Nick Treleaven
a2ceb60e3a Make utils_free_pointers() take an arg_count argument to prevent
memory leaks.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3245 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 17:14:00 +00:00
Enrico Tröger
a63aaef475 Improve layout of the combo box labels in the Find in Files dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3239 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:54:46 +00:00
Enrico Tröger
18095fca79 Note: this breaks the plugin API for Editor and Scintilla functions.
Rename all functions in editor.c and sciwrappers.c which are related to indicators for more consistency.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3238 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:54:28 +00:00
Enrico Tröger
9975737eff Add and use ui_combo_box_prepend_text_once() to add project's base_path to the Find in Files dialog even if another project was opened.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:53:55 +00:00
Enrico Tröger
0bfd8eb893 Add the project's base_path to the directory list in the Find in Files dialog if a project is open.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3236 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:53:33 +00:00
Enrico Tröger
631da007a4 Capture command's stderr and log it into the Debug messages window when a Find in Files search fails.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3235 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:53:13 +00:00
Enrico Tröger
8f949362e7 Clear previously set search indicators before when using 'Mark' in the Find dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3231 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-15 15:53:40 +00:00
Enrico Tröger
5178e73699 Fix possible crash when using the Find in Files dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3230 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-15 15:53:05 +00:00
Enrico Tröger
c41f63c0b9 Fix wrong highlighting of search results when using 'Mark' in the Find dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3229 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-15 15:52:36 +00:00
Enrico Tröger
54a5f200a6 Add an encoding combo box to the Find in Files dialog to choose an encoding to use for searching (i.e. the encoding in which the search text is passed to 'grep').
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3221 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 16:29:56 +00:00
Nick Treleaven
71523b8a2b Fix segfault when showing Find in Files dialog when no documents are
open (r2998, #2228544).
Fix segfault for FIF from last commit (oops).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3182 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-06 17:26:29 +00:00
Nick Treleaven
a7e94bdf64 Refactor search_show_find_in_files_dialog().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3181 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-06 17:13:18 +00:00
Enrico Tröger
0324ed71f6 Add *_full variants of editor indicator functions to the plugin API for more control over indicators.
Add/Update some API docs.
Make the 'Mark' button for Find highlight the results with rounded boxes instead of marking the whole line.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:57:00 +00:00