It would very useful to count with an option to use regular expressions in the replace window. It could be offered to the user as a check-box, as other text editors do. I do not know if a feature like this would make the application a too heavy, but I believe that the addition is interesting.
I'm pretty sure recent GtkSourceView adds regexp search and replace support builtin, so eventually when Mousepad is using newer versions, I'll probably tie this in with the replace dialog.
That would be very good. It's one of my most wanted features. Thank you!
Matt, it seems GtkSourceView 3 supports regex search [1]. Taking a look at the 2.0 version(I couldn't find the API online), there's this code: typedef enum { GTK_SOURCE_SEARCH_VISIBLE_ONLY = 1 << 0, GTK_SOURCE_SEARCH_TEXT_ONLY = 1 << 1, GTK_SOURCE_SEARCH_CASE_INSENSITIVE = 1 << 2 /* Possible future plans: SEARCH_REGEXP */ } GtkSourceSearchFlags; So, I guess we should wait for a stable GTK 3 version of mousepad? 1 - https://developer.gnome.org/gtksourceview/stable/GtkSourceSearchSettings.html#GtkSourceSearchSettings--regex-enabled
This feature also should enable to replace \n to new line character (same as \t and others control characters)
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/mousepad/-/issues/9. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev