From 4b1cb284623bf9ca8a5cf7c7d37994b1bd69f80b Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Fri, 16 Feb 2007 17:09:53 +0000 Subject: [PATCH] Show grep command and directory when using Find in Files. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1296 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 2 ++ src/search.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index f069f8d1..a154798c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ Don't autocomplete for/if constructs when editing an existing line. * src/src/document.c: Set single undo action when using document_strip_trailing_spaces(). + * src/search.c: + Show grep command and directory when using Find in Files. 2007-02-15 Enrico Tröger diff --git a/src/search.c b/src/search.c index a1d6337d..202577e0 100644 --- a/src/search.c +++ b/src/search.c @@ -1116,11 +1116,19 @@ search_find_in_files(const gchar *search_text, const gchar *dir, fif_match_type } else { + gchar *str, *utf8_str; + g_free(msgwindow.find_in_files_dir); msgwindow.find_in_files_dir = g_strdup(dir); utils_set_up_io_channel(stdout_fd, G_IO_IN|G_IO_PRI|G_IO_ERR|G_IO_HUP|G_IO_NVAL, search_read_io, NULL); g_child_watch_add(child_pid, search_close_pid, NULL); + + str = g_strdup_printf(_("%s %s %s %s (in directory: %s)"), + argv[0], argv[1], argv[2], argv[3], dir); + utf8_str = utils_get_utf8_from_locale(str); + msgwin_msg_add(-1, -1, utf8_str); + utils_free_pointers(str, utf8_str, NULL); ret = TRUE; } g_strfreev(argv);