muety / wakapi

📊 A minimalist, self-hosted WakaTime-compatible backend for coding statistics

Home Page:https://wakapi.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use relative file paths for individual file coding time

johanohly opened this issue · comments

In the screenshots below, the same file is registered twice, which makes sense, but I wonder if it is possible to deduplicate.
image
image
It's basically just me coding in the same project on different machines, with different file system structures.

Hi @JohnnyJTH, under Settings -> Data you can specify "Aliases", where you could map the entity C:/dev/folder1/file1.txt to C:/dev/folder2/file1.txt. However, you'd have to do this for every individual file, which is probably impractical. We have a feature planned, where these aliases can also be regexes or at least wildcard-like patterns (see #607), but I can't give you an ETA for that feature, yet.

Hi @JohnnyJTH, under Settings -> Data you can specify "Aliases", where you could map the entity C:/dev/folder1/file1.txt to C:/dev/folder2/file1.txt. However, you'd have to do this for every individual file, which is probably impractical. We have a feature planned, where these aliases can also be regexes or at least wildcard-like patterns (see #607), but I can't give you an ETA for that feature, yet.

All right, that will definitely satisfy my needs.
Just wondering why the program doesn't try to find the project root, at least if that part is the same on both machines.

Well, how could it tell what the "project root" is?