Fix schema in viber locator hrefs from file-->editor#208
Fix schema in viber locator hrefs from file-->editor#208karlicoss merged 2 commits intokarlicoss:masterfrom
Conversation
..., `file:` does not work in search results (only if copy-pasted into a new tab).
|
This PR fixes also a minor bug in the SQL-query, which previously fetched even overwritten due-to-edits viber messages. |
|
Another way to achieve this is the post-index hook promnesia/tests/indexer_test.py Lines 284 to 303 in aded41c So e.g. you could do something like "if source is viber, then replace url etc etc". But if you think it makes sense as a setting too, happy to merge. |
|
I think a better idea would be to make the url more configurable, e.g. store a print-pattern in the config, |
In promnesia's search-results tab, links like
file:///.ViberPC/123/viber.dbdo not work,due to security (i guess, bc these urls work fine when pasted in a new tab).
The custom schema
editor:offers a better UX,since it gives the user the choice of which app to use to open the Viber's db-file (e.g. sqlitebrowser`),
when the mime-type is known to the OS (see the 1st resource, below).
These resources are relevant:
sqlitemime-type handler@karlicoss I want your tip about the mime-type handler to be included in the Viber docs; any idea where or how to include it?