arch filter button
- From: Chris Halls <halls debian org>
- To: meld-list gnome org
- Subject: arch filter button
- Date: Fri, 21 Jul 2006 13:06:34 +0100
Hi Stephen
Thanks a lot for meld. It has become a part of my essential toolbox. I've
attached a patch to add an arch button to the list of filters. This works the
same as the CVS/SVN buttons, but for arch/baz repositories.
One of the names that must be ignored is {arch}. Since there is no escaping of
metacharacters I used the pattern [{]arch[}], which did the job but you may
have a more elegant way of doing that.
On a related note, the list of version control filters is getting quite long
and taking up more and more space on the toolbar. I wonder whether it would
be better to combine these somehow. It may be enough to have a single button
that applies all version control filters at once. I don't think it is a
common use case to want to see e.g. CVS files but not see SVN files. In any
case, that could be done using a custom filter if a user really needed it.
Chris
Index: meldapp.py
===================================================================
RCS file: /cvs/gnome/meld/meldapp.py,v
retrieving revision 1.119
diff -u -3 -p -r1.119 meldapp.py
--- meldapp.py 22 Jun 2006 21:57:58 -0000 1.119
+++ meldapp.py 21 Jul 2006 11:19:03 -0000
@@ -446,6 +446,8 @@ class MeldPreferences(prefs.Preferences)
#TRANSLATORS: translate this string ONLY to the first "\t", leave it and the following parts intact
_("Monotone\t1\tMT\n") + \
#TRANSLATORS: translate this string ONLY to the first "\t", leave it and the following parts intact
+ _("arch\t1\t.arch-ids [{]arch[}] .arch-inventory\n") + \
+ #TRANSLATORS: translate this string ONLY to the first "\t", leave it and the following parts intact
_("Binaries\t1\t*.{pyc,a,obj,o,so,la,lib,dll}\n") + \
#TRANSLATORS: translate this string ONLY to the first "\t", leave it and the following parts intact
_("Media\t0\t*.{jpg,gif,png,wav,mp3,ogg,xcf,xpm}")),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]