GNOME Bugzilla – Bug 764178
Search entry should support specifying newline, tab and other escape sequences
Last modified: 2016-04-03 03:01:43 UTC
Currently there is no way to specify newline, tab and other escape sequences in the search entry. We should support escape sequences so users can write those characters easily.
Created attachment 324740 [details] [review] search entry: add support for escape sequences The transformation from search entry text to search text is explained in the commit message. When we transform selection text to search entry text, we need to escape it, depending on whether regex search option is enabled, call g_regex_escape_string() or gtk_source_utils_escape_search_text() respectively. I leave multi-line search bubbles as a TODO for now.
Review of attachment 324740 [details] [review]: Couple quick changes ::: libide/editor/ide-editor-frame-actions.c @@ +49,3 @@ + GtkTextIter start_sel; + GtkTextIter end_sel; + g_autofree gchar *selected_text; always set to NULL for autofree
Created attachment 325014 [details] [review] search-entry: add support for escape sequences set to NULL for g_autofree.
Great! Thanks! Attachment 325014 [details] pushed as 7201bbe - search-entry: add support for escape sequences