allusion-app/Allusion

Add '/' at the end of "Path starts with" after selecting a specific directory

mangakaru opened this issue · 1 comments

Currently, when you click on a folder, it automatically filters by "Path Starts With" + [directory path], which I use a lot

The thing is, it doesn't add a trailing directory separator ('\' in Windows, '/' in other OSs) to the filter query.
For example, having these folders:
D:\User\Documents\Artbooks\Dragon Ball
D:\User\Documents\Artbooks\Dragon Ball Z
D:\User\Documents\Artbooks\Dragon Ball GT
If you select the one called "Dragon Ball" you will also get images from the other two sibling folders because the filter becomes "Path Starts With D:\User\Documents\Artbooks\Dragon Ball", which can lead to unknowingly tagging images that you were not intending to.
Adding a '\' at the end would solve this, I think.

(version: 1.0.0-rc4)

Closed by #317