Greyhole icon indicating copy to clipboard operation
Greyhole copied to clipboard

Can't use # in in ignore regex

Open vzjrz opened this issue 7 years ago • 1 comments

I'm trying to add a ignore regex for libreoffice lock files. They look like this:

.~lock.SHEET.ods#
.~lock.TEXT.odt#

I tried adding this ignore line:

# LibreOffice temp files
ignored_files = ^\.~lock\..+\#$

but it seems that greyhole cuts off the line after the '#'

Oct 16 16:54:55 INFO write: Now working on task ID 271870: write Media/.~lock.driveprices.ods#
Oct 16 16:54:55 INFO write: Ignoring task because it matches the following 'ignored_files' pattern: ^\.~lock\..+

It still matches but it doesn't search for the '#"

I'm on ubuntu 14.04 with greyhole 0.9.68

vzjrz avatar Oct 16 '16 21:10 vzjrz

The # character is for comments, thus why everything after it is ignored. Will try to see how Greyhole could parse a line like

ignored_files = ^\.~lock\..+\#$ # Libre office files

gboudreau avatar Jan 17 '17 22:01 gboudreau