! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add option to replace by regular expression.
Status:
RESOLVED: MOVED
Severity:
enhancement
Product:
Mousepad
Component:
General

Comments

Description negora 2014-08-21 09:38:11 CEST
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.
Comment 1 Matthew Brush editbugs 2014-08-21 10:25:50 CEST
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.
Comment 2 negora 2014-08-21 13:49:51 CEST
That would be very good. It's one of my most wanted features. Thank you!
Comment 3 Andre Miranda editbugs 2014-09-17 04:05:43 CEST
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
Comment 4 msangel 2019-01-10 14:34:08 CET
This feature also should enable to replace \n to new line character (same as \t and others control characters)
Comment 5 Git Bot editbugs 2020-05-24 01:28:12 CEST
-- 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

Bug #11096

Reported by:
negora
Reported on: 2014-08-21
Last modified on: 2020-05-24

People

Assignee:
Matthew Brush
CC List:
6 users

Version

Version:
Unspecified
Target Milestone:
Mousepad 0.2.x

Attachments

Additional information