Re: [Tracker] Extending indexed file types



Hi Bjorn,

On Tue, Jun 6, 2017 at 11:28 AM, Björn Johansson
<bjorn_johansson bio uminho pt> wrote:
Hi, I just installed the latest Tracker from the ubuntu standard repo.

Seems to be working fine but my Jupyter notebooks does not seem to be
indexed.
Is this expected?

Yes, Tracker has no specific knowledge of these files.


Jupyter notebooks are a kind of JSON text files containing code and text
(http://jupyter.org/).

Can I extend Tracker to also index these files? They are popular in the
scientific computing community.

We do accept patches :). As Debarshi pointed out, there's quite a few
examples in src/tracker-extract in the tracker git tree.

But those Tracker extract modules rely on specific enough mimetypes,
could be worth checking first whether shared-mime-info knows about
jupyter specifically, eg. doing:

gio info $FILE |grep content-type

Cheers,
  Carlos


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]