geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "search.h"
#include "app.h"
#include "document.h"
#include "encodings.h"
#include "encodingsprivate.h"
#include "keyfile.h"
#include "msgwindow.h"
#include "prefs.h"
#include "sciwrappers.h"
#include "spawn.h"
#include "stash.h"
#include "support.h"
#include "toolbar.h"
#include "ui_utils.h"
#include "utils.h"
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
Go to the source code of this file.
Macros | |
#define | FREE_WIDGET(wid) if (wid && GTK_IS_WIDGET(wid)) gtk_widget_destroy(wid); |
Functions | |
static void | search_read_io (GString *string, GIOCondition condition, gpointer data) |
static void | search_read_io_stderr (GString *string, GIOCondition condition, gpointer data) |
static void | search_finished (GPid child_pid, gint status, gpointer user_data) |
static gchar ** | search_get_argv (const gchar **argv_prefix, const gchar *dir) |
static GRegex * | compile_regex (const gchar *str, GeanyFindFlags sflags) |
static void | on_find_replace_checkbutton_toggled (GtkToggleButton *togglebutton, gpointer user_data) |
static void | on_find_dialog_response (GtkDialog *dialog, gint response, gpointer user_data) |
static void | on_find_entry_activate (GtkEntry *entry, gpointer user_data) |
static void | on_find_entry_activate_backward (GtkEntry *entry, gpointer user_data) |
static void | on_replace_dialog_response (GtkDialog *dialog, gint response, gpointer user_data) |
static void | on_replace_find_entry_activate (GtkEntry *entry, gpointer user_data) |
static void | on_replace_entry_activate (GtkEntry *entry, gpointer user_data) |
static void | on_find_in_files_dialog_response (GtkDialog *dialog, gint response, gpointer user_data) |
static gboolean | search_find_in_files (const gchar *utf8_search_text, const gchar *dir, const gchar *opts, const gchar *enc) |
static void | init_prefs (void) |
void | search_init (void) |
void | search_finalize (void) |
static void | on_widget_toggled_set_insensitive (GtkToggleButton *togglebutton, gpointer user_data) |
static GtkWidget * | add_find_checkboxes (GtkDialog *dialog) |
static void | send_find_dialog_response (GtkButton *button, gpointer user_data) |
static void | setup_find_next (const gchar *text) |
void | search_find_selection (GeanyDocument *doc, gboolean search_backwards) |
static void | on_expander_activated (GtkExpander *exp, gpointer data) |
static void | create_find_dialog (void) |
static void | set_dialog_position (GtkWidget *dialog, gint *position) |
void | search_show_find_dialog (void) |
static void | send_replace_dialog_response (GtkButton *button, gpointer user_data) |
static gboolean | on_widget_key_pressed_set_focus (GtkWidget *widget, GdkEventKey *event, gpointer user_data) |
static void | create_replace_dialog (void) |
void | search_show_replace_dialog (void) |
static void | on_widget_toggled_set_sensitive (GtkToggleButton *togglebutton, gpointer user_data) |
static void | update_file_patterns (GtkWidget *mode_combo, GtkWidget *fcombo) |
static GtkWidget * | create_fif_file_mode_combo (void) |
static void | update_fif_file_mode_combo (void) |
static void | create_fif_dialog (void) |
void | search_show_find_in_files_dialog (const gchar *dir) |
Shows the Find in Files dialog. More... | |
void | search_show_find_in_files_dialog_full (const gchar *text, const gchar *dir) |
static GeanyMatchInfo * | match_info_new (GeanyFindFlags flags, gint start, gint end) |
void | geany_match_info_free (GeanyMatchInfo *info) |
static GSList * | find_range (ScintillaObject *sci, GeanyFindFlags flags, struct Sci_TextToFind *ttf) |
gint | search_mark_all (GeanyDocument *doc, const gchar *search_text, GeanyFindFlags flags) |
static GeanyFindFlags | int_search_flags (gint match_case, gint whole_word, gint regexp, gint multiline, gint word_start) |
static void | replace_in_session (GeanyDocument *doc, GeanyFindFlags search_flags_re, gboolean search_replace_escape_re, const gchar *find, const gchar *replace, const gchar *original_find, const gchar *original_replace) |
static GString * | get_grep_options (void) |
static void | on_find_in_files_dialog_response (GtkDialog *dialog, gint response, G_GNUC_UNUSED gpointer user_data) |
static gboolean | pattern_list_match (GSList *patterns, const gchar *str) |
static void | read_fif_io (gchar *msg, GIOCondition condition, gchar *enc, gint msg_color) |
static gchar * | get_regex_match_string (const gchar *text, const GeanyMatchInfo *match, guint nth) |
static gint | find_regex (ScintillaObject *sci, guint pos, GRegex *regex, gboolean multiline, GeanyMatchInfo *match) |
static gint | geany_find_flags_to_sci_flags (GeanyFindFlags flags) |
gint | search_find_prev (ScintillaObject *sci, const gchar *str, GeanyFindFlags flags, GeanyMatchInfo **match_) |
gint | search_find_next (ScintillaObject *sci, const gchar *str, GeanyFindFlags flags, GeanyMatchInfo **match_) |
gint | search_replace_match (ScintillaObject *sci, const GeanyMatchInfo *match, const gchar *replace_text) |
gint | search_find_text (ScintillaObject *sci, GeanyFindFlags flags, struct Sci_TextToFind *ttf, GeanyMatchInfo **match_) |
static gint | find_document_usage (GeanyDocument *doc, const gchar *search_text, GeanyFindFlags flags) |
void | search_find_usage (const gchar *search_text, const gchar *original_search_text, GeanyFindFlags flags, gboolean in_session) |
guint | search_replace_range (ScintillaObject *sci, struct Sci_TextToFind *ttf, GeanyFindFlags flags, const gchar *replace_text) |
void | search_find_again (gboolean change_direction) |
#define FREE_WIDGET | ( | wid | ) | if (wid && GTK_IS_WIDGET(wid)) gtk_widget_destroy(wid); |
anonymous enum |
anonymous enum |
|
static |
Definition at line 303 of file search.c.
References _, dialog, find_dlg, gtk_container_add(), on_find_replace_checkbutton_toggled(), on_widget_toggled_set_insensitive(), and ui_hookup_widget().
Referenced by create_find_dialog(), and create_replace_dialog().
|
static |
Definition at line 1895 of file search.c.
References _, error(), geany_debug(), GEANY_FIND_MATCHCASE, GEANY_FIND_MULTILINE, GEANY_FIND_WHOLEWORD, GEANY_FIND_WORDSTART, NULL, and ui_set_statusbar().
Referenced by on_find_dialog_response(), on_replace_dialog_response(), search_find_next(), and search_find_text().
|
static |
Definition at line 863 of file search.c.
References _, create_fif_file_mode_combo(), dir_combo, entry, fif_dlg, GEANY_ENCODING_UTF_8, gtk_container_add(), label, main_widgets, NULL, on_find_in_files_dialog_response(), on_widget_key_pressed_set_focus(), on_widget_toggled_set_sensitive(), ui_create_encodings_combo_box(), ui_dialog_vbox_new(), ui_entry_add_clear_icon(), ui_hookup_widget(), ui_path_box_new(), update_file_patterns(), and GeanyMainWidgets::window.
Referenced by search_show_find_in_files_dialog_full().
|
static |
Definition at line 821 of file search.c.
References _, app, NULL, and GeanyApp::project.
Referenced by create_fif_dialog().
|
static |
Definition at line 460 of file search.c.
References _, add_find_checkboxes(), entry, find_dlg, GEANY_RESPONSE_FIND, GEANY_RESPONSE_FIND_IN_FILE, GEANY_RESPONSE_FIND_IN_SESSION, GEANY_RESPONSE_FIND_PREVIOUS, GEANY_RESPONSE_MARK, gtk_container_add(), label, main_widgets, NULL, on_expander_activated(), on_find_dialog_response(), on_find_entry_activate(), on_find_entry_activate_backward(), send_find_dialog_response(), ui_button_new_with_image(), ui_dialog_vbox_new(), ui_entry_add_activate_backward_signal(), ui_entry_add_clear_icon(), ui_hbutton_box_copy_layout(), ui_hookup_widget(), and GeanyMainWidgets::window.
Referenced by search_show_find_dialog().
|
static |
Definition at line 614 of file search.c.
References _, add_find_checkboxes(), GEANY_RESPONSE_FIND, GEANY_RESPONSE_REPLACE, GEANY_RESPONSE_REPLACE_AND_FIND, GEANY_RESPONSE_REPLACE_IN_FILE, GEANY_RESPONSE_REPLACE_IN_SEL, GEANY_RESPONSE_REPLACE_IN_SESSION, gtk_container_add(), main_widgets, NULL, on_expander_activated(), on_replace_dialog_response(), on_replace_entry_activate(), on_replace_find_entry_activate(), on_widget_key_pressed_set_focus(), replace_dlg, send_replace_dialog_response(), ui_dialog_vbox_new(), ui_entry_add_clear_icon(), ui_hbutton_box_copy_layout(), ui_hookup_widget(), and GeanyMainWidgets::window.
Referenced by search_show_replace_dialog().
|
static |
Definition at line 2149 of file search.c.
References Sci_TextToFind::chrg, COLOR_BLACK, count, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, DOC_FILENAME, DOC_VALID, GeanyDocument::editor, find_range(), foreach_slist, geany_match_info_free(), line, Sci_TextToFind::lpstrText, match(), msgwin_msg_add(), GeanyEditor::sci, sci_get_length(), sci_get_line(), sci_get_line_from_position(), and GeanyMatchInfo::start.
Referenced by search_find_usage().
|
static |
Definition at line 1197 of file search.c.
References Sci_TextToFind::chrg, Sci_TextToFind::chrgText, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, geany_match_info_free(), Sci_TextToFind::lpstrText, NULL, sci, and search_find_text().
Referenced by find_document_usage(), search_mark_all(), and search_replace_range().
|
static |
Definition at line 1929 of file search.c.
References foreach_range, line, match(), NULL, pos, sci, sci_get_length(), sci_get_line_count(), sci_get_line_end_position(), sci_get_line_from_position(), sci_get_position_from_line(), SCI_GETCHARACTERPOINTER, SCI_GETRANGEPOINTER, SETPTR, and text.
Referenced by search_find_next(), and search_find_text().
|
static |
Definition at line 2001 of file search.c.
References GEANY_FIND_MATCHCASE, GEANY_FIND_MULTILINE, GEANY_FIND_REGEXP, GEANY_FIND_WHOLEWORD, GEANY_FIND_WORDSTART, SCFIND_MATCHCASE, SCFIND_POSIX, SCFIND_REGEXP, SCFIND_WHOLEWORD, and SCFIND_WORDSTART.
Referenced by search_find_next(), search_find_prev(), and search_find_text().
void geany_match_info_free | ( | GeanyMatchInfo * | info | ) |
Definition at line 1184 of file search.c.
References GeanyMatchInfo::match_text.
Referenced by document_replace_text(), find_document_usage(), find_range(), search_find_next(), search_find_text(), search_mark_all(), and search_replace_range().
|
static |
Definition at line 1553 of file search.c.
References FILES_MODE_ALL, settings, and utils_string_replace_all().
Referenced by on_find_in_files_dialog_response().
|
static |
Definition at line 1921 of file search.c.
Referenced by search_replace_match().
|
static |
Definition at line 188 of file search.c.
References GeanySearchPrefs::always_wrap, configuration_add_pref_group(), fif_dlg, fif_prefs, FILES_MODE_ALL, find_dlg, find_prefs, group, GeanySearchPrefs::hide_find_dialog, replace_dlg, replace_prefs, search_prefs, settings, stash_group_add_boolean(), stash_group_add_combo_box(), stash_group_add_entry(), stash_group_add_integer(), stash_group_add_toggle_button(), stash_group_new(), and GeanySearchPrefs::use_current_file_dir.
Referenced by search_init().
|
static |
Definition at line 1284 of file search.c.
References GEANY_FIND_MATCHCASE, GEANY_FIND_MULTILINE, GEANY_FIND_REGEXP, GEANY_FIND_WHOLEWORD, and GEANY_FIND_WORDSTART.
Referenced by on_find_dialog_response(), and on_replace_dialog_response().
|
static |
Definition at line 1172 of file search.c.
References GeanyMatchInfo::end, GeanyMatchInfo::flags, GeanyMatchInfo::match_text, NULL, and GeanyMatchInfo::start.
Referenced by search_find_next(), search_find_prev(), and search_find_text().
|
static |
Definition at line 452 of file search.c.
Referenced by create_find_dialog(), and create_replace_dialog().
|
static |
Definition at line 1296 of file search.c.
References _, compile_regex(), count, document_find_text(), document_get_current(), EMPTY, find_dlg, find_prefs, GEANY_FIND_REGEXP, GEANY_RESPONSE_FIND, GEANY_RESPONSE_FIND_IN_FILE, GEANY_RESPONSE_FIND_IN_SESSION, GEANY_RESPONSE_FIND_PREVIOUS, GEANY_RESPONSE_MARK, GeanySearchPrefs::hide_find_dialog, int_search_flags(), ngettext, NULL, search_data, search_find_usage(), search_mark_all(), search_prefs, settings, stash_group_update(), ui_combo_box_add_to_history(), ui_set_search_entry_background(), ui_set_statusbar(), utils_beep(), and utils_str_replace_escape().
Referenced by create_find_dialog(), on_find_entry_activate(), and on_find_entry_activate_backward().
|
static |
Definition at line 1267 of file search.c.
References GEANY_RESPONSE_FIND, NULL, and on_find_dialog_response().
Referenced by create_find_dialog().
|
static |
Definition at line 1274 of file search.c.
References GEANY_FIND_REGEXP, GEANY_RESPONSE_FIND_PREVIOUS, NULL, on_find_dialog_response(), search_data, and utils_beep().
Referenced by create_find_dialog().
|
static |
Definition at line 1599 of file search.c.
References _, dir_combo, EMPTY, encodings_get_charset_from_index(), fif_dlg, fif_prefs, GEANY_ENCODING_UTF_8, get_grep_options(), NULL, search_combo, search_find_in_files(), stash_group_update(), ui_combo_box_add_to_history(), ui_encodings_combo_box_get_active_encoding(), and ui_set_statusbar().
|
static |
Referenced by create_fif_dialog().
|
static |
Definition at line 1146 of file search.c.
References dialog, find_dlg, and ui_lookup_widget().
Referenced by add_find_checkboxes().
|
static |
Definition at line 1440 of file search.c.
References compile_regex(), dialog, document_find_text(), document_get_current(), document_replace_all(), document_replace_sel(), document_replace_text(), GEANY_FIND_MATCHCASE, GEANY_FIND_REGEXP, GEANY_RESPONSE_FIND, GEANY_RESPONSE_REPLACE, GEANY_RESPONSE_REPLACE_AND_FIND, GEANY_RESPONSE_REPLACE_IN_FILE, GEANY_RESPONSE_REPLACE_IN_SEL, GEANY_RESPONSE_REPLACE_IN_SESSION, int_search_flags(), NULL, replace_dlg, replace_in_session(), replace_prefs, settings, stash_group_update(), ui_combo_box_add_to_history(), ui_set_search_entry_background(), utils_beep(), and utils_str_replace_escape().
Referenced by create_replace_dialog(), on_replace_entry_activate(), and on_replace_find_entry_activate().
|
static |
Definition at line 1393 of file search.c.
References GEANY_RESPONSE_REPLACE, GEANY_RESPONSE_REPLACE_AND_FIND, NULL, on_replace_dialog_response(), GeanySearchPrefs::replace_and_find_by_default, and search_prefs.
Referenced by create_replace_dialog().
|
static |
Definition at line 1386 of file search.c.
References GEANY_RESPONSE_FIND, NULL, and on_replace_dialog_response().
Referenced by create_replace_dialog().
|
static |
Definition at line 603 of file search.c.
Referenced by create_fif_dialog(), and create_replace_dialog().
|
static |
Definition at line 295 of file search.c.
Referenced by add_find_checkboxes().
|
static |
Definition at line 774 of file search.c.
Referenced by create_fif_dialog().
|
static |
Definition at line 1732 of file search.c.
References foreach_slist.
Referenced by search_get_argv().
|
static |
Definition at line 1809 of file search.c.
References msgwin_msg_add_string(), and NULL.
Referenced by search_read_io(), and search_read_io_stderr().
|
static |
Definition at line 1401 of file search.c.
References _, GeanyDocument::changed, document_get_from_page(), document_replace_all(), main_widgets, MSG_STATUS, msgwindow, GeanyMainWidgets::notebook, ui_save_buttons_toggle(), ui_set_statusbar(), and utils_beep().
Referenced by on_replace_dialog_response().
void search_finalize | ( | void | ) |
Definition at line 285 of file search.c.
References fif_dlg, find_dlg, FREE_WIDGET, replace_dlg, and search_data.
Referenced by do_main_quit().
void search_find_again | ( | gboolean | change_direction | ) |
Definition at line 2282 of file search.c.
References document_find_text(), document_get_current(), GeanyDocument::editor, editor_display_current_line(), NULL, search_data, toolbar_get_widget_child_by_name(), and ui_set_search_entry_background().
Referenced by on_find_next1_activate(), on_find_previous1_activate(), and search_find_selection().
|
static |
Definition at line 1643 of file search.c.
References _, COLOR_BLUE, EMPTY, error(), GeanyToolPrefs::grep_cmd, MSG_MESSAGE, msgwin_msg_add_string(), msgwin_set_messages_dir(), msgwindow, NULL, search_finished(), search_get_argv(), search_read_io(), search_read_io_stderr(), settings, spawn_with_callbacks(), tool_prefs, ui_progress_bar_start(), ui_set_statusbar(), utils_free_pointers(), and utils_get_locale_from_utf8().
Referenced by on_find_in_files_dialog_response().
gint search_find_next | ( | ScintillaObject * | sci, |
const gchar * | str, | ||
GeanyFindFlags | flags, | ||
GeanyMatchInfo ** | match_ | ||
) |
Definition at line 2025 of file search.c.
References compile_regex(), find_regex(), geany_find_flags_to_sci_flags(), GEANY_FIND_MULTILINE, GEANY_FIND_REGEXP, geany_match_info_free(), match(), match_info_new(), pos, sci, sci_get_current_position(), sci_search_next(), and sci_set_selection().
Referenced by document_find_text().
gint search_find_prev | ( | ScintillaObject * | sci, |
const gchar * | str, | ||
GeanyFindFlags | flags, | ||
GeanyMatchInfo ** | match_ | ||
) |
Definition at line 2012 of file search.c.
References geany_find_flags_to_sci_flags(), GEANY_FIND_REGEXP, match_info_new(), sci, and sci_search_prev().
Referenced by document_find_text().
void search_find_selection | ( | GeanyDocument * | doc, |
gboolean | search_backwards | ||
) |
Definition at line 403 of file search.c.
References DOC_VALID, document_find_text(), GeanyDocument::editor, editor_display_current_line(), editor_get_default_selection(), GeanySearchPrefs::find_selection_type, GEANY_FIND_SEL_AGAIN, GEANY_FIND_SEL_X, NULL, GeanyEditor::sci, sci_get_selection_contents(), sci_has_selection(), search_find_again(), search_prefs, setup_find_next(), and utils_beep().
Referenced by on_find_nextsel1_activate(), and on_find_prevsel1_activate().
gint search_find_text | ( | ScintillaObject * | sci, |
GeanyFindFlags | flags, | ||
struct Sci_TextToFind * | ttf, | ||
GeanyMatchInfo ** | match_ | ||
) |
Definition at line 2110 of file search.c.
References Sci_TextToFind::chrg, Sci_TextToFind::chrgText, compile_regex(), Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, find_regex(), geany_find_flags_to_sci_flags(), GEANY_FIND_MULTILINE, GEANY_FIND_REGEXP, geany_match_info_free(), Sci_TextToFind::lpstrText, match(), match_info_new(), NULL, sci, and sci_find_text().
Referenced by find_range(), and replace_header_filename().
void search_find_usage | ( | const gchar * | search_text, |
const gchar * | original_search_text, | ||
GeanyFindFlags | flags, | ||
gboolean | in_session | ||
) |
Definition at line 2189 of file search.c.
References _, COLOR_BLUE, count, document_get_current(), documents, documents_array, EMPTY, find_document_usage(), MSG_MESSAGE, msgwin_msg_add(), msgwindow, ngettext, NULL, ui_set_statusbar(), and utils_beep().
Referenced by find_usage(), on_find_dialog_response(), and on_find_usage().
|
static |
< non-zero if the child exited normally
< exit status of a child if exited normally
< non-zero if the child exited due to signal
Definition at line 1849 of file search.c.
References _, COLOR_BLUE, count, msgwin_msg_add(), msgwin_msg_add_string(), msgwindow, ngettext, NULL, SPAWN_WEXITSTATUS, SPAWN_WIFEXITED, SPAWN_WIFSIGNALED, text, ui_progress_bar_stop(), ui_set_statusbar(), and utils_beep().
Referenced by search_find_in_files().
|
static |
Definition at line 1748 of file search.c.
References _, error(), foreach_slist, list, NULL, pattern_list_match(), ui_set_statusbar(), and utils_get_file_list().
Referenced by search_find_in_files().
void search_init | ( | void | ) |
Definition at line 274 of file search.c.
References init_prefs(), NULL, and search_data.
Referenced by main_lib().
gint search_mark_all | ( | GeanyDocument * | doc, |
const gchar * | search_text, | ||
GeanyFindFlags | flags | ||
) |
Definition at line 1231 of file search.c.
References Sci_TextToFind::chrg, count, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, DOC_VALID, GeanyDocument::editor, editor_indicator_clear(), editor_indicator_set_on_range(), EMPTY, GeanyMatchInfo::end, find_range(), foreach_slist, GEANY_INDICATOR_SEARCH, geany_match_info_free(), Sci_TextToFind::lpstrText, match(), GeanyEditor::sci, sci_get_length(), and GeanyMatchInfo::start.
Referenced by cb_func_search_action(), and on_find_dialog_response().
|
static |
Definition at line 1837 of file search.c.
References COLOR_BLACK, and read_fif_io().
Referenced by search_find_in_files().
|
static |
Definition at line 1843 of file search.c.
References COLOR_DARK_RED, and read_fif_io().
Referenced by search_find_in_files().
gint search_replace_match | ( | ScintillaObject * | sci, |
const GeanyMatchInfo * | match, | ||
const gchar * | replace_text | ||
) |
Definition at line 2064 of file search.c.
References GEANY_FIND_REGEXP, get_regex_match_string(), match(), ptr, sci, sci_replace_target(), sci_set_target_end(), and sci_set_target_start().
Referenced by document_replace_text(), and search_replace_range().
guint search_replace_range | ( | ScintillaObject * | sci, |
struct Sci_TextToFind * | ttf, | ||
GeanyFindFlags | flags, | ||
const gchar * | replace_text | ||
) |
Definition at line 2243 of file search.c.
References Sci_TextToFind::chrg, count, Sci_CharacterRange::cpMax, Sci_CharacterRange::cpMin, GeanyMatchInfo::end, find_range(), foreach_slist, geany_match_info_free(), Sci_TextToFind::lpstrText, match(), NULL, sci, search_replace_match(), and GeanyMatchInfo::start.
Referenced by document_replace_range().
void search_show_find_dialog | ( | void | ) |
Definition at line 557 of file search.c.
References create_find_dialog(), document_get_current(), GeanyDocument::editor, editor_get_default_selection(), find_dlg, find_prefs, gtk_widget_show_all(), NULL, search_prefs, set_dialog_position(), stash_group_display(), ui_set_search_entry_background(), and GeanySearchPrefs::use_current_word.
Referenced by on_find1_activate().
void search_show_find_in_files_dialog | ( | const gchar * | dir | ) |
Shows the Find in Files dialog.
dir | The directory to search in (UTF-8 encoding). May be NULL to determine it the usual way by using the current document's path. |
Definition at line 1041 of file search.c.
References NULL, and search_show_find_in_files_dialog_full().
Referenced by on_find_in_files(), and on_find_in_files1_activate().
void search_show_find_in_files_dialog_full | ( | const gchar * | text, |
const gchar * | dir | ||
) |
Definition at line 1047 of file search.c.
References app, GeanyProject::base_path, create_fif_dialog(), document_get_current(), GeanyDocument::editor, editor_get_default_selection(), EMPTY, GeanyDocument::encoding, encodings_get_idx_from_charset(), entry, fif_dlg, fif_prefs, GEANY_ENCODING_UTF_8, gtk_widget_show_all(), NULL, GeanyApp::project, search_prefs, set_dialog_position(), SETPTR, stash_group_display(), text, ui_combo_box_add_to_history(), ui_combo_box_prepend_text_once(), ui_encodings_combo_box_set_active_encoding(), update_fif_file_mode_combo(), update_file_patterns(), GeanySearchPrefs::use_current_file_dir, GeanySearchPrefs::use_current_word, utils_get_current_file_dir_utf8(), utils_get_default_dir_utf8(), and utils_str_equal().
Referenced by on_find_usage(), and search_show_find_in_files_dialog().
void search_show_replace_dialog | ( | void | ) |
Definition at line 734 of file search.c.
References create_replace_dialog(), document_get_current(), GeanyDocument::editor, editor_get_default_selection(), gtk_widget_show_all(), NULL, replace_dlg, replace_prefs, search_prefs, set_dialog_position(), stash_group_display(), ui_set_search_entry_background(), and GeanySearchPrefs::use_current_word.
Referenced by on_replace1_activate().
|
static |
|
static |
Definition at line 596 of file search.c.
References replace_dlg.
Referenced by create_replace_dialog().
|
static |
Definition at line 550 of file search.c.
References dialog, and position.
Referenced by search_show_find_dialog(), search_show_find_in_files_dialog_full(), and search_show_replace_dialog().
|
static |
Definition at line 384 of file search.c.
References search_data, and text.
Referenced by search_find_selection().
|
static |
Definition at line 852 of file search.c.
References app, fif_dlg, NULL, and GeanyApp::project.
Referenced by search_show_find_in_files_dialog_full().
|
static |
Definition at line 782 of file search.c.
References app, EMPTY, entry, GeanyProject::file_patterns, FILES_MODE_ALL, FILES_MODE_CUSTOM, FILES_MODE_PROJECT, and GeanyApp::project.
Referenced by create_fif_dialog(), and search_show_find_in_files_dialog_full().
GtkWidget* dialog |
Definition at line 117 of file search.c.
Referenced by add_find_checkboxes(), on_find_replace_checkbutton_toggled(), on_replace_dialog_response(), and set_dialog_position().
GtkWidget* dir_combo |
Definition at line 139 of file search.c.
Referenced by create_fif_dialog(), and on_find_in_files_dialog_response().
GtkWidget* encoding_combo |
Definition at line 142 of file search.c.
Referenced by add_file_open_extra_widget(), open_file_dialog_apply_settings(), and open_file_dialog_handle_response().
GtkWidget* entry |
Definition at line 118 of file search.c.
Referenced by add_pref(), add_widget_pref(), addAccessFields(), addCompiledTagCommon(), addKeyword(), check_partial_completion(), configuration_load_session_files(), configuration_save_session_files(), create_fif_dialog(), create_find_dialog(), demo_configure(), dumpKeywordTable(), dumpSstack(), editor_complete_word_part(), entry_clear_icon_release_cb(), entry_delete(), entry_destroy(), entry_find(), entry_foreach(), entry_new(), entry_reclaim(), extendRegexTable(), fillEndLineFieldOfUpperScopes(), findNameOfKinds(), foreachEntriesInScope(), free_dfa_content(), freeKeywordTable(), get_subexp(), getHashTableEntry(), handle_combo_box(), handle_combo_box_entry(), handle_entry(), handle_radio_buttons(), handle_spin_button(), handle_widget_property(), hashTableClear(), hasScopeActionInRegex0(), keyfile_action(), lookupKeywordFull(), matchMultilineRegex(), matchMultilineRegexPattern(), matchMultitableRegexTable(), matchRegex(), matchRegexPattern(), matchTagPattern(), newEntry(), newRefPatternEntry(), on_configure_response(), on_filter_activate(), on_input_dialog_show(), on_path_entry_activate(), on_pm_tree_filter_entry_icon_release_cb(), on_toolbutton_goto_clicked(), on_toolbutton_search_clicked(), plugin_configure(), pref_action(), printMultitableStatistics(), processBooleanOption(), processParametricOption(), queueTagEntry(), run_dialog(), search_show_find_in_files_dialog_full(), sift_states_bkref(), stash_group_add_radio_buttons(), stash_group_free_settings(), stash_tree_append_pref(), stash_tree_append_prefs(), stash_tree_display_pref(), stash_tree_update_pref(), tm_parser_get_subparser_type(), tm_parser_get_tag_kind(), tm_parser_get_tag_type(), toolbar_reload(), ui_entry_add_activate_backward_signal(), ui_entry_add_clear_icon(), ui_path_box_new(), ui_path_box_open_clicked(), ui_setup_open_button_callback(), update_file_patterns(), and updatePseudoTags().
struct { ... } fif_dlg |
|
static |
Definition at line 110 of file search.c.
Referenced by init_prefs(), on_find_in_files_dialog_response(), and search_show_find_in_files_dialog_full().
struct { ... } find_dlg |
|
static |
Definition at line 111 of file search.c.
Referenced by init_prefs(), on_find_dialog_response(), and search_show_find_dialog().
gint position[2] |
Definition at line 120 of file search.c.
Referenced by Scintilla::Document::AddData(), Scintilla::UndoHistory::AppendAction(), Scintilla::CellBuffer::BasicDeleteChars(), Scintilla::CellBuffer::BasicInsertString(), Scintilla::Document::BraceMatch(), Scintilla::Document::CharacterAfter(), Scintilla::Document::CharacterBefore(), Scintilla::CellBuffer::CharAt(), Scintilla::Document::CharAt(), Scintilla::Document::DecorationFillRange(), Scintilla::SplitVector< T >::Delete(), Scintilla::SparseState< T >::Delete(), Scintilla::CellBuffer::DeleteChars(), Scintilla::SparseVector< T >::DeletePosition(), Scintilla::RunStyles< DISTANCE, STYLE >::DeleteRange(), Scintilla::SplitVector< T >::DeleteRange(), Scintilla::SparseVector< T >::DeleteRange(), Scintilla::Editor::DropAt(), Scintilla::SparseVector< T >::ElementFromPosition(), Scintilla::RunStyles< DISTANCE, STYLE >::EndRun(), Scintilla::Document::ExtractCharacter(), Scintilla::LexAccessor::Fill(), Scintilla::RunStyles< DISTANCE, STYLE >::FillRange(), Scintilla::SparseState< T >::Find(), Scintilla::Document::FindColumn(), Scintilla::RunStyles< DISTANCE, STYLE >::FindNextChange(), Scintilla::SplitVector< T >::GapTo(), Scintilla::Document::GetCharacterAndWidth(), Scintilla::CellBuffer::GetCharRange(), Scintilla::Document::GetCharRange(), Scintilla::LexAccessor::GetLine(), Scintilla::SplitVector< T >::GetRange(), Scintilla::CellBuffer::GetStyleRange(), Scintilla::Document::GetStyleRange(), Scintilla::SparseVector< T >::IndexAfter(), Scintilla::SplitVector< T >::Insert(), Scintilla::SplitVector< T >::InsertEmpty(), Scintilla::CellBuffer::InsertLine(), LineVector< POS >::InsertLine(), Scintilla::RunStyles< DISTANCE, STYLE >::InsertSpace(), Scintilla::SparseVector< T >::InsertSpace(), Scintilla::Document::InsertString(), Scintilla::CellBuffer::InsertString(), Scintilla::ScintillaGTKAccessible::AtkEditableTextIface::InsertText(), Scintilla::SplitVector< T >::InsertValue(), Scintilla::Document::IsLineEndPosition(), Scintilla::Document::IsLineStartPosition(), Scintilla::Document::IsPositionInLineEnd(), Scintilla::Document::LineEnd(), Scintilla::Document::LineEndPosition(), Scintilla::Editor::LineEndWrapPosition(), menu_reorder_child(), Scintilla::SelectionPosition::MoveForInsertDelete(), ClusterIterator::Next(), Scintilla::Editor::NotifyHotSpotClicked(), Scintilla::Editor::NotifyHotSpotDoubleClicked(), Scintilla::Editor::NotifyHotSpotReleaseClick(), Scintilla::Editor::NotifyIndicatorClick(), Scintilla::Editor::NotifyMarginClick(), Scintilla::Editor::NotifyMarginRightClick(), Scintilla::SelectionPosition::operator<(), Scintilla::SelectionPosition::operator<=(), Scintilla::SelectionPosition::operator>(), Scintilla::SelectionPosition::operator>=(), Scintilla::SplitVector< T >::operator[](), Scintilla::LexAccessor::operator[](), Scintilla::ScintillaGTKAccessible::AtkEditableTextIface::PasteText(), Scintilla::Editor::PositionIsHotspot(), Scintilla::SplitVector< T >::RangePointer(), Scintilla::CellBuffer::RangePointer(), Scintilla::Document::RangePointer(), Scintilla::Editor::RealizeVirtualSpace(), Scintilla::CellBuffer::ResetLineEnds(), Scintilla::RunStyles< DISTANCE, STYLE >::RunFromPosition(), Scintilla::LexAccessor::SafeGetCharAt(), sci_get_col_from_position(), sci_get_line_from_position(), sci_get_style_at(), sci_set_current_position(), sci_set_selection_end(), sci_set_selection_start(), sci_word_end_position(), sci_word_start_position(), Scintilla::SparseState< T >::Set(), set_dialog_position(), Scintilla::Editor::SetHoverIndicatorPosition(), LineVector< POS >::SetLineStart(), Scintilla::CellBuffer::SetStyleAt(), Scintilla::CellBuffer::SetStyleFor(), Scintilla::RunStyles< DISTANCE, STYLE >::SetValueAt(), Scintilla::SplitVector< T >::SetValueAt(), Scintilla::SparseVector< T >::SetValueAt(), Scintilla::RunStyles< DISTANCE, STYLE >::SplitRun(), Scintilla::AutoComplete::Start(), Scintilla::RunStyles< DISTANCE, STYLE >::StartRun(), Scintilla::Document::StartStyling(), Scintilla::CellBuffer::StyleAt(), Scintilla::ScintillaGTKAccessible::StyleAt(), Scintilla::LexAccessor::StyleAt(), Scintilla::Document::StyleAt(), Scintilla::Document::StyleIndexAt(), Scintilla::CellBuffer::UCharAt(), ui_dialog_set_primary_button_order(), ui_editable_insert_text_callback(), Scintilla::CellBuffer::UTF8IsCharacterBoundary(), Scintilla::CellBuffer::UTF8LineEndOverlaps(), Scintilla::RunStyles< DISTANCE, STYLE >::ValueAt(), Scintilla::SplitVector< T >::ValueAt(), Scintilla::SparseVector< T >::ValueAt(), Scintilla::SparseState< T >::ValueAt(), Scintilla::Editor::VCHomeDisplayPosition(), Scintilla::Document::VCHomePosition(), and Scintilla::Editor::VCHomeWrapPosition().
struct { ... } replace_dlg |
|
static |
Definition at line 112 of file search.c.
Referenced by init_prefs(), on_replace_dialog_response(), and search_show_replace_dialog().
GtkWidget* search_combo |
Definition at line 141 of file search.c.
Referenced by on_find_in_files_dialog_response().
GeanySearchData search_data |
Definition at line 77 of file search.c.
Referenced by do_toolbar_search(), on_find_dialog_response(), on_find_entry_activate_backward(), on_find_previous1_activate(), on_toolbutton_search_clicked(), search_finalize(), search_find_again(), search_init(), setup_find(), and setup_find_next().
GeanySearchPrefs search_prefs |
Definition at line 78 of file search.c.
Referenced by document_find_text(), geany_data_init(), init_pref_groups(), init_prefs(), main_lib(), on_find_dialog_response(), on_replace_entry_activate(), search_find_selection(), search_show_find_dialog(), search_show_find_in_files_dialog_full(), and search_show_replace_dialog().
struct { ... } settings |
Referenced by get_grep_options(), init_prefs(), on_find_dialog_response(), on_replace_dialog_response(), and search_find_in_files().